在Appwidget中加SeekBar 最近在做一个放在桌面的播放器,其他都好就解决,就是加入SeekBar时就出现加载错误,不知道怎么回事,还有就是加入SeekBar后seekBar.setOnSeekBarChangeListener这个怎么设置,求各位高手大侠帮帮忙啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这是布局文件,自己顶一个<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"><SeekBar android:id="@+id/seekbar" android:layout_width="fill_parent" android:layout_height="wrap_content"></SeekBar> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:background="@drawable/yes_fcs"><ImageButton android:id="@+id/image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="30px" android:src="@drawable/icon" /></LinearLayout></LinearLayout> 去掉第二个xmlns:android="http://schemas.android.com/apk/res/android" 不行啊,去的只剩SeekBar都还是不行 AppWidget默认只能加载一些简单的控件,因为他们都是RemoteView,如果不是RemoteView就会出现加载错误,SeekBar估计不行!TextView,ImageButton可以!http://www.cnblogs.com/playing/archive/2011/04/22/2024775.html 一个RemoteViews对象(以及,相应的,一个App Widget)可以支持下面这个布局类:以及下面的小部件类:·FrameLayout ·LinearLayout ·RelativeLayout ·AnalogClock ·Button ·Chronometer ·ImageButton ·ImageView ·ProgressBar ·TextView 楼主是怎样用RemoteView加载SeekBar的?我也遇到这个问题,分享下。谢谢! 新手求解<uses-sdk 报错 android连接oracle,用户登录 如何让android普通程序获得访问/dev/bus/usb/的权限 android开发时版本改换问题 请教:手机软件开发时如何调试的呢?有点好奇 用代码修改 Button 和EditText的坐标 真机测试时遇到的异常信息,麻烦高人看看 为什么我机子有个模拟器怎么看不到 Android ActionBar 的溢出按钮不能显示 新手求助!handleMessage不被调用。 android cts测试问题 最火安卓智能手机和平板MID方案
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<SeekBar
android:id="@+id/seekbar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
></SeekBar>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/yes_fcs"><ImageButton
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="30px"
android:src="@drawable/icon" />
</LinearLayout>
</LinearLayout>
http://www.cnblogs.com/playing/archive/2011/04/22/2024775.html
·AnalogClock ·Button ·Chronometer ·ImageButton ·ImageView ·ProgressBar ·TextView