android - 如何编写 Android 4.0 样式部分

标签 android android-layout android-4.0-ice-cream-sandwich

如图新design guidelines ,

Google 向我们展示了一种显示部分的内置方式。

这种部分是特定的布局吗?我可以在类似表单的应用程序中“硬编码”以前已知的部分吗?

谢谢

最佳答案

发现和之前一样:

 <TextView
        android:id="@+id/txt_section"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Section text"
        style="?android:attr/listSeparatorTextViewStyle"/>

关于android - 如何编写 Android 4.0 样式部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9066967/

相关文章:

java - 相当于android中的html img src

android - 在 ImageView 之后显示 TextView

Android ICS Launcher 4.0.x 无法保持屏幕方向

安卓 : Accessing container activity object from fragment using putExtra?

Android ARCore 测量距离

java - Android 中的显示对话框会导致崩溃

android - 将 Adapter 设置为 linearLayout 而不是 listView

android - 编写向后兼容的 ICS Android 应用程序

android 4.0,操作栏上的文字从不显示

android - 滑动抽屉下方的按钮正在注册点击