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

direktori cari
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
watak


TableRow

版本:Android 3.0 r1

?

類結(jié)構(gòu)

public class TableRow extends LinerLayout

?

java.lang.Object

android.view.View

? ???? android.view.ViewGroup

? ???? ?????? android.widget.LinearLayout

? ???? ?????? ?????? android.widget.TableRow

?

類概述

按照水平方向來(lái)組織子視圖的布局。TableRow應(yīng)該總是作為TableLayout的子視圖。如果TableRow的父視圖不是TableLayout,那么TableRow將相當(dāng)于一個(gè)水平方向布局的LinearLayout

XML配置文件中TableRow的子視圖不需要詳細(xì)指定其layout_widthlayout_height屬性值。TableRow總是強(qiáng)制將這兩個(gè)屬性分別賦值為MATCH_PARENTWRAP_CONTENT

可參考android.widget.TableRow.LayoutParams的布局屬性。

?

內(nèi)部類

class ?????? TableRow.LayoutParams

適用于TableRow的子視圖的屬性設(shè)置

?

構(gòu)造函數(shù)

public TableRow (Context context)

為給定的上下文創(chuàng)建TableRow布局。

參數(shù)

context ? 應(yīng)用程序環(huán)境

?

public TableRow (Context context, AttributeSet attrs)

使用指定的屬性集合為給定的上下文創(chuàng)建TableRow布局。

參數(shù)

context ? 應(yīng)用程序環(huán)境

attrs? 屬性集合

?

公共方法

public TableRow.LayoutParams generateLayoutParams (AttributeSet attrs)

返回一組基于提供的屬性集合的布局參數(shù)集合

參數(shù)

attrs? 用于生成布局參數(shù)的屬性集

返回值

??? ?????????????????? ViewGroup.LayoutParams或其子類的實(shí)例

?

public View getVirtualChildAt (int i)

返回指定索引的視圖。這個(gè)方法被重載時(shí)應(yīng)當(dāng)考慮到其虛擬子視圖。參見TableLayoutTableRow的示例代碼。

參數(shù)

i? 子視圖的索引

返回值

??? ?????????????????? 指定索引的子視圖

?

public int getVirtualChildCount ()

返回虛擬子視圖的個(gè)數(shù)。如果這個(gè)布局支持子視圖,此數(shù)量可能與實(shí)際子視圖數(shù)量不同。???? 參見TableLayoutTableRow的示例代碼。

返回值

??? ?????????????????? 虛擬子視圖的數(shù)量

?

public void setOnHierarchyChangeListener (ViewGroup.OnHierarchyChangeListener listener)

注冊(cè)一個(gè)回調(diào)函數(shù),當(dāng)從視圖中添加或移除子視圖時(shí)被調(diào)用。

參數(shù)

listener? 層次結(jié)構(gòu)變更時(shí)執(zhí)行的回調(diào)函數(shù)

?

受保護(hù)方法

protected boolean checkLayoutParams (ViewGroup.LayoutParams p)

(譯者注:檢測(cè)是不是AbsoluteLayout.LayoutParams的實(shí)例)

?

protected LinearLayout.LayoutParams generateDefaultLayoutParams ()

返回寬度為MATCH_PARENT,高度為WRAP_CONTENT且沒有跨度的布局參數(shù)集合。

返回值

??? ?????????????????? 默認(rèn)布局參數(shù)集合或空

?

protected LinearLayout.LayoutParams generateLayoutParams (ViewGroup.LayoutParams p)

返回一組合法的受支持的布局參數(shù)集合。當(dāng)一個(gè)ViewGroup傳遞一個(gè)布局參數(shù)沒有通過checkLayoutParams(android.view.ViewGroup.LayoutParams)檢測(cè)的視圖時(shí),此方法將被調(diào)用。此方法會(huì)返回一組新的適合當(dāng)前ViewGroup的布局參數(shù),可能從指定的一組布局參數(shù)集合中復(fù)制適當(dāng)?shù)膶傩浴?/span>

參數(shù)

p? 被轉(zhuǎn)換成一組適合當(dāng)前ViewGroup的布局參數(shù)

返回值

??? ?????????????????? 一個(gè)ViewGroup.LayoutParams的實(shí)例或者其中的一個(gè)子節(jié)點(diǎn)

?

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

在此視圖設(shè)置其子視圖的大小及位置時(shí)調(diào)用。派生類可以重寫此方法并重新為其子類布???????? 局。

參數(shù)

changed? 這是當(dāng)前視圖的一個(gè)新大小或位置

l? 相對(duì)于父節(jié)點(diǎn)的左邊位置

t? 相對(duì)于父節(jié)點(diǎn)的頂點(diǎn)位置

r? 相對(duì)于父節(jié)點(diǎn)的右邊位置

b? 相對(duì)于父節(jié)點(diǎn)的底部位置

?

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

測(cè)量視圖及其內(nèi)容,以確定其寬度和高度。此方法由measure(int, int)調(diào)用。需要被子類重寫以提供準(zhǔn)確、高效的測(cè)量其內(nèi)容的方法。

約定:當(dāng)重寫此方法時(shí),必須調(diào)用setMeasuredDimension(int, int)來(lái)保存當(dāng)前視圖的寬度和高度。如果調(diào)用不成功將會(huì)導(dǎo)致一個(gè)IllegalStateException異常,由measure(int, int)拋出。要有效的調(diào)用父類的onMeasure(int, int)方法。

基類的實(shí)現(xiàn)是以背景大小為默認(rèn)大小,除非MeasureSpec(測(cè)量細(xì)則)允許更大的背景。子類應(yīng)重寫onMeasure(int, int)以對(duì)其內(nèi)容提供更合適的大小。

如果此方法被重寫,那么子類要確保其測(cè)量高度和測(cè)量寬度要大于視圖的最小寬度和最小高度(getSuggestedMinimumHeight()getSuggestedMinimumWidth())。

參數(shù)

widthMeasureSpec? 父視圖要求的橫向空間大小。該要求由View.MeasureSpec進(jìn)行編碼

heightMeasureSpec? 父視圖要求的縱向空間大小。該要求由View.MeasureSpec進(jìn)行編碼

?

補(bǔ)充

推薦教程:

Android Doc官方教程-TableLayout中使用TableRow

TableLayout中使用TableRow對(duì)象來(lái)定義多行

?

?


Artikel sebelumnya: Artikel seterusnya: