前提・実現したいこと
フローティングボタンを右下寄せで表示させたいのですがうまくいきません。
該当のソースコード
xml
1<?xml version="1.0" encoding="utf-8"?> 2<TabHost xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 android:id="@android:id/tabhost" 5 android:layout_width="fill_parent" 6 android:layout_height="fill_parent"> 7 <LinearLayout 8 android:orientation="vertical" 9 android:layout_width="fill_parent" 10 android:layout_height="fill_parent"> 11 <HorizontalScrollView 12 android:layout_width="fill_parent" 13 android:layout_height="wrap_content" 14 android:fillViewport="true" 15 android:scrollbars="none" > 16 17 <TabWidget 18 android:id="@android:id/tabs" 19 android:layout_width="fill_parent" 20 android:layout_height="wrap_content" /> 21 </HorizontalScrollView> 22 <FrameLayout 23 android:id="@android:id/tabcontent" 24 android:layout_width="fill_parent" 25 android:layout_height="fill_parent"> 26 27 <com.google.android.material.floatingactionbutton.FloatingActionButton 28 android:id="@+id/helpButton" 29 android:layout_width="139dp" 30 android:layout_height="wrap_content" 31 android:clickable="true" 32 android:gravity="right|bottom" 33 app:srcCompat="@android:drawable/ic_menu_help" /> 34 </FrameLayout> 35 36 </LinearLayout> 37</TabHost>
試したこと
android:gravity="right|bottom"と記述したのですが、うまくいきませんでした。
補足情報(FW/ツールのバージョンなど)
Gradleバージョン:7.0.2

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。