ディレクトリ 検索
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
テキスト


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       高度属性的标识符

 


前の記事: 次の記事: