카테고리 없음
안드로이드 롤리팝 framelayout 문제
[czar]
2015. 12. 29. 11:49
롤리팝 버전에서
framelayout 을 적용했는데
원하는 레이아웃이 안보일때
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<Button
android:id="@+id/some_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_gravity="center"
android:text="button"/>
<mycustomframelayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000"/>
</FrameLayout>
button 에 android:stateListAnimator="@null" 추가하면 정상적으로 보임