2017-07-05 6 views
1

AppCompatEditTextをアプリケーションで使用していますが、ヒントが大きすぎるため、2行または3行で表示する方法はありません。事前に enter image description hereAppCompatEditTextヒントを2行または3行目に表示する

ありがとう:ここ

<android.support.design.widget.TextInputLayout 
         android:id="@+id/txt_stu_passed_eight" 
         style="@style/TextAppearence.TextInputLayout" 
         android:layout_width="match_parent" 
         android:layout_height="wrap_content" 
         android:visibility="gone"> 

         <android.support.v7.widget.AppCompatEditText 
          android:id="@+id/edt_stu_passed_eight" 
          style="@style/customEdittext" 
          android:layout_width="match_parent" 
          android:layout_height="wrap_content" 
          android:hint="@string/how_many_of_them_passed_school" 
          android:inputType="number" /> 

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

はのEditTextのスクリーンショットです。

+0

あなたAppCompatEditText内部のタグminLinesを使用してみたのですか? –

+0

しかし、私は入力テキスト用ではないヒントのために複数行が必要です –

答えて

0

ヒントテキストを分割する必要がある場合は、\nを入力してください。

android:hint="first line of hint \n second line of hint so on.." 
+0

私はこれを前に使用しましたが、動作しません –

関連する問題