Lines Matching refs:view

29 import android.view.View;
30 import android.view.ViewDebug.ExportedProperty;
31 import android.view.ViewGroup;
32 import android.view.ViewParent;
42 * will automatically be sized to wrap their corresponding view. The default
200 * prune shadow views whose related view was detached from FrameLayoutWithShadows
210 View view = shadowView.shadowedView;
211 if (this != findParentShadowsView(view)) {
212 view.setTag(R.id.ShadowView, null);
223 * pass for the view but may also be triggered manually if the borders of a
224 * child view has changed.
234 View view = shadowView.shadowedView;
235 if (view != null) {
236 if (this != findParentShadowsView(view)) {
240 if (view instanceof ImageView) {
243 Matrix matrix = ((ImageView) view).getImageMatrix();
244 Drawable drawable = ((ImageView) view).getDrawable();
250 rectf.offset(view.getPaddingLeft(), view.getPaddingTop());
251 rectf.intersect(view.getPaddingLeft(), view.getPaddingTop(),
252 view.getWidth() - view.getPaddingLeft() - view.getPaddingRight(),
253 view.getHeight() - view.getPaddingTop() - view.getPaddingBottom());
265 rect.left = view.getPaddingLeft() - shadow.getPaddingLeft();
266 rect.top = view.getPaddingTop() - shadow.getPaddingTop();
267 rect.right = view.getWidth() + view.getPaddingRight()
269 rect.bottom = view.getHeight() + view.getPaddingBottom()
272 offsetDescendantRectToMyCoords(view, rect);
279 * Add a shadow view to FrameLayoutWithShadows. This will use the drawable
280 * specified for the shadow view and will also handle clean-up of any
281 * previous shadow set for this view.
283 public View addShadowView(View view, Drawable shadow) {
284 ShadowView shadowView = (ShadowView) view.getTag(R.id.ShadowView);
291 view.setTag(R.id.ShadowView, shadowView);
292 shadowView.shadowedView = view;
306 * Add a shadow view using the default shadow. This will also handle
307 * clean-up of any previous shadow set for this view.
309 public View addShadowView(View view) {
316 return addShadowView(view, shadow);
320 * Get the shadow associated with the given view. Returns null if the view
323 public static View getShadowView(View view) {
324 View shadowView = (View) view.getTag(R.id.ShadowView);
344 * Makes the shadow associated with the given view draw above other views.
348 public void bringViewShadowToTop(View view) {
349 View shadowView = (View) view.getTag(R.id.ShadowView);
376 * Utility function to remove the shadow associated with the given view.
378 public static void removeShadowView(View view) {
379 ShadowView shadowView = (ShadowView) view.getTag(R.id.ShadowView);
381 view.setTag(R.id.ShadowView, null);
404 ShadowView view = mRecycleBin.remove(size - 1);
405 view.init();
411 * Sets the visibility of the shadow associated with the given view. This
412 * should be called when the view's visibility changes to keep the shadow's
415 public void setShadowVisibility(View view, int visibility) {
416 View shadowView = (View) view.getTag(R.id.ShadowView);
424 * Finds the first parent of this view that is a FrameLayoutWithShadows and
427 public static FrameLayoutWithShadows findParentShadowsView(View view) {
428 ViewParent nextView = view.getParent();