解决方案 »
- 多个service同时运行其中一个service出现Exception会导致所有的service都停止吗
- android 多个activity如何跟踪调试?
- android程序 如何连接到FaceBook
- android2.2、2.3的一个bug
- Android 14本经典教程和150多个实例源码
- android如何在service中启动另一个service
- 关于安卓手机网站客户端开发的问题
- 做asp.net 开发的想转android开发,应该怎样进行学习呢?
- adt的android模拟器怎么没有声音
- 打听个事呗,现在Android能选择定位方式吗
- 跪求大神指教一个ImageButton与surfaceView问题
- 天气应用的动态背景是怎么实现的
按钮可见能点击不?
改布局
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<Button
android:id="@+id/trun_round"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:text="around" />
<Button
android:id="@+id/left"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="left" />
<LinearLayout
android:id="@+id/unity"
android:layout_width="100dp"
android:layout_height="match_parent"
android:layout_below="@id/trun_round"
android:layout_above="@id/left"
android:background="#ccffcc"
android:orientation="horizontal" >
</LinearLayout>
</RelativeLayout>
改布局
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<Button
android:id="@+id/trun_round"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:text="around" />
<Button
android:id="@+id/left"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="left" />
<LinearLayout
android:id="@+id/unity"
android:layout_width="100dp"
android:layout_height="match_parent"
android:layout_below="@id/trun_round"
android:layout_above="@id/left"
android:background="#ccffcc"
android:orientation="horizontal" >
</LinearLayout>
</RelativeLayout> 跟布局没啥关系吧,这布局还要怎么改?三种基本的我都试过了。都没用。
2. unity3d项目中写好所有事件触发,然后在android项目中捕捉这些事件,然后实现里面的逻辑楼主的应该是采用第一种方法,而第一种方法的弊端就是你不能使用所有布局控件,因为unity3d不会传递触摸事件到这些布局中的,解决方法:采用WindowManager来代替Layout来实现布局,然后采用WindowManager来展示
http://blog.csdn.net/jiguangcanhen/article/details/40339381
提示我:the application xxx has stopped unexceptedly......请问楼主怎么回事???
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />