摘要:
这是很常见的布局内容,讲解如下: android:layout_below="@id/label"/>将当前控件放置于id为label 的控件下方。 android:layout_alignParentRight="true"使当前控件的右端和父控件的右端对齐。这里属性值只能为true或false,默认false。android:layout_marginLeft="10dip"使当前控件左边空出相应的空间。 android:layout_toLeftOf="@id/ok"使当前控件置于id为ok的控件的左边 阅读全文
摘要:
ImageView iv1 = (ImageView) findViewById(R.id.iv1); Animation animation = (AnimationSet) AnimationUtils.loadAnimation(this, R.anim.rotary_magnify); iv1.startAnimation(animation);<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk 阅读全文
摘要:
requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 编辑器加载中... 阅读全文
摘要:
android:screenOrientation="portrait"禁止横向屏幕 阅读全文