亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

?? ??? ??
android Manifest Manifest.permission Manifest.permission_group android.accessibilityservice AccessibilityService android.accounts Account android.app NotificationManager android.bluetooth BluetoothAdapter BluetoothClass BluetoothClass.Device BluetoothClass.Device.Major BluetoothClass.Service BluetoothDevice BluetoothServerSocket BluetoothSocket android.content SharedPreferences android.database.sqlite SQLiteCursorDriver SQLiteOpenHelper android.graphics Bitmap android.location LocationListener Geocoder GpsStatus GpsStatus.Listener GpsStatus.NmeaListener GpsSatellite android.media AudioFormat AsyncPlayer AudioRecord AudioRecord.OnRecordPositionUpdateListener ThumbnailUtils AudioManager android.net TrafficStats MailTo LocalSocket android.os AsyncTask AsyncTask.Status CountDownTimer Message MessageQueue HandlerThread android.text Html android.util JsonWriter android.view ContextMenu ContextMenu.ContextMenuInfo Display ViewManager View ViewStub ViewTreeObserver ViewParent WindowManager GestureDetector Gravity MenuInflater ScaleGestureDetector SoundEffectConstants android.view.inputmethod InputConnection InputMethod InputMethodSession BaseInputConnection InputMethodManager android.widget AbsListView AbsListView.LayoutParams AbsListView.OnScrollListener AbsListView.RecyclerListener AbsoluteLayout AbsoluteLayout.LayoutParams AbsSeekBar AbsSpinner AdapterView AdapterView.AdapterContextMenuInfo AdapterView.OnItemLongClickListener AdapterView.OnItemSelectedListener AdapterView.OnItemClickListener AnalogClock BaseAdapter BaseExpandableListAdapter Button CheckBox CheckedTextView Checkable Chronometer Chronometer.OnChronometerTickListener CompoundButton CompoundButton.OnCheckedChangeListener CursorAdapter CursorTreeAdapter DatePicker DatePicker.OnDateChangedListener DialerFilter DigitalClock EditText Filter Filter.FilterListener Filter.FilterResults ExpandableListAdapter ExpandableListView.OnChildClickListener ExpandableListView.OnGroupClickListener ExpandableListView.OnGroupCollapseListener ExpandableListView.OnGroupExpandListener Filterable Gallery Gallery.LayoutParams GridView GridLayout GridLayout.Alignment RadioGroup ImageView ImageView.ScaleType HorizontalScrollView ImageButton ImageSwitcher FilterQueryProvider ListAdapter ListView MediaController MultiAutoCompleteTextView MultiAutoCompleteTextView.CommaTokenizer MultiAutoCompleteTextView.Tokenizer QuickContactBadge RadioButton RatingBar RatingBar.OnRatingBarChangeListener RelativeLayout RemoteViews ResourceCursorAdapter ResourceCursorTreeAdapter Scroller ScrollView SearchView SearchView.OnCloseListener SearchView.OnQueryTextListener SearchView.OnSuggestionListener SeekBar SeekBar.OnSeekBarChangeListener SimpleAdapter SimpleAdapter.ViewBinder SimpleCursorAdapter SimpleCursorAdapter.CursorToStringConverter SimpleCursorAdapter.ViewBinder SimpleCursorTreeAdapter SimpleCursorTreeAdapter.ViewBinder SimpleExpandableListAdapter SlidingDrawer SlidingDrawer.OnDrawerCloseListener SlidingDrawer.OnDrawerOpenListener SlidingDrawer.OnDrawerScrollListener Spinner SpinnerAdapter WrapperListAdapter TabHost TabHost.TabSpec TextView TimePicker TimePicker.OnTimeChangedListener Toast TableLayout TableLayout.LayoutParams TableRow TableRow.LayoutParams TabWidget TextSwitcher ToggleButton TwoLineListItem VideoView ViewAnimator ViewFlipper ViewSwitcher ViewSwitcher.ViewFactory ZoomButtonsController ZoomButtonsController.OnZoomListener ZoomButton ZoomControls dalvik.system DexFile
??


AbsoluteLayout

版本:Android 2.2 r1

?

public class AbsoluteLayout extends ViewGroup

?

java.lang.Object

???????? android.view.View

? ???? ???????? android.view.ViewGroup

??????????????????????????? android.widget.AbsoluteLayout

?

直接子類

???????? WebView

?

此類不贊成使用。

推薦使用FrameLayoutRelativeLayout或者定制的layout代替。

?

概述

????????

讓你指定子元素的xy精確坐標的布局。絕對布局缺乏靈活性,在沒有絕對定位的情況下相比其他類型的布局更難維護。

?

公共方法???????

???????? public ViewGroup.LayoutParams generateLayoutParams (AttributeSet attrs)

返回一組新的基于所支持的屬性集的布局參數

參數

attrs ?????? 構建layout布局參數的屬性集合

返回值

一個ViewGroup.LayoutParams的實例或者它的一個子類

?

受保護方法

???????? protected ViewGroup.LayoutParams generateLayoutParams (ViewGroup.LayoutParams p)

返回一組合法的受支持的布局參數。當一個ViewGroup傳遞一個布局參數沒有通過checkLayoutParams(android.view.ViewGroup.LayoutParams)檢測的視圖時,此方法被調用。此方法會返回一組新的適合當前ViewGroup的布局參數,可能從指定的一組布局參數中復制適當的屬性。

參數

p ???? 被轉換成一組適合當前 ViewGroup的布局參數

返回值

an instance of ViewGroup.LayoutParams or one of its descendants

一個ViewGroup.LayoutParams的實例或者其中的一個子節(jié)點

?

protected boolean checkLayoutParams (ViewGroup.LayoutParams p)

???????? (譯者注:檢測是不是AbsoluteLayout.LayoutParams的實例,見源碼:

?

protected ViewGroup.LayoutParams generateDefaultLayoutParams ()

返回一組寬度為WRAP_CONTENT,高度為WRAP_CONTENT,坐標是(00)的布局參數

返回值

一組默認的布局參數或null

?

protected void onLayout (boolean changed, int l, int t, int r, int b)

在此視圖view給他的每一個子元素分配大小和位置時調用。 派生類可以重寫此方法并且重新安排他們子類的布局。

參數

changed?? 這是當前視圖view的一個新的大小或位置

l??????? 相對于父節(jié)點的左邊位置

t??????? 相對于父節(jié)點的頂點位置

r??????? 相對于父節(jié)點的右邊位置

b?????? 相對于父節(jié)點的底部位置

?

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

測量視圖以確定其內容寬度和高度。此方法被measure(int, int)調用。需要被子類重寫以提供對其內容準確高效的測量。

約定:當重寫此方法時,你必須調用setMeasuredDimension(int, int)來保存當前視圖view的寬度和高度。不成功調用此方法將會導致一個IllegalStateException異常,是由measure(int, int)拋出。所以調用父類的onMeasure(int, int)方法是必須的。

父類的實現是以背景大小為默認大小,除非MeasureSpec(測量細則)允許更大的背景。子類可以重寫onMeasure(int,int)以對其內容提供更佳的尺寸。

如果此方法被重寫,那么子類的責任是確認測量高度和測量寬度要大于視圖view的最小寬度和最小高度(getSuggestedMinimumHeight() and getSuggestedMinimumWidth()),使用這兩個方法可以取得最小寬度和最小高度。

參數

widthMeasureSpec????????? 強加于父節(jié)點的橫向空間要求。要求是使用View.MeasureSpec進行編碼

heightMeasureSpec???????? 強加于父節(jié)點的縱向空間要求。要求是使用View.MeasureSpec進行編碼。

?

補充

???????? 文件鏈接

?????????????????? Android的幾種布局方式

?????????????????? 第六講:用戶界面 View(二)

?????????????????? 如何動態(tài)改變 AbsoluteLayout布局中其它布局的坐標

???????? 示例代碼

<AbsoluteLayout

android:id="@+id/AbsoluteLayout01" android:layout_height="wrap_content"

android:layout_width="fill_parent" >

<TextView

android:text="TextView01" android:id="@+id/TextView01"

android:layout_height="wrap_content" android:layout_y="10px"

android:layout_width="wrap_content" android:layout_x="110px">

</TextView>

?</AbsoluteLayout>

?


?? ??: ?? ??: