【发布时间】:2016-03-11 02:56:20
【问题描述】:
我正在 Eclipse 中制作广告应用程序,并希望在水平 ScrollView 中显示滚动广告。我还需要每 5 秒旋转一次此滚动视图。
以下是配置
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:gravity="bottom"
android:orientation="vertical">
<ScrollView
android:id="@+id/hsHorizontalAds"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/llHorizontalAds"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
</LinearLayout>
</ScrollView>
</LinearLayout>
请提出建议。
【问题讨论】:
-
请向我们展示您尝试过的一些解决方案,并解释为什么它们不令人满意。
标签: android eclipse android-layout horizontalscrollview