
Android UI
文章平均质量分 81
家有小辉
你不勇敢,谁替你坚强
展开
-
android UI取消标题栏及状态栏
super.onCreate(savedInstanceState); //取消标题栏 this.requestWindowFeature(Window.FEATURE_NO_TITLE); //取消状态栏 this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(原创 2015-05-31 21:56:31 · 683 阅读 · 0 评论 -
Android 3s动画渐变效果到登陆页面
ima_logo=(ImageView) findViewById(R.id.imag_logo); //动画3秒转变为登陆页面0.0f为透明,0.1f为不透明---慢慢显示图标 AlphaAnimation animation =new AlphaAnimation(0.0f, 0.1f); animation.setDuration(3000); animation.setAn原创 2015-05-31 22:04:20 · 877 阅读 · 0 评论 -
相对布局的各个含义
在某元素的上方 -->android:layout_above="@+id/textView1" android:layout_below="@+id/textView1" android:layout_centerInParent="true" android:layout_alignBottom="@+id/textView1"andro原创 2015-06-03 17:32:43 · 841 阅读 · 0 评论 -
Android android:gravity与 android:layout_gravity的区别
android:gravity:设置的是控件自身上面的内容位置android:layout_gravity:设置控件本身相对于父控件的显示位置。<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an原创 2015-06-03 16:40:45 · 444 阅读 · 0 评论 -
Android 所占权重的设置
xml属性 : android:layout_weight;作用 : 指定该元素在LinearLayout(父容器)中所占的权重, 例如都是1的情况下, 那个方向(LinearLayout的orientation方向)长度都是一样的;<LinearLayout xmlns:android="http://schemas.android.com/apk/res/andr原创 2015-06-03 16:45:17 · 3290 阅读 · 0 评论