Lines Matching defs:view

20 import android.view.View;
21 import android.view.ViewGroup;
77 private void resetViewState(ExpandableView view) {
78 StackViewState viewState = mStateMap.get(view);
81 mStateMap.put(view, viewState);
83 // initialize with the default values of the view
84 viewState.height = view.getIntrinsicHeight();
85 viewState.gone = view.getVisibility() == View.GONE;
130 public boolean applyState(ExpandableView view, StackViewState state) {
139 applyViewState(view, state);
141 int height = view.getActualHeight();
146 view.setActualHeight(newHeight, false /* notifyListeners */);
150 view.setDimmed(state.dimmed, false /* animate */);
153 view.setHideSensitive(
157 view.setBelowSpeedBump(state.belowSpeedBump);
160 view.setDark(state.dark, false /* animate */, 0 /* delay */);
163 float oldClipTopAmount = view.getClipTopAmount();
165 view.setClipTopAmount(state.clipTopAmount);
167 float oldClipTopOptimization = view.getClipTopOptimization();
169 view.setClipTopOptimization(state.topOverLap);
171 if (view instanceof ExpandableNotificationRow) {
172 ExpandableNotificationRow row = (ExpandableNotificationRow) view;
179 * Applies a {@link ViewState} to a normal view.
181 public void applyViewState(View view, ViewState state) {
182 float alpha = view.getAlpha();
183 float yTranslation = view.getTranslationY();
184 float xTranslation = view.getTranslationX();
185 float zTranslation = view.getTranslationZ();
186 float scale = view.getScaleX();
196 && view.hasOverlappingRendering();
197 int layerType = view.getLayerType();
202 view.setLayerType(newLayerType, null);
206 view.setAlpha(newAlpha);
210 int oldVisibility = view.getVisibility();
213 if (!(view instanceof ExpandableView) || !((ExpandableView) view).willBeGone()) {
215 view.setVisibility(newVisibility);
221 view.setTranslationY(newYTranslation);
226 view.setTranslationZ(newZTranslation);
231 view.setScaleX(newScale);
232 view.setScaleY(newScale);