さまざまなサイズのデバッガーでアプリをテストしましたが、ユーザーが完全なレイアウトを表示できるようにするには、おそらく scrollView が必要になることに気付きました。
問題は、次のような複数の線形レイアウトで main.xml でフリッパーを使用していることです。
<?xml version="1.0" encoding="utf-8"?>
<ViewFlipper
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/your_flipper"
android:screenOrientation="portrait"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<!-- the second view on the flipper -->
<!-- ImageView -->
<!-- TextViews -->
<!-- Buttons -->
<!-- Image Buttons -->
</LinearLayout>
<!-- the 3rd view on the flipper -->
<!-- ImageView -->
<!-- TextViews -->
<!-- Buttons -->
<!-- Image Buttons -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
</LinearLayout>
<!-- the 4th view on the flipper -->
<!-- ImageView -->
<!-- TextViews -->
<!-- Buttons -->
<!-- Image Buttons -->
</LinearLayout>
コードが肥大化しないように、ImageViews、Buttons、TextViews などのコメントを作成しました。
これは、すべてのレイアウトが表示されるメインの xml ファイルにあります。各レイアウトにスクロール ビューを簡単に追加するにはどうすればよいでしょうか。特定の電話の画面に対して大きすぎる場合、ユーザーはページをスクロールしてすべてのコンテンツを表示できますか?
ありがとう!