スクロール ビューを実装したいのですが、layoutweight 属性を使用します。実際には、アクティビティのコンテンツを全画面表示したいのですが、ユーザーが下にスクロールすると、広告が表示されます。これを行う方法を教えてください。
質問する
100 次
2 に答える
0
私はあなたの質問を完全には理解していませんでしたが、次のレイアウトがうまくいくと思います...問題があるかどうか教えてください
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<!-- MAIN CONTENT -->
</LinearLayout>
</ScrollView>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<!-- ADS -->
</LinearLayout>
</LinearLayout>
于 2013-10-01T10:02:56.407 に答える