我在网上尝试过很多选项,但似乎都没有.
我已将此XML用于此目的.
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hintTextAppearance="@style/TextLabel">
<com.projects.fonts.RobotoEditText
style="@style/EditText"
android:hint="@string/description"
android:singleLine="false"
app:font="@string/roboto_regular" />
</android.support.design.widget.TextInputLayout>
Run Code Online (Sandbox Code Playgroud)
我也定了
<item name="android:singleLine">false</item>
Run Code Online (Sandbox Code Playgroud)
在TextLabel和EditText中.但他们都没有工作.
我有一个大EditText盒子.我希望框中的提示看起来像这样(语法高亮不是意图):
Hint about the first line
Hint about the second line
Hint about the third line
Run Code Online (Sandbox Code Playgroud)
我试着用android:hint="@string/hints"在EditText在的strings.xml以下,但暗示还是在一行.
<string name="hints">
Hint about the first line
Hint about the second line
Hint about the third line
</string>
Run Code Online (Sandbox Code Playgroud)
怎样才能获得多线提示EditText?