Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.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 什么';我的xml代码中有什么错误?我想制作一个TextInputLayout,但可以';T_Android_Android Support Library_Android Textinputlayout_Material Components_Material Components Android - Fatal编程技术网

Android 什么';我的xml代码中有什么错误?我想制作一个TextInputLayout,但可以';T

Android 什么';我的xml代码中有什么错误?我想制作一个TextInputLayout,但可以';T,android,android-support-library,android-textinputlayout,material-components,material-components-android,Android,Android Support Library,Android Textinputlayout,Material Components,Material Components Android,我的xml代码有什么问题?我想做一个TextInputLayout,但做不到。你能帮我做一下TExtInputLayout吗 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout

我的xml代码有什么问题?我想做一个TextInputLayout,但做不到。你能帮我做一下TExtInputLayout吗

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"    
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:Layout_marginTop="20dp"
        android:Layout_marginBot="20dp"
        android:layout_marginLeft="20dp"
        android:Layout_marginRight="20dp"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <android.widget.support.design.TextInputLayout
            android:layout_width="match parent"
            android:layout_heigth="wrap_content"
            android:drawableStart="@drawable/ouuu"
            android:id="@+id/etnama"
            android:hint"nama anda">

       </android.widget.support.designt.TextInputLayout>

    </LinearLayout>

</LinearLayout>

使用设计支持库使用
文本输入布局
必须添加
文本输入文本

比如:

<android.support.design.widget.TextInputLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:id="@+id/etnama"
         ...>

     <android.support.design.widget.TextInputEditText
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             />

 </android.support.design.widget.TextInputLayout>
和使用:

<com.google.android.material.textfield.TextInputLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    ...>

  <com.google.android.material.textfield.TextInputEditText
      android:layout_width="match_parent"
      android:layout_height="wrap_content"/>

</com.google.android.material.textfield.TextInputLayout>