解决方案 »
- Android Failed to open libwvm.so问题
- APK权限的问题
- ? - SharedPreferences无法commit
- 请教一下,android连接动态域名服务器
- MTK6589去除google search bar后客制化
- 由R快速找到xml
- 求助,在Android下实现过Syncml的客户端?求指点
- C# 开发Android 如何反射得到Resource.Drawable类
- 我想在应用里面发邮件,可是有不知用户的手机邮件客户端有没有正确配置,怎么检测这种情况啊?
- 多activity还是单activity的选择
- 横屏进入彩信,然后竖屏,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> 实际效果: