API에서 EditText 패딩이 작동하지 않습니다. 21 빈 EditText로만 프로젝트를 시도하지만 여전히 작동하지 않습니다.API에서 EditText 패딩 21
패딩은 프로그래밍 방식으로 작동하지만 내 작업 프로젝트에서는 다양한 패딩을 가진 많은 EditText를 사용하고 프로그래밍 방식으로 패딩을 프로그래밍 방식으로 설정했습니다.
API 레벨 19에서 xml 패딩이 잘 작동합니다.
해결책이 있습니까?
이 내 글고의 XML 코드 : 결과에서
<EditText
android:id="@+id/et_text"
android:text="Text"
android:paddingLeft="20dp"
android:paddingStart="20dp"
android:paddingRight="20dp"
android:paddingEnd="20dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_width="match_parent"
android:layout_height="45dp"/>
, 내가있어 :
내가 기대 :
여기에서 같은 문제가 발생합니다. 내 편집 텍스트는 API 21로 업데이트 한 후에 패딩을 적용하지 않습니다. –