急!button的Alpha动画怎么从0到1阿!! 本帖最后由 hsubo_78 于 2012-11-05 19:51:09 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 大家都是这么写UI的啊....我就直接用surfaceview,一个一个画出来.... 意思是这样的吗 ? <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代表不透明。 是啊,我就是想让这个button初始状态的alpha是0,然后通过动画变化从0变到1.我就是想要 这个button从无到有的动画,该怎么做阿?? 没必要这样设Alpha值的不想他显示就调View.setVisibility(View.GONE),要动画显示的时候就加入AlphaAnimation,在动画开始前把控件设为View.VISIBLE就行了 设置app透明度 求助,关于安卓调用摄像头的问题 求助!关于百度搜索的字符传递问题 ios系统能安装java程序吗 Android上运行python的问题 控件的位置移动和保存问题 Android开发指南中文版 下载 android C++ 父类转子类问题? 黑马Android 60G视频,地址我留下了,需要的自己去下载 android 一个效果 求是怎么实现的? android2.3 怎么集成任务管理器功能? android GridView左右滚动保存点击位置
我就直接用surfaceview,一个一个画出来....
<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代表不透明。