AbsoluteLayout.LayoutParams
public
static
class
AbsoluteLayout.LayoutParams
extends ViewGroup.LayoutParams
java.lang.Object | ||
↳ | android.view.ViewGroup.LayoutParams | |
↳ | android.widget.AbsoluteLayout.LayoutParams |
Per-child layout information associated with AbsoluteLayout.
See
Absolute Layout Attributes
for a list of all child view attributes that this class supports.
Summary
Inherited XML attributes | |
---|---|
Inherited constants |
---|
Fields | |
---|---|
public
int |
x
The horizontal, or X, location of the child within the view group. |
public
int |
y
The vertical, or Y, location of the child within the view group. |
Inherited fields |
---|
Public constructors | |
---|---|
AbsoluteLayout.LayoutParams(int width, int height, int x, int y)
Creates a new set of layout parameters with the specified width, height and location. |
|
AbsoluteLayout.LayoutParams(Context c, AttributeSet attrs)
Creates a new set of layout parameters. |
|
AbsoluteLayout.LayoutParams(ViewGroup.LayoutParams source)
|
Public methods | |
---|---|
String
|
debug(String output)
Returns a String representation of this set of layout parameters. |
Inherited methods | |
---|---|
Fields
x
public int x
The horizontal, or X, location of the child within the view group.
y
public int y
The vertical, or Y, location of the child within the view group.
Public constructors
AbsoluteLayout.LayoutParams
public AbsoluteLayout.LayoutParams (int width, int height, int x, int y)
Creates a new set of layout parameters with the specified width, height and location.
Parameters | |
---|---|
width |
int : the width, either ViewGroup.LayoutParams.MATCH_PARENT ,
ViewGroup.LayoutParams.WRAP_CONTENT or a fixed size in pixels |
height |
int : the height, either ViewGroup.LayoutParams.MATCH_PARENT ,
ViewGroup.LayoutParams.WRAP_CONTENT or a fixed size in pixels |
x |
int : the X location of the child |
y |
int : the Y location of the child
|
AbsoluteLayout.LayoutParams
public AbsoluteLayout.LayoutParams (Context c, AttributeSet attrs)
Creates a new set of layout parameters. The values are extracted from the supplied attributes set and context. The XML attributes mapped to this set of layout parameters are:
layout_x
: the X location of the childlayout_y
: the Y location of the child- All the XML attributes from
ViewGroup.LayoutParams
Parameters | |
---|---|
c |
Context : the application environment |
attrs |
AttributeSet : the set of attributes from which to extract the layout
parameters values
|
AbsoluteLayout.LayoutParams
public AbsoluteLayout.LayoutParams (ViewGroup.LayoutParams source)
Parameters | |
---|---|
source |
ViewGroup.LayoutParams |
Public methods
debug
public String debug (String output)
Returns a String representation of this set of layout parameters.
Parameters | |
---|---|
output |
String : the String to prepend to the internal representation |
Returns | |
---|---|
String |
a String with the following format: output + "ViewGroup.LayoutParams={ width=WIDTH, height=HEIGHT }" |
Annotations
Interfaces
- AbsListView.MultiChoiceModeListener
- AbsListView.OnScrollListener
- AbsListView.RecyclerListener
- AbsListView.SelectionBoundsAdjuster
- ActionMenuView.OnMenuItemClickListener
- Adapter
- AdapterView.OnItemClickListener
- AdapterView.OnItemLongClickListener
- AdapterView.OnItemSelectedListener
- Advanceable
- AutoCompleteTextView.OnDismissListener
- AutoCompleteTextView.Validator
- CalendarView.OnDateChangeListener
- Checkable
- Chronometer.OnChronometerTickListener
- CompoundButton.OnCheckedChangeListener
- DatePicker.OnDateChangedListener
- ExpandableListAdapter
- ExpandableListView.OnChildClickListener
- ExpandableListView.OnGroupClickListener
- ExpandableListView.OnGroupCollapseListener
- ExpandableListView.OnGroupExpandListener
- Filter.FilterListener
- Filterable
- FilterQueryProvider
- HeterogeneousExpandableList
- ListAdapter
- MediaController.MediaPlayerControl
- MultiAutoCompleteTextView.Tokenizer
- NumberPicker.Formatter
- NumberPicker.OnScrollListener
- NumberPicker.OnValueChangeListener
- PopupMenu.OnDismissListener
- PopupMenu.OnMenuItemClickListener
- PopupWindow.OnDismissListener
- RadioGroup.OnCheckedChangeListener
- RatingBar.OnRatingBarChangeListener
- RemoteViewsService.RemoteViewsFactory
- SearchView.OnCloseListener
- SearchView.OnQueryTextListener
- SearchView.OnSuggestionListener
- SectionIndexer
- SeekBar.OnSeekBarChangeListener
- ShareActionProvider.OnShareTargetSelectedListener
- SimpleAdapter.ViewBinder
- SimpleCursorAdapter.CursorToStringConverter
- SimpleCursorAdapter.ViewBinder
- SimpleCursorTreeAdapter.ViewBinder
- SlidingDrawer.OnDrawerCloseListener
- SlidingDrawer.OnDrawerOpenListener
- SlidingDrawer.OnDrawerScrollListener
- SpinnerAdapter
- TabHost.OnTabChangeListener
- TabHost.TabContentFactory
- TextView.OnEditorActionListener
- ThemedSpinnerAdapter
- TimePicker.OnTimeChangedListener
- Toolbar.OnMenuItemClickListener
- ViewSwitcher.ViewFactory
- WrapperListAdapter
- ZoomButtonsController.OnZoomListener
Classes
- AbsListView
- AbsListView.LayoutParams
- AbsoluteLayout
- AbsoluteLayout.LayoutParams
- AbsSeekBar
- AbsSpinner
- ActionMenuView
- ActionMenuView.LayoutParams
- AdapterView
- AdapterView.AdapterContextMenuInfo
- AdapterViewAnimator
- AdapterViewFlipper
- AlphabetIndexer
- AnalogClock
- ArrayAdapter
- AutoCompleteTextView
- BaseAdapter
- BaseExpandableListAdapter
- Button
- CalendarView
- CheckBox
- CheckedTextView
- Chronometer
- CompoundButton
- CursorAdapter
- CursorTreeAdapter
- DatePicker
- DialerFilter
- DigitalClock
- EdgeEffect
- EditText
- ExpandableListView
- ExpandableListView.ExpandableListContextMenuInfo
- Filter
- Filter.FilterResults
- FrameLayout
- FrameLayout.LayoutParams
- Gallery
- Gallery.LayoutParams
- GridLayout
- GridLayout.Alignment
- GridLayout.LayoutParams
- GridLayout.Spec
- GridView
- HeaderViewListAdapter
- HorizontalScrollView
- ImageButton
- ImageSwitcher
- ImageView
- LinearLayout
- LinearLayout.LayoutParams
- ListPopupWindow
- ListView
- ListView.FixedViewInfo
- Magnifier
- MediaController
- MultiAutoCompleteTextView
- MultiAutoCompleteTextView.CommaTokenizer
- NumberPicker
- OverScroller
- PopupMenu
- PopupWindow
- ProgressBar
- QuickContactBadge
- RadioButton
- RadioGroup
- RadioGroup.LayoutParams
- RatingBar
- RelativeLayout
- RelativeLayout.LayoutParams
- RemoteViews
- RemoteViewsService
- ResourceCursorAdapter
- ResourceCursorTreeAdapter
- Scroller
- ScrollView
- SearchView
- SeekBar
- ShareActionProvider
- SimpleAdapter
- SimpleCursorAdapter
- SimpleCursorTreeAdapter
- SimpleExpandableListAdapter
- SlidingDrawer
- Space
- Spinner
- StackView
- Switch
- TabHost
- TabHost.TabSpec
- TableLayout
- TableLayout.LayoutParams
- TableRow
- TableRow.LayoutParams
- TabWidget
- TextClock
- TextSwitcher
- TextView
- TextView.SavedState
- TimePicker
- Toast
- ToggleButton
- Toolbar
- Toolbar.LayoutParams
- TwoLineListItem
- VideoView
- ViewAnimator
- ViewFlipper
- ViewSwitcher
- ZoomButton
- ZoomButtonsController
- ZoomControls
Enums
Exceptions