IT. Expert System.

Android Reference

RelativeLayout.LayoutParams


android.widget

Class RelativeLayout.LayoutParams

    • Field Detail

      • alignWithParent

        public boolean alignWithParent
        When true, uses the parent as the anchor if the anchor doesn't exist or if the anchor's visibility is GONE.
    • Constructor Detail

      • RelativeLayout.LayoutParams

        public RelativeLayout.LayoutParams(Context c,
                                   AttributeSet attrs)
      • RelativeLayout.LayoutParams

        public RelativeLayout.LayoutParams(int w,
                                   int h)
    • Method Detail

      • debug

        public String debug(String output)
        Description copied from class: ViewGroup.LayoutParams
        Returns a String representation of this set of layout parameters.
        Overrides:
        debug in class ViewGroup.LayoutParams
        Parameters:
        output - the String to prepend to the internal representation
        Returns:
        a String with the following format: output + "ViewGroup.LayoutParams={ width=WIDTH, height=HEIGHT }"
      • addRule

        public void addRule(int verb)
        Adds a layout rule to be interpreted by the RelativeLayout. This method should only be used for constraints that don't refer to another sibling (e.g., CENTER_IN_PARENT) or take a boolean value (RelativeLayout.TRUE for true or 0 for false). To specify a verb that takes a subject, use addRule(int, int) instead.
        Parameters:
        verb - One of the verbs defined by RelativeLayout, such as ALIGN_WITH_PARENT_LEFT.
        See Also:
        addRule(int, int)
      • addRule

        public void addRule(int verb,
                   int anchor)
        Adds a layout rule to be interpreted by the RelativeLayout. Use this for verbs that take a target, such as a sibling (ALIGN_RIGHT) or a boolean value (VISIBLE).
        Parameters:
        verb - One of the verbs defined by RelativeLayout, such as ALIGN_WITH_PARENT_LEFT.
        anchor - The id of another view to use as an anchor, or a boolean value(represented as RelativeLayout.TRUE) for true or 0 for false). For verbs that don't refer to another sibling (for example, ALIGN_WITH_PARENT_BOTTOM) just use -1.
        See Also:
        addRule(int)
      • removeRule

        public void removeRule(int verb)
        Removes a layout rule to be interpreted by the RelativeLayout.
        Parameters:
        verb - One of the verbs defined by RelativeLayout, such as ALIGN_WITH_PARENT_LEFT.
        See Also:
        addRule(int), addRule(int, int)
      • getRules

        public int[] getRules(int layoutDirection)
        Retrieves a complete list of all supported rules, where the index is the rule verb, and the element value is the value specified, or "false" if it was never set. If there are relative rules defined (*_START / *_END), they will be resolved depending on the layout direction.
        Parameters:
        layoutDirection - the direction of the layout. Should be either View.LAYOUT_DIRECTION_LTR or View.LAYOUT_DIRECTION_RTL
        Returns:
        the supported rules
        See Also:
        addRule(int, int)
      • getRules

        public int[] getRules()
        Retrieves a complete list of all supported rules, where the index is the rule verb, and the element value is the value specified, or "false" if it was never set. There will be no resolution of relative rules done.
        Returns:
        the supported rules
        See Also:
        addRule(int, int)


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 833 / . Delta: 0.03057 с