目录搜索
androidManifestManifest.permissionManifest.permission_groupandroid.accessibilityserviceAccessibilityServiceandroid.accountsAccountandroid.appNotificationManagerandroid.bluetoothBluetoothAdapterBluetoothClassBluetoothClass.DeviceBluetoothClass.Device.MajorBluetoothClass.ServiceBluetoothDeviceBluetoothServerSocketBluetoothSocketandroid.contentSharedPreferencesandroid.database.sqliteSQLiteCursorDriverSQLiteOpenHelperandroid.graphicsBitmapandroid.locationLocationListenerGeocoderGpsStatusGpsStatus.ListenerGpsStatus.NmeaListenerGpsSatelliteandroid.mediaAudioFormatAsyncPlayerAudioRecordAudioRecord.OnRecordPositionUpdateListenerThumbnailUtilsAudioManagerandroid.netTrafficStatsMailToLocalSocketandroid.osAsyncTaskAsyncTask.StatusCountDownTimerMessageMessageQueueHandlerThreadandroid.textHtmlandroid.utilJsonWriterandroid.viewContextMenuContextMenu.ContextMenuInfoDisplayViewManagerViewViewStubViewTreeObserverViewParentWindowManagerGestureDetectorGravityMenuInflaterScaleGestureDetectorSoundEffectConstantsandroid.view.inputmethodInputConnectionInputMethodInputMethodSessionBaseInputConnectionInputMethodManagerandroid.widgetAbsListViewAbsListView.LayoutParamsAbsListView.OnScrollListenerAbsListView.RecyclerListenerAbsoluteLayoutAbsoluteLayout.LayoutParamsAbsSeekBarAbsSpinnerAdapterViewAdapterView.AdapterContextMenuInfoAdapterView.OnItemLongClickListenerAdapterView.OnItemSelectedListenerAdapterView.OnItemClickListenerAnalogClockBaseAdapterBaseExpandableListAdapterButtonCheckBoxCheckedTextViewCheckableChronometerChronometer.OnChronometerTickListenerCompoundButtonCompoundButton.OnCheckedChangeListenerCursorAdapterCursorTreeAdapterDatePickerDatePicker.OnDateChangedListenerDialerFilterDigitalClockEditTextFilterFilter.FilterListenerFilter.FilterResultsExpandableListAdapterExpandableListView.OnChildClickListenerExpandableListView.OnGroupClickListenerExpandableListView.OnGroupCollapseListenerExpandableListView.OnGroupExpandListenerFilterableGalleryGallery.LayoutParamsGridViewGridLayoutGridLayout.AlignmentRadioGroupImageViewImageView.ScaleTypeHorizontalScrollViewImageButtonImageSwitcherFilterQueryProviderListAdapterListViewMediaControllerMultiAutoCompleteTextViewMultiAutoCompleteTextView.CommaTokenizerMultiAutoCompleteTextView.TokenizerQuickContactBadgeRadioButtonRatingBarRatingBar.OnRatingBarChangeListenerRelativeLayoutRemoteViewsResourceCursorAdapterResourceCursorTreeAdapterScrollerScrollViewSearchViewSearchView.OnCloseListenerSearchView.OnQueryTextListenerSearchView.OnSuggestionListenerSeekBarSeekBar.OnSeekBarChangeListenerSimpleAdapterSimpleAdapter.ViewBinderSimpleCursorAdapterSimpleCursorAdapter.CursorToStringConverterSimpleCursorAdapter.ViewBinderSimpleCursorTreeAdapterSimpleCursorTreeAdapter.ViewBinderSimpleExpandableListAdapterSlidingDrawerSlidingDrawer.OnDrawerCloseListenerSlidingDrawer.OnDrawerOpenListenerSlidingDrawer.OnDrawerScrollListenerSpinnerSpinnerAdapterWrapperListAdapterTabHostTabHost.TabSpecTextViewTimePickerTimePicker.OnTimeChangedListenerToastTableLayoutTableLayout.LayoutParamsTableRowTableRow.LayoutParamsTabWidgetTextSwitcherToggleButtonTwoLineListItemVideoViewViewAnimatorViewFlipperViewSwitcherViewSwitcher.ViewFactoryZoomButtonsControllerZoomButtonsController.OnZoomListenerZoomButtonZoomControlsdalvik.systemDexFile
文字


TableRow.LayoutParams

版本:Android 3.0 r1

 

类结构

public class TableRow extends LinerLayout

 

java.lang.Object

android.view.ViewGroup.LayoutParams

       android.view.ViewGroup.MarginLayoutParams

              android.widget.LinearLayout.LayoutParams

                     android.widget.TableRow.LayoutParams

 

类概述

         设置在表格行中使用的布局参数

         参见

                   TableLayout.LayoutParams

 

XML属性

属性名称

描述

android:layout_column

该子元素所在的列的索引值。必须是一个整数值,例如“100”。

android:layout_span

定义此子元素跨越多少列。必须>=1。必须是一个整数值,例如“100”。

 

字段

         public int column

         单元格cellwidget上代表的列索引。

 

         public int span

    widget跨越的列数

 

构造函数

         public TableRow.LayoutParams (Context c, AttributeSet attrs)

        

         public TableRow.LayoutParams (int w, int h)

         设置子元素的宽度和高度

                   参数

                            w     期望高度

                            h      期望宽度

 

         public TableRow.LayoutParams (int w, int h, float initWeight)

 

                   参数

                            w     期望高度

                            h      期望宽度

initWeight       期望权重(weight)

 

         public TableRow.LayoutParams ()

         设置子元素的宽度为ViewGroup.LayoutParams,高度参数为WRAP_CONTENT

 

         public TableRow.LayoutParams (int column)

         设置指定列上的视图的宽度参数为MATCH_PARENT,高度参数为WRAP_CONTENT

                   参数

                            column    视图中列的索引

 

         public TableRow.LayoutParams (ViewGroup.LayoutParams p)

 

         public TableRow.LayoutParams (ViewGroup.MarginLayoutParams source)

 

公共方法

         protected void setBaseAttributes (TypedArray a, int widthAttr, int heightAttr)

         从提供的参数中提取出布局参数

        参数

                            a      从布局参数中提取的样式属性

widthAttr        宽度属性的标识符

heightAttr       高度属性的标识符

 


上一篇:下一篇: