do you build second activity ?

解决方案 »

  1.   

      第二个activity有没有在mainfest内注册?
      

  2.   


    <ImageView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:src="@drawable/cc"
        android:background="@color/hui"
        android:clickable="true"/>
    <Button android:id="@+id/button1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:background="#00000000"/>宽和高都用了fill_parent,那么点击RelativeLayout肯定没用了,因为事件已经传递给了Button了(button在最上面一层)
      

  3.   

    思路是错的吧,想换个layot,setContentView(R.layout.activity_firstx);在activity的oncreate里面才能执行
      

  4.   

    首先你得看你的onclick事件有没有进去,如果进去了,那就是不是相应的问题了,你代码的问题,发个消息出去,再更改布局吧。
      

  5.   

    是不是第二个布局文件没写的原因刚开始我也是这样认为的,但是刚才试了下,setcontentview可以这样实现,不是必须在oncreate()里
      

  6.   


    但是button也属于RelativeLayout的一部分啊
      

  7.   

    刚开始我也是这样认为的,但是刚才试了下,setcontentview可以这样实现,不是必须在oncreate()里
      1.onCreate()中没有调用 super.onCreate(savedInstanceState); 程序是跑步起来的。
     官方文档:The entire lifecycle of an activity is defined by the following Activity methods. All of these are hooks that you can override to do appropriate work when the activity changes state. All activities will implement onCreate(Bundle) to do their initial setup; many will also implement onPause() to commit changes to data and otherwise prepare to stop interacting with the user. You should always call up to your superclass when implementing these methods 2.布局中两个控件宽高   android:layout_width="fill_parent"     android:layout_height="fill_parent"
    占满了整个屏幕,你的父控件根本获取不到焦点3.设置控件属性为 wrap_content4.若真要按照强硬的方式进行控件穿透点击处理,有办法可以解决,但是我看LZ下的这个代码。还是从布局UI开始吧加油 ~ 
      

  8.   

    刚开始我也是这样认为的,但是刚才试了下,setcontentview可以这样实现,不是必须在oncreate()里
    我已经写了,2个layout都有,如果用button1来作为click的对象的话就能成功换,但如果把button1(包括在layout里面)去掉了,直接用View就不能
      

  9.   

    刚开始我也是这样认为的,但是刚才试了下,setcontentview可以这样实现,不是必须在oncreate()里
      1.onCreate()中没有调用 super.onCreate(savedInstanceState); 程序是跑步起来的。
     官方文档:The entire lifecycle of an activity is defined by the following Activity methods. All of these are hooks that you can override to do appropriate work when the activity changes state. All activities will implement onCreate(Bundle) to do their initial setup; many will also implement onPause() to commit changes to data and otherwise prepare to stop interacting with the user. You should always call up to your superclass when implementing these methods 2.布局中两个控件宽高   android:layout_width="fill_parent"     android:layout_height="fill_parent"
    占满了整个屏幕,你的父控件根本获取不到焦点3.设置控件属性为 wrap_content4.若真要按照强硬的方式进行控件穿透点击处理,有办法可以解决,但是我看LZ下的这个代码。还是从布局UI开始吧加油 ~ 
    可是我之前把button去掉了,把View改成wrap_content都不行呢,加上button的时候点击button就能跳转
      

  10.   

    大神求教怎么跳转
    第一个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/fir"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        tools:context="com.xxian.app.first" >      <ImageView
            android:clickable="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_launcher" />    <Button
            android:clickable="true"
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#00000000" />
    </RelativeLayout>第二个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:clickable="true"
        tools:context="com.xxian.app.first" >    <TextView
            android:text="asdfasdf"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/></RelativeLayout>
    MainActivity.java中
    public class MainActivity extends Activity {
        private RelativeLayout fir;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
            requestWindowFeature(Window.FEATURE_NO_TITLE);        setContentView(R.layout.activity_main);
            fir=(RelativeLayout)findViewById(R.id.fir);
            fir.setClickable(true);
            fir.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Toast.makeText(MainActivity.this,"点击了",0).show();
                    setContentView(R.layout.activity_second);
                }
            });
        }
    }至于怎么跳转,去Google  activity跳转,传值、传对象等等,或者去看android官方文档
      

  11.   

    大神求教怎么跳转
    第一个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/fir"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        tools:context="com.xxian.app.first" >      <ImageView
            android:clickable="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_launcher" />    <Button
            android:clickable="true"
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#00000000" />
    </RelativeLayout>第二个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:clickable="true"
        tools:context="com.xxian.app.first" >    <TextView
            android:text="asdfasdf"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/></RelativeLayout>
    MainActivity.java中
    public class MainActivity extends Activity {
        private RelativeLayout fir;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
            requestWindowFeature(Window.FEATURE_NO_TITLE);        setContentView(R.layout.activity_main);
            fir=(RelativeLayout)findViewById(R.id.fir);
            fir.setClickable(true);
            fir.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Toast.makeText(MainActivity.this,"点击了",0).show();
                    setContentView(R.layout.activity_second);
                }
            });
        }
    }至于怎么跳转,去Google  activity跳转,传值、传对象等等,或者去看android官方文档
    我看了你的代码我发现问题在哪里了,我点击图片不能去到第二个layout,点击其他空白地方就能去,button已经去掉了
      

  12.   

    大神求教怎么跳转
    第一个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/fir"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        tools:context="com.xxian.app.first" >      <ImageView
            android:clickable="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_launcher" />    <Button
            android:clickable="true"
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#00000000" />
    </RelativeLayout>第二个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:clickable="true"
        tools:context="com.xxian.app.first" >    <TextView
            android:text="asdfasdf"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/></RelativeLayout>
    MainActivity.java中
    public class MainActivity extends Activity {
        private RelativeLayout fir;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
            requestWindowFeature(Window.FEATURE_NO_TITLE);        setContentView(R.layout.activity_main);
            fir=(RelativeLayout)findViewById(R.id.fir);
            fir.setClickable(true);
            fir.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Toast.makeText(MainActivity.this,"点击了",0).show();
                    setContentView(R.layout.activity_second);
                }
            });
        }
    }至于怎么跳转,去Google  activity跳转,传值、传对象等等,或者去看android官方文档
    我看了你的代码我发现问题在哪里了,我点击图片不能去到第二个layout,点击其他空白地方就能去,button已经去掉了
    我没怎么改,看你那么有冲劲,就把你的copy了一遍,运行成功,贴了一下。是啊,因为你对整个父布局设置的点击事件,点击图片或者按钮肯定是不行的啊。
      

  13.   

    大神求教怎么跳转
    第一个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/fir"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        tools:context="com.xxian.app.first" >      <ImageView
            android:clickable="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_launcher" />    <Button
            android:clickable="true"
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#00000000" />
    </RelativeLayout>第二个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:clickable="true"
        tools:context="com.xxian.app.first" >    <TextView
            android:text="asdfasdf"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/></RelativeLayout>
    MainActivity.java中
    public class MainActivity extends Activity {
        private RelativeLayout fir;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
            requestWindowFeature(Window.FEATURE_NO_TITLE);        setContentView(R.layout.activity_main);
            fir=(RelativeLayout)findViewById(R.id.fir);
            fir.setClickable(true);
            fir.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Toast.makeText(MainActivity.this,"点击了",0).show();
                    setContentView(R.layout.activity_second);
                }
            });
        }
    }至于怎么跳转,去Google  activity跳转,传值、传对象等等,或者去看android官方文档
    我看了你的代码我发现问题在哪里了,我点击图片不能去到第二个layout,点击其他空白地方就能去,button已经去掉了
    我没怎么改,看你那么有冲劲,就把你的copy了一遍,运行成功,贴了一下。是啊,因为你对整个父布局设置的点击事件,点击图片或者按钮肯定是不行的啊。
    原来如此,我以为父布局他包括了所有子控件,所以点子控件也是一样的,那子空间能继承他的属性吗?
      

  14.   

    大神求教怎么跳转
    第一个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/fir"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        tools:context="com.xxian.app.first" >      <ImageView
            android:clickable="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_launcher" />    <Button
            android:clickable="true"
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#00000000" />
    </RelativeLayout>第二个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:clickable="true"
        tools:context="com.xxian.app.first" >    <TextView
            android:text="asdfasdf"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/></RelativeLayout>
    MainActivity.java中
    public class MainActivity extends Activity {
        private RelativeLayout fir;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
            requestWindowFeature(Window.FEATURE_NO_TITLE);        setContentView(R.layout.activity_main);
            fir=(RelativeLayout)findViewById(R.id.fir);
            fir.setClickable(true);
            fir.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Toast.makeText(MainActivity.this,"点击了",0).show();
                    setContentView(R.layout.activity_second);
                }
            });
        }
    }至于怎么跳转,去Google  activity跳转,传值、传对象等等,或者去看android官方文档
    我看了你的代码我发现问题在哪里了,我点击图片不能去到第二个layout,点击其他空白地方就能去,button已经去掉了
    我没怎么改,看你那么有冲劲,就把你的copy了一遍,运行成功,贴了一下。是啊,因为你对整个父布局设置的点击事件,点击图片或者按钮肯定是不行的啊。
    原来如此,我以为父布局他包括了所有子控件,所以点子控件也是一样的,那子空间能继承他的属性吗?
    可以啊,比如一个属性
    android:descendantFocusability=”blocksDescendants”
    属性的值有三种:
            beforeDescendants:viewgroup会优先其子类控件而获取到焦点
            afterDescendants:viewgroup只有当其子类控件不需要获取焦点时才获取焦点
            blocksDescendants:viewgroup会覆盖子类控件而直接获得焦点还有一个属性,比如点击父控件的时候,父控件改变颜色,子控件跟着改变状态 android:duplicateParentState="true"再说了,如果要点击,直接设置对应的控件就可以了,为什么一定要继他的属性呢
      

  15.   

    大神求教怎么跳转
    第一个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/fir"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        tools:context="com.xxian.app.first" >      <ImageView
            android:clickable="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_launcher" />    <Button
            android:clickable="true"
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#00000000" />
    </RelativeLayout>第二个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:clickable="true"
        tools:context="com.xxian.app.first" >    <TextView
            android:text="asdfasdf"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/></RelativeLayout>
    MainActivity.java中
    public class MainActivity extends Activity {
        private RelativeLayout fir;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
            requestWindowFeature(Window.FEATURE_NO_TITLE);        setContentView(R.layout.activity_main);
            fir=(RelativeLayout)findViewById(R.id.fir);
            fir.setClickable(true);
            fir.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Toast.makeText(MainActivity.this,"点击了",0).show();
                    setContentView(R.layout.activity_second);
                }
            });
        }
    }至于怎么跳转,去Google  activity跳转,传值、传对象等等,或者去看android官方文档
    我看了你的代码我发现问题在哪里了,我点击图片不能去到第二个layout,点击其他空白地方就能去,button已经去掉了
    我没怎么改,看你那么有冲劲,就把你的copy了一遍,运行成功,贴了一下。是啊,因为你对整个父布局设置的点击事件,点击图片或者按钮肯定是不行的啊。
    原来如此,我以为父布局他包括了所有子控件,所以点子控件也是一样的,那子空间能继承他的属性吗?
    可以啊,比如一个属性
    android:descendantFocusability=”blocksDescendants”
    属性的值有三种:
            beforeDescendants:viewgroup会优先其子类控件而获取到焦点
            afterDescendants:viewgroup只有当其子类控件不需要获取焦点时才获取焦点
            blocksDescendants:viewgroup会覆盖子类控件而直接获得焦点还有一个属性,比如点击父控件的时候,父控件改变颜色,子控件跟着改变状态 android:duplicateParentState="true"再说了,如果要点击,直接设置对应的控件就可以了,为什么一定要继他的属性呢太感谢你了
      

  16.   

    大神求教怎么跳转
    第一个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/fir"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        tools:context="com.xxian.app.first" >      <ImageView
            android:clickable="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_launcher" />    <Button
            android:clickable="true"
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#00000000" />
    </RelativeLayout>第二个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:clickable="true"
        tools:context="com.xxian.app.first" >    <TextView
            android:text="asdfasdf"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/></RelativeLayout>
    MainActivity.java中
    public class MainActivity extends Activity {
        private RelativeLayout fir;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
            requestWindowFeature(Window.FEATURE_NO_TITLE);        setContentView(R.layout.activity_main);
            fir=(RelativeLayout)findViewById(R.id.fir);
            fir.setClickable(true);
            fir.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Toast.makeText(MainActivity.this,"点击了",0).show();
                    setContentView(R.layout.activity_second);
                }
            });
        }
    }至于怎么跳转,去Google  activity跳转,传值、传对象等等,或者去看android官方文档
    我看了你的代码我发现问题在哪里了,我点击图片不能去到第二个layout,点击其他空白地方就能去,button已经去掉了
    我没怎么改,看你那么有冲劲,就把你的copy了一遍,运行成功,贴了一下。是啊,因为你对整个父布局设置的点击事件,点击图片或者按钮肯定是不行的啊。
    原来如此,我以为父布局他包括了所有子控件,所以点子控件也是一样的,那子空间能继承他的属性吗?
    可以啊,比如一个属性
    android:descendantFocusability=”blocksDescendants”
    属性的值有三种:
            beforeDescendants:viewgroup会优先其子类控件而获取到焦点
            afterDescendants:viewgroup只有当其子类控件不需要获取焦点时才获取焦点
            blocksDescendants:viewgroup会覆盖子类控件而直接获得焦点还有一个属性,比如点击父控件的时候,父控件改变颜色,子控件跟着改变状态 android:duplicateParentState="true"再说了,如果要点击,直接设置对应的控件就可以了,为什么一定要继他的属性呢
    对了,那如果一个layout里面N多个子控件,我希望点一下就跳过去了,我现在想到的有2个办法,1是每个testview都设置一次,很麻烦,2就是加一个全屏的button,但是我用的是线性布局,不知道如何把它弄到全屏
      

  17.   

    大神求教怎么跳转
    第一个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/fir"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        tools:context="com.xxian.app.first" >      <ImageView
            android:clickable="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_launcher" />    <Button
            android:clickable="true"
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#00000000" />
    </RelativeLayout>第二个xml布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:clickable="true"
        tools:context="com.xxian.app.first" >    <TextView
            android:text="asdfasdf"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/></RelativeLayout>
    MainActivity.java中
    public class MainActivity extends Activity {
        private RelativeLayout fir;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
            requestWindowFeature(Window.FEATURE_NO_TITLE);        setContentView(R.layout.activity_main);
            fir=(RelativeLayout)findViewById(R.id.fir);
            fir.setClickable(true);
            fir.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Toast.makeText(MainActivity.this,"点击了",0).show();
                    setContentView(R.layout.activity_second);
                }
            });
        }
    }至于怎么跳转,去Google  activity跳转,传值、传对象等等,或者去看android官方文档
    我看了你的代码我发现问题在哪里了,我点击图片不能去到第二个layout,点击其他空白地方就能去,button已经去掉了
    我没怎么改,看你那么有冲劲,就把你的copy了一遍,运行成功,贴了一下。是啊,因为你对整个父布局设置的点击事件,点击图片或者按钮肯定是不行的啊。
    原来如此,我以为父布局他包括了所有子控件,所以点子控件也是一样的,那子空间能继承他的属性吗?
    可以啊,比如一个属性
    android:descendantFocusability=”blocksDescendants”
    属性的值有三种:
            beforeDescendants:viewgroup会优先其子类控件而获取到焦点
            afterDescendants:viewgroup只有当其子类控件不需要获取焦点时才获取焦点
            blocksDescendants:viewgroup会覆盖子类控件而直接获得焦点还有一个属性,比如点击父控件的时候,父控件改变颜色,子控件跟着改变状态 android:duplicateParentState="true"再说了,如果要点击,直接设置对应的控件就可以了,为什么一定要继他的属性呢
    对了,那如果一个layout里面N多个子控件,我希望点一下就跳过去了,我现在想到的有2个办法,1是每个testview都设置一次,很麻烦,2就是加一个全屏的button,但是我用的是线性布局,不知道如何把它弄到全屏
    多去了解一下android上的布局属性吧,写多了也就那么回事。慢慢来,不着急,先了解整体大概,然后慢慢细化,别纠结于一个小问题,一直扣到底,有限的时间和精力用在了无用的事情上。要向前看 。