Gallery问题
The following classes could not be found:
- Gallery (Change to android.widget.Gallery, Fix Build Path, Edit XML)
xml代码:
<?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:background="@drawable/xi"
android:orientation="vertical" >
<ImageSwitcher
android:id="@+id/switch2"
android:layout_width="320dp"
android:layout_height="wrap_content" />
<Gallery
android:id="@+id/mygallery"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:spacing="3pt"
android:unselectedAlpha="0.5" />
<Button
android:id="@+id/viewgoback"
style="@style/btn1" />
</LinearLayout>
- Gallery (Change to android.widget.Gallery, Fix Build Path, Edit XML)
xml代码:
<?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:background="@drawable/xi"
android:orientation="vertical" >
<ImageSwitcher
android:id="@+id/switch2"
android:layout_width="320dp"
android:layout_height="wrap_content" />
<Gallery
android:id="@+id/mygallery"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:spacing="3pt"
android:unselectedAlpha="0.5" />
<Button
android:id="@+id/viewgoback"
style="@style/btn1" />
</LinearLayout>
...全文
相关推荐
解决MSDev98\Gallery文件为空的问题
本网站已有的Gallery内文件我也下过了但还是不可用,所以主要原因还是安装不完整的问题,大家可以先重装下,如果还是不行,再下载本资源尝试。。刚上传的有误,请看清大小再下载。。抱歉!
Question Gallery:问题库是可以帮助教师进行测验的工具。-开源
问题库是可以帮助教师创建/管理测验/问题页面/问题库的工具。 它创建内容丰富的多选多答填空比赛作文和复合题。 测验可以以html格式导出。 测验也可以打印在纸上。
解决在练习gallery时编译出错的问题
NULL 博文链接:https://jacky-zhang.iteye.com/blog/746655
android实现横向滑动解决Gallery从中间滑动的问题
android 使用GridView实现Gallery的效果,并且从最左边开始
Android(2.2/2.3系统)Gallery解决默认和横竖屏切换选中状态问题
前言 Gallery的Item使用的是一个ImageView+TextView,并且为其设置了selector,当使用setSelection设置时、横竖屏切换时Item的状态不会改变,这个目前在2.2/2.3系统中存在,高版本如4.0是不存在的。 正文 一、第一步,解决ImageView的状态问题 为ImageView设置 :android:focusableInTouchMode=”true” 注意同样属性设置TextView不管用。 二、第二步,手动控制文本根据状态不同设置不同颜色 2.1 在onConfigurationChanged中通知Gallery的Adap



