android 图像淡入淡出资源问题(Button can't be cast to ImageView)
来源:互联网 发布:php utf8转换为gbk 编辑:程序博客网 时间:2024/06/05 03:30
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="52dp"
android:text="Button" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="49dp"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="52dp"
android:text="Button" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="49dp"
android:text="Button" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:src="@drawable/transition" />
</RelativeLayout>
貌似交换一下imageview的位置就可以了,把它的代码放到button的上面
0 0
- android 图像淡入淡出资源问题(Button can't be cast to ImageView)
- Android资源之图像资源(淡入淡出、嵌入)
- java.lang.ClassCastException~android.widget.ImageView cannot be cast to android.widget.Button~
- ClassCastException: android.widget.ImageView can not be cast to android.view.ViewGroup
- 关于Android.widget.Button cannot be cast to com.esri.android.map.MapView错误的问题
- 安卓出现android.widget.TextView cannot be cast to android.widget.Button问题
- android.widget.FrameLayout cannot be cast to android.widget.Button 问题
- android.widget.Button cannot be cast to android.widget.Gallery
- widget.Button cannot be cast to android.widget.ListView
- (android problem)can't cast android.widget.linearlayout to android.widget.textview
- PDA图像淡入淡出(C#)
- TextView can not be cast to ViewGroup
- Android: java.lang.ClassCastException: android.widget.imageView cannot be cast to android.widget.tex
- java.lang.ClassCastException: android.widget.ImageView cannot be cast to android.widget.TextView解决办法
- ClassCastException: android.widget.ImageView cannot be cast to android.widget.TextView
- ClassCastException:android.widget.ImageView cannot be cast to android.widget.RelativeLayout
- Android 淡入淡出效果
- Android淡入淡出
- Linux如何开启mysql远程连接
- 【DP】HDU 1025 Constructing Roads In JGShining's Kingdom 最长上升子序列
- java集合的用法
- #Miuo搭配课堂#小黑裙 如何搭出不同的风格
- C++标准库---仿函数
- android 图像淡入淡出资源问题(Button can't be cast to ImageView)
- substring 函数
- STM32F0xx IAP实现之中断向量表重定义
- Matlab各种分布的函数
- 例程学习之SampleApp--SPIMgr.c(MT层) SPIMgr_ProcessZToolData()
- JAVA读取和操作PDF系列《三》
- protoc 文件android报错的原因
- 揭秘jbpm流程引擎内核设计思想及构架
- 利用Solr搭建企业搜索平台之一-Solr运行