<?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
解决方案 »
- 无从下手啊。我是新手。 你们刚入门的时候,都做点什么应用呀?
- 在安卓上,当应用不在前台显示且内存不足的时候,是先回收静态变量的内存还是activity的内存
- Android默认时间格式修改
- This handler class should be static or leaks might occur
- ffmpeg解码能达到25帧吗?CIF格式的。
- 横竖屏切换进入自定义组件报错,各位大侠求解
- 大虾,快来看看!
- 用eclipse android开发时运行模拟器就显示adb.ese已停止工作?!!!!!!求大神解决
- launcher 应用列表旋转后出现问题,求指教
- android 手机同时连接 wifi 和4g 如何使用 4g进行网络请求
- 类似于popupmenu的功能怎么实现?
- A手机开启了热点, B手机连上了这台手机开启的热点。问:为什么B手机用socket连接不上A手机
// up.setOnClickListener(this);
// up.setId(UP);