Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 创建如下所示的TextView的最佳方法_Android_User Interface_Textview_Material Design - Fatal编程技术网

Android 创建如下所示的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"

我正在尝试重新创建这种类型的文本视图。是材质设计文本输入还是修改的文本视图? 如何将该行置于TextView顶部? 多谢各位


这只是一个带有背景属性的
视图。像这样使用它:

<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>


谢谢你,作品:)