0
ここに私のActivity.xmlファイルです。 AppCompatEditTextをTextInputLayoutの中に入れます。ヒントを上付き文字のテキストでhtml形式で表示したいが、それは起こりません。すべてのテキストは通常のテキストとして表示されます。周りに道がありますか?AndroidのTextInputLayoutに上付きのヒントを表示するにはどうすればよいですか?私はそれを把握することができません。私のコードです
<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>
まだ上付き文字はありません。 –
@ChiranjeevJainは私の答えを編集しました。今すぐやってみて下さい。 –