2017-01-13 9 views
0

が表示されないとき、私、私は問題を抱えているときに、このTextInputのレイアウトは、私はTextInputLayoutに問題が発生した浮動テキスト

enter image description here

のような最初のロード(のEditTextでいくつかのテキストを持つ)、それはのEditText上記のショーのヒントテキストをdoes'tこのライブラリを使用してくださいhttps://github.com/braintree/android-card-form。通常、このようなTextInputLayout(私はまだこのlibを追加していない)。私はこのライブラリのどのスタイルがこの問題を引き起こしているのかわかりません(おそらくそれはいくつかのフィールドを上書きします)。助けのための

enter image description here

感謝。

答えて

0

私は'com.android.support:design:25.0.1' をコンパイルしに追加 にそのライブラリ compile 'com.android.support:design:[25.0.0,26.0.0)' に変更することでこの問題を修正モジュールとしての私のプロジェクト。

この問題は理由:私はappcompat-v7:25.0.1を使用していますが、gradle compile 'com.braintreepayments:card-form:3.0.3'を使用すると、デザインサポートライブラリが25.1.0に変更され、その問題が発生します。私は同じバージョンのappcombatに変更しました。サポートlibrares。

1

使用このライブラリを、それは、この目的のために正常に動作します:

compile 'com.android.support:design:24.1.1' 

例:

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

      <EditText 
       android:id="@+id/txtUsername" 
       android:layout_width="fill_parent" 
       android:layout_height="wrap_content" 
       android:drawableLeft="@drawable/user" 
       android:drawableTint="#FF4081" 
       android:hint="User Name" 
       android:inputType="textEmailAddress" 
       android:maxLines="1" /> 
     </android.support.design.widget.TextInputLayout> 
+0

私はそれを試みます。ありがとう –

関連する問題