如何在Android的TextInputLayout中显示上标提示?我能';我好像没弄明白。这里';这是我的密码

如何在Android的TextInputLayout中显示上标提示?我能';我好像没弄明白。这里';这是我的密码,android,android-edittext,textinputlayout,Android,Android Edittext,Textinputlayout,这是我的Activity.xml文件。我将AppCompativeText放在TextInputLayout中。我希望在html表单中显示带有上标文本的提示,但这不会发生。所有文本仅显示为普通文本。附近有路吗 <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content"

这是我的Activity.xml文件。我将AppCompativeText放在TextInputLayout中。我希望在html表单中显示带有上标文本的提示,但这不会发生。所有文本仅显示为普通文本。附近有路吗

    <android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="8dp">

        <android.support.v7.widget.AppCompatEditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="@string/acceleration_unit_ms2"
            android:inputType="numberDecimal"
            android:id="@+id/acceleration_unit_ms2"/>

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

Strings.xml

<string name="acceleration_unit_ms2">Meter/Second Square (m/s<sup><small>2</small></sup>)</string>
米/秒平方(m/s2)

根据高效性能使用
textinputtext
内部
TextInputLayout

<android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/input_layout_email"
        android:layout_marginTop="@dimen/dp_10"
        app:hintEnabled="true"
        app:hintAnimationEnabled="false">

        <android.support.design.widget.TextInputEditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/edit_email"
            android:inputType="textEmailAddress"
            android:hint="@string/email"
            android:textSize="16sp"/>

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

仍然没有上标文本。