表格的单元格中的View可以定义自己的对齐方式(Gravity),本例介绍单元格中的View使用不同的对其方式:
<TableLayout xmlns:android=”http://schemas.android.com/apk/res/android”
android:layout_width=”match_parent”
android:layout_height=”wrap_content”
android:stretchColumns=”1″>
<TableRow>
<TextView
android:layout_column=”1″
android:text=”@string/table_layout_7_open”
android:padding=”3dip” />
<TextView
android:text=”@string/table_layout_7_open_shortcut”
android:gravity=”right”
android:padding=”3dip” />
</TableRow>
<TableRow>
<TextView
android:layout_column=”1″
android:text=”@string/table_layout_7_save”
android:background=”#FF00FF00″
android:padding=”3dip” />
<TextView
android:text=”@string/table_layout_7_save_shortcut”
android:gravity=”right”
android:padding=”3dip” />
</TableRow>
<TableRow>
<!– Horizontally centers the content of the cell –>
<TextView
android:layout_column=”1″
android:text=”@string/table_layout_7_save_as”
android:background=”#FFFF0000″
android:layout_gravity=”center_horizontal”
android:padding=”3dip” />
<TextView
android:text=”@string/table_layout_7_save_as_shortcut”
android:background=”#FFFF00FF”
android:gravity=”right”
android:padding=”3dip” />
</TableRow>
<View
android:layout_height=”2dip”
android:background=”#FF909090″ />
<TableRow>
<TextView
android:text=”@string/table_layout_7_x”
android:padding=”3dip” />
<TextView
android:text=”@string/table_layout_7_import”
android:padding=”3dip” />
</TableRow>
<TableRow>
<View
android:layout_height=”68dip”
android:background=”#FF909090″ />
<!– Aligns the content of the cell to the bottom right –>
<TextView
android:text=”@string/table_layout_7_export”
android:background=”#FFFF0000″
android:layout_gravity=”right|bottom”
android:padding=”3dip” />
<TextView
android:text=”@string/table_layout_7_export_shortcut”
android:background=”#FF00FFFF”
android:gravity=”right”
android:padding=”3dip” />
</TableRow>
<View
android:layout_height=”2dip”
android:background=”#FF909090″ />
</TableLayout>
相关推荐
NULL 博文链接:https://kakukemeit.iteye.com/blog/1806388
android apidemos代码的示例解析,讲的挺全的
Android ApiDemos apk, 包括Android presentation双屏异显 demon, App>Activity>Presentation
最新版ApiDemos Android SDK 中带有很多例子,其中ApiDemo 详细介绍了Android 平台主要API,分成了 · App · Content · Graphics · Media · OS · Text · Views 几个大类,每个大类又分为几个小类,...
demos :jdk-8u202-linux-x64-demos.tar.gz
demos :jdk-8u202-linux-arm64-vfp-hflt-demos.tar.gz
Run demos in Assets/FairyGUI/Examples/Scenes. The UI project is in Examples-UIProject.zip, unzip it anywhere. Use FairyGUI Editor to open it. Using FairyGUI in Unity: * Place a UIPanel in scene by ...
最新Android apidemos
从官方预览包里提取的Android6.0 ApiDemos.apk,方便安装在真机上查看实例的实际效果。
Microsoft.Premium.DP-300.by_.VCEup_.82q-DEMOS.pdf
api ------------- API目录 demos ------------- 本地demos目录 lib ------------- 框架源代码目录 index.htm ------------- 主页面 loading.gif ------------- loading图标 welcome.htm ------------- 欢迎页面 ...
文件名称: jdk-8u231-solaris-x64-demos.tar.gz 文件大小: 8.43 MB (8,846,115 字节) MD5: 3b62803c4e86b40f1a83b68be7bce224 SHA1: 3aba5de2157163b949179a5b654494da05b4da9c SHA256: 774c5d41a1422d22d026eaaa39...
API Demos 是 Google 为了 Android 开发者所提供的一个 Android API 合集,其中包含了很多的 API 范例,同时遵循了良好的代码规范,是一个值得开发者研究和学习的典型。android的ApiDemos,需要解压缩后使用。
r下载后,解压,把解压后的文件直接放入到red5webaaps下
android APIdemos,android 源码简单使用demos
demos :jdk-8u202-linux-arm32-vfp-hflt-demos.tar.gz
Android 5.1的ApiDemos安装包
|dropdown>, popup scroll to current selected item. Element.clone(), clones ID attribute too. [d2d] css filters to work on layered windows. [css] filter:grayscale(50%) – "partial grayscale" aka ...
WAR File: dwr.war (4.62Mb) Demos/Examples of what DWR can do Sources: dwr-3.0.0.116.rc1-src.zip (71Mb) See also the sources from SVN Non-CLA JAR: dwr-noncla.jar (15.8kb) Code that we don't ...
jdk-7u40-windows-x64-demos.zip