메신저 Android 개발에 새롭고 첫 번째 응용 프로그램에 약간의 문제가 있습니다. 누군가가 해결책을 찾도록 도울 수 있다면 매우 좋을 것입니다. 나는 수색했지만 찾지 못했습니다.Android XML 레이아웃이 화면 밖으로 나옵니다 (탭 때문일 수도 있음)
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">`
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@android:drawable/ic_dialog_email"
android:layout_alignParentRight="true" />
</RelativeLayout>
그리고 이것이다 : 내 생각은 상대 레이아웃 탭이 위에 있다는 것을 인식하지 못하기 때문에 그것은 어쩌면 ...
내 문제는 내가이 XML 레이아웃을 가지고, 다음되는 화면의 외출이다 이 같이 방법 : Screenshot
그리고이 같은 실제로 모습입니다 : Screenshot
편집 : - :
01이 그냥 단편 > 여기에 컨테이너입니다 이 사용
에서
및
android:layout_marginBottom="?attr/actionBarSize"
가 alignParent 태그를 제거하십시오. – AlphaQ하지만 FloatingActionButton이 오른쪽 하단에 있도록하고 싶습니다. alignParent 태그가 없으면 버튼이 왼쪽 상단에 있습니다. @AlphaQ – patwis
android : layout_gravity = "bottom | end"는 fab을 그 위치에 놓아야합니다. – AlphaQ