在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的?我也遇到这个问题,分享下。谢谢! android listview中复选框的问题 安卓模拟器4.0大分辨率启动不了 怎么区分手机数据和PC机数据 如何实现android gridview item的拖拽效果 在activity中怎么从values文件夹下的保存图片的xml中取图片 ListView的问题 android图形库支持问题 android中的DatePickerDialog能不能一个activity里面存在两个的? 谢谢指导 sipdroid真的能视频通话么 getIntent()属于什么函数? 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