解决方案 »
- 求解:apktool反编译后,未更改任何文件,编译成apk安装,最后无法安装成功并显示“应用程序未安装”
- Android 牛人进
- web端怎么接收数据
- Android ndk开发,cygwin环境iconv.h头文件问题
- 不知道是不是发现安卓的bug了
- 网上那个HelloWorld出错了
- 用手机从网页上下载的apk,下载完成怎样自动安装
- 做个公交查询软件,但WebView为什么打不开百度地图,各位大牛帮帮小弟,setJavaScriptEnabled(true)也写了。从别的浏览器可以正常访问。
- Android 视频聊天开发相关问题
- 求各路大神指点得不到网上数据,报volley错误的问题
- 横屏进入彩信,然后竖屏,actionbar显示异常
- 如何在listview中为每行添加按钮?
可以实现
下面是实现
代码演示:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" > <RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" > <ImageView
android:id="@+id/blue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="40dip"
android:src="@drawable/blue" /> <ImageView
android:id="@+id/white"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/blue"
android:src="@drawable/white" /> <ImageView
android:id="@+id/gray"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/blue"
android:layout_toRightOf="@+id/blue"
android:src="@drawable/gray" />
</RelativeLayout> <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="80dip"
android:layout_marginTop="10dip"
android:src="@drawable/pian" /></FrameLayout> 实际效果: