Home | History | Annotate | Download | only in widget

Lines Matching defs:LayoutParams

45  * <a href="FrameLayout.LayoutParams.html#attr_android:layout_gravity">{@code
141 * {@link android.view.ViewGroup.LayoutParams#MATCH_PARENT},
142 * and a height of {@link android.view.ViewGroup.LayoutParams#MATCH_PARENT}.
145 protected LayoutParams generateDefaultLayoutParams() {
146 return new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
186 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
193 if (lp.width == LayoutParams.MATCH_PARENT ||
194 lp.height == LayoutParams.MATCH_PARENT) {
227 if (lp.width == LayoutParams.MATCH_PARENT) {
241 if (lp.height == LayoutParams.MATCH_PARENT) {
276 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
369 public LayoutParams generateLayoutParams(AttributeSet attrs) {
370 return new FrameLayout.LayoutParams(getContext(), attrs);
379 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {
380 return p instanceof LayoutParams;
384 protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) {
386 if (lp instanceof LayoutParams) {
387 return new LayoutParams((LayoutParams) lp);
389 return new LayoutParams((MarginLayoutParams) lp);
392 return new LayoutParams(lp);
419 public static class LayoutParams extends MarginLayoutParams {
438 public LayoutParams(@NonNull Context c, @Nullable AttributeSet attrs) {
446 public LayoutParams(int width, int height) {
462 public LayoutParams(int width, int height, int gravity) {
467 public LayoutParams(@NonNull ViewGroup.LayoutParams source) {
471 public LayoutParams(@NonNull ViewGroup.MarginLayoutParams source) {
481 public LayoutParams(@NonNull LayoutParams source) {