言語が英語の時のオフラインView
表示言語がEnglishの場合、オフラインViewの「接続確認」の表示が右にずれてしまっている。
-
調査内容(5/25)
fragment_webview_detail.xmlの内容を確認。
「接続確認」の表示領域は固定されている、かつEnglishの場合は「Connection Confirmation」と文字数が多いため、右にずれてしまっている -
修正方針
「接続確認」のボタンの描画開始位置の固定を解除し
横表示位置をセンターとすることで、言語に寄らずセンターに表示されるように修正する。 -
修正内容
・fragment_webview_detail.xml
修正前
<Button
android:id="@+id/check_connect"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="150dp"
android:layout_marginTop="180dp"
android:gravity="center"
android:text="@string/network_connect_check"
android:textSize="18sp" />
修正後
<Button
android:id="@+id/check_connect"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="180dp"
android:gravity="center"
android:text="@string/network_connect_check"
android:textSize="18sp" />
sbc-atled-aw-devによってに編集されました