本帖最后由 hsubo_78 于 2012-11-05 19:51:09 编辑

解决方案 »

  1.   

    大家都是这么写UI的啊....
    我就直接用surfaceview,一个一个画出来....
      

  2.   

      意思是这样的吗 ?
       <Button
            android:id="@+id/button2"
            style="?android:attr/buttonStyleSmall"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/button1"
            android:layout_below="@+id/button1"
            android:text="Button2"
            android:alpha="0" 如果某个控件的android:alpha="0" ,即代表该控件是透明的。即没有任何显示了。
     alpha [0 , 255] 255代表不透明。
      

  3.   

    是啊,我就是想让这个button初始状态的alpha是0,然后通过动画变化从0变到1.我就是想要 这个button从无到有的动画,该怎么做阿??
      

  4.   

    没必要这样设Alpha值的不想他显示就调View.setVisibility(View.GONE),要动画显示的时候就加入AlphaAnimation,在动画开始前把控件设为View.VISIBLE就行了