2017-01-13 7 views
0

부동 표시되지, 그것은 글고 위의 쇼 힌트 텍스트를 does't 나는 문제 때이 이 라이브러리를 사용하십시오 https://github.com/braintree/android-card-form. 일반적으로 TextInputLayout은 (이 lib를 아직 추가하지 않은 경우) 이와 같습니다. 나는이 libs의 어떤 스타일이이 문제를 일으키는 지 알지 못합니다 (어쩌면 일부 필드를 무시합니다). 도움을의 TextInput 레이아웃 내가 TextInputLayout에 문제가있는 텍스트

enter image description here

감사합니다.

답변

0

내가 그 도서관에서 변경하여이 문제를 해결는 compile 'com.android.support:design:[25.0.0,26.0.0)' 에이 'com.android.support:design:25.0.1' 을 컴파일에 추가 내 프로젝트를 모듈로.

이 문제의 원인은 다음과 같습니다. appcompat-v7:25.0.1을 사용하지만 gradble compile 'com.braintreepayments:card-form:3.0.3'을 사용할 때 디자인 지원 라이브러리가 25.1.0으로 변경되어이 문제가 발생합니다. 나는 같은 버전의 appcombat, libinres를 지원하지 않았다.

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

나는 그것을 시도 할 것이다. 감사 –