내가 만들 필요가 FloatingActionButton 항상 내 조각의 하단에 붙어 WebView 표시합니다. 문제는 현재 XML의 버튼이 절반으로 줄었고 수정할 수 없다는 것입니다. 여기 내 레이아웃입니다.CoordinatorLayout 내부의 WebView 하단에 FloatingButton 스틱을 만드는 방법은 무엇입니까?
<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"
android:background="@color/colorBackgroundWhite"
tools:context=".fragments.CpuComparisionFragment">
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<WebView
android:id="@+id/web_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/button_compare"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
android:layout_marginBottom="@dimen/fb_margin_16dp"
android:layout_marginEnd="@dimen/fb_margin_16dp"
android:alpha="0.7"
android:src="@drawable/ic_compare" />
</android.support.design.widget.CoordinatorLayout>
</FrameLayout>
내가 뭘 잘못하고 있니? 어떤 아이디어가 이것을 고치는 방법? 여기 내 앱이 어떻게 보이는지 스크린 샷이 있습니다.
테스트 해 보셨습니까? –
예, 그랬습니다. – DevMike
같은 상황. 이것은 아무 것도 변경하지 않습니다. 버튼은 여전히 반으로 잘립니다. :/ – anton86993