Android 创建如下所示的TextView的最佳方法
我正在尝试重新创建这种类型的文本视图。是材质设计文本输入还是修改的文本视图? 如何将该行置于TextView顶部? 多谢各位Android 创建如下所示的TextView的最佳方法,android,user-interface,textview,material-design,Android,User Interface,Textview,Material Design,我正在尝试重新创建这种类型的文本视图。是材质设计文本输入还是修改的文本视图? 如何将该行置于TextView顶部? 多谢各位 这只是一个带有背景属性的视图。像这样使用它: <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="20dp"
这只是一个带有背景属性的
视图。像这样使用它:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/black"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="View line placed above the text view"
android:layout_marginTop="5dp"/>
</LinearLayout>
谢谢你,作品:)