【发布时间】:2014-01-13 10:13:20
【问题描述】:
基本上,我正在制作一个 android 小部件,其视图从左到右和从右到左滚动,具体取决于用户滑动的方向。
下面是我的mail.xml。有人可以建议我如何制作水平滚动条吗?当我更改此布局时,它会显示:Problem loading widget。请建议我一个解决方案。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="4dp"
android:background="@drawable/background"
android:gravity="center"
android:orientation="vertical" >
<TextView
android:id="@+id/widget1label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/widget1txt"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
【问题讨论】:
标签: android eclipse android-layout android-widget