listViewの右下にフローティングインジケータを表示させるにはどうすればよいですか?listViewの右下にフローティングインジケータを表示させるにはどうすればよいですか?
何らかの理由で、以下のコードで浮動表示が表示されるか、またはlistViewの左上隅が表示されます。
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/main_layout"
android:fitsSystemWindows="true"
android:orientation="vertical">
<include layout="@layout/toolbar_general"/>
<RelativeLayout android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/contacts_list_view" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_dialog_email" />
</RelativeLayout>
</LinearLayout>
使用alignParentRightとalignParentBottom – Nisarg
利用アンドロイド:layout_alignParentBottom = "true" android:layout_alignParentRight = "true" –