Home | History | Annotate | Download | only in widget

Lines Matching defs:LayoutParams

727                     ViewGroup.LayoutParams layoutParams) {
739 RecyclerView.this.attachViewToParent(child, index, layoutParams);
2392 final ViewGroup.LayoutParams focusedLayoutParams = focused.getLayoutParams();
2393 if (focusedLayoutParams instanceof LayoutParams) {
2395 final LayoutParams lp = (LayoutParams) focusedLayoutParams;
3810 ((LayoutParams) child.getLayoutParams()).mInsetsDirty = true;
3887 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {
3888 return p instanceof LayoutParams && mLayout.checkLayoutParams((LayoutParams) p);
3892 protected ViewGroup.LayoutParams generateDefaultLayoutParams() {
3900 public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) {
3908 protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) {
4055 ((LayoutParams) child.getLayoutParams()).mInsetsDirty = true;
4220 return ((LayoutParams) child.getLayoutParams()).mViewHolder;
4492 final LayoutParams lp = (LayoutParams) view.getLayoutParams();
4501 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
5323 final ViewGroup.LayoutParams lp = holder.itemView.getLayoutParams();
5324 final LayoutParams rvLayoutParams;
5326 rvLayoutParams = (LayoutParams) generateDefaultLayoutParams();
5329 rvLayoutParams = (LayoutParams) generateLayoutParams(lp);
5332 rvLayoutParams = (LayoutParams) lp;
5549 final ViewGroup.LayoutParams lp = holder.itemView.getLayoutParams();
5550 final LayoutParams rvLayoutParams;
5552 rvLayoutParams = (LayoutParams) generateDefaultLayoutParams();
5555 rvLayoutParams = (LayoutParams) generateLayoutParams(lp);
5558 rvLayoutParams = (LayoutParams) lp;
6176 LayoutParams layoutParams = (LayoutParams) holder.itemView.getLayoutParams();
6177 if (layoutParams != null) {
6178 layoutParams.mInsetsDirty = true;
6340 final ViewGroup.LayoutParams layoutParams = holder.itemView.getLayoutParams();
6341 if (layoutParams instanceof RecyclerView.LayoutParams) {
6342 ((LayoutParams) layoutParams).mInsetsDirty = true;
7383 * appropriately. Also, {@link LayoutParams#isItemRemoved() removed} items will
7429 * Create a default <code>LayoutParams</code> object for a child of the RecyclerView.
7431 * <p>LayoutManagers will often want to use a custom <code>LayoutParams</code> type
7433 * {@link RecyclerView.LayoutParams} for this purpose.</p>
7435 * <p><em>Important:</em> if you use your own custom <code>LayoutParams</code> type
7437 * {@link #checkLayoutParams(LayoutParams)},
7438 * {@link #generateLayoutParams(android.view.ViewGroup.LayoutParams)} and
7441 * @return A new LayoutParams for a child view
7443 public abstract LayoutParams generateDefaultLayoutParams();
7446 * Determines the validity of the supplied LayoutParams object.
7452 * @param lp LayoutParams object to check
7453 * @return true if this LayoutParams object is valid, false otherwise
7455 public boolean checkLayoutParams(LayoutParams lp) {
7460 * Create a LayoutParams object suitable for this LayoutManager, copying relevant
7461 * values from the supplied LayoutParams object if possible.
7463 * <p><em>Important:</em> if you use your own custom <code>LayoutParams</code> type
7465 * {@link #checkLayoutParams(LayoutParams)},
7466 * {@link #generateLayoutParams(android.view.ViewGroup.LayoutParams)} and
7469 * @param lp Source LayoutParams object to copy values from
7470 * @return a new LayoutParams object
7472 public LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) {
7473 if (lp instanceof LayoutParams) {
7474 return new LayoutParams((LayoutParams) lp);
7476 return new LayoutParams((MarginLayoutParams) lp);
7478 return new LayoutParams(lp);
7483 * Create a LayoutParams object suitable for this LayoutManager from
7486 * <p><em>Important:</em> if you use your own custom <code>LayoutParams</code> type
7488 * {@link #checkLayoutParams(LayoutParams)},
7489 * {@link #generateLayoutParams(android.view.ViewGroup.LayoutParams)} and
7494 * @return a new LayoutParams object
7496 public LayoutParams generateLayoutParams(Context c, AttributeSet attrs) {
7497 return new LayoutParams(c, attrs);
7697 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
7795 return ((RecyclerView.LayoutParams) view.getLayoutParams()).getViewLayoutPosition();
7876 * {@link #attachView(android.view.View, int, RecyclerView.LayoutParams) reattach}
7898 * {@link #attachView(android.view.View, int, RecyclerView.LayoutParams) reattach}
7922 * @param lp LayoutParams for child
7924 public void attachView(View child, int index, LayoutParams lp) {
7946 attachView(child, index, (LayoutParams) child.getLayoutParams());
8370 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
8392 boolean shouldReMeasureChild(View child, int widthSpec, int heightSpec, LayoutParams lp) {
8406 boolean shouldMeasureChild(View child, int widthSpec, int heightSpec, LayoutParams lp) {
8469 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
8494 * Generally obtained from the child view's LayoutParams
8520 } else if (childDimension == LayoutParams.MATCH_PARENT) {
8524 } else if (childDimension == LayoutParams.WRAP_CONTENT) {
8539 * Generally obtained from the child view's LayoutParams
8553 } else if (childDimension == LayoutParams.MATCH_PARENT) {
8565 } else if (childDimension == LayoutParams.WRAP_CONTENT) {
8573 } else if (childDimension == LayoutParams.MATCH_PARENT) {
8576 } else if (childDimension == LayoutParams.WRAP_CONTENT) {
8600 final Rect insets = ((LayoutParams) child.getLayoutParams()).mDecorInsets;
8614 final Rect insets = ((LayoutParams) child.getLayoutParams()).mDecorInsets;
8649 final Rect insets = ((LayoutParams) child.getLayoutParams()).mDecorInsets;
8685 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
8705 Rect insets = ((LayoutParams) child.getLayoutParams()).mDecorInsets;
8826 return ((LayoutParams) child.getLayoutParams()).mDecorInsets.top;
8841 return ((LayoutParams) child.getLayoutParams()).mDecorInsets.bottom;
8856 return ((LayoutParams) child.getLayoutParams()).mDecorInsets.left;
8871 return ((LayoutParams) child.getLayoutParams()).mDecorInsets.right;
9639 final ViewGroup.LayoutParams lp = child.getLayoutParams();
9746 getItemOffsets(outRect, ((LayoutParams) view.getLayoutParams()).getViewLayoutPosition(),
9906 * <p>While {@link LayoutParams} belong to the {@link LayoutManager},
10074 ((LayoutParams) itemView.getLayoutParams()).mInsetsDirty = true;
10459 * {@link android.view.ViewGroup.MarginLayoutParams LayoutParams} subclass for children of
10461 * to create their own subclass of this <code>LayoutParams</code> class
10464 public static class LayoutParams extends android.view.ViewGroup.MarginLayoutParams {
10473 public LayoutParams(Context c, AttributeSet attrs) {
10477 public LayoutParams(int width, int height) {
10481 public LayoutParams(MarginLayoutParams source) {
10485 public LayoutParams(ViewGroup.LayoutParams source) {
10489 public LayoutParams(LayoutParams source) {
10490 super((ViewGroup.LayoutParams) source);
10494 * Returns true if the view this LayoutParams is attached to needs to have its content
10504 * Returns true if the view this LayoutParams is attached to is now representing
10514 * Returns true if the adapter data item corresponding to the view this LayoutParams
10525 * Returns true if the adapter data item corresponding to the view this LayoutParams
10544 * Returns the adapter position that the view this LayoutParams is attached to corresponds
10554 * Returns the up-to-date adapter position that the view this LayoutParams is attached to