<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:snake="http://schemas.android.com/apk/res/com.android.gstar"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<com.android.gstar.SnakeView
android:id="@+id/snake"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
snake:tileSize="24" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Button
android:id="@+id/up"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50px"
android:layout_alignParentRight="true"
android:layout_marginRight="100px"
android:background="@drawable/up"
></Button>
<Button
android:id="@+id/down"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/up"
android:layout_alignRight="@id/up"
android:layout_marginTop="50px"
android:background="@drawable/down"
></Button>
<Button
android:id="@+id/left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@id/up"
android:layout_marginTop="18px"
android:layout_marginRight="140px"
android:background="@drawable/left"
></Button>
<Button
android:id="@+id/play"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Press to start game"
></Button> <Button
android:id="@+id/right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@id/left"
android:layout_alignBottom="@id/left"
android:layout_toRightOf="@id/down"
android:background="@drawable/right" /> </RelativeLayout></FrameLayout>以上是布局文件eclipse插件预览模拟器效果
是哪里出了问题
刚注册的账号 分少别嫌弃 布局Eclipse插件Android
解决方案 »
- Android TableLayout与TableRow动态布局问题,初级菜鸟在线等牛人答复
- activity中如何获取service的运行状态? 使用startservice方式启动。
- Adapter是否异步加载数据
- SharedBufferStack(126): waitForCondition(LockCondition) timed out.
- Android:求"图形控件以及方法"的自动化测试框架,请教,急~
- 想画一个三维曲线,没用过OpenGL ES,求指导!
- 通话时,播放音乐所带来的音频驱动调度问题
- 房产中的360度看图的演示是用什么技术做出来的?
- 为什么下载了Android SDK Manager,但是无法下载具体的SDK呢?
- 不知道才是最难的,求大神帮忙
- 类似于popupmenu的功能怎么实现?
- A手机开启了热点, B手机连上了这台手机开启的热点。问:为什么B手机用socket连接不上A手机
// up.setOnClickListener(this);
// up.setId(UP);