摘要:
android:gravity: 这个是针对控件里的元素来说的,用来控制元素在该控件里的显示位置。例如,在一个Button按钮控件中设置如下两个属性, android:gravity="left"和android:text="提交",这时Button上的文字“提交”将会位于Button的左部。 android:layout_gravity: 这个是针对控件本身而言,用来控制该控件在包含该控件的... 阅读全文
摘要:
阅读全文
摘要:
package com.pingyijinren.test; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; pub... 阅读全文
摘要:
阅读全文
摘要:
package com.pingyijinren.test; import android.util.Log; /** * Created by Administrator on 2016/5/20 0020. */ public class LogUtil { public static final int VERBOSE=1; public static final ... 阅读全文
摘要:
package com.pingyijinren.test; import android.os.Parcel; import android.os.Parcelable; import java.io.Serializable; /** * Created by Administrator on 2016/5/20 0020. */ public class Person imple... 阅读全文
摘要:
package com.pingyijinren.test; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class IndexActivity extends AppCompatActivity { @... 阅读全文
摘要:
package com.pingyijinren.test; import android.app.Application; import android.content.Context; /** * Created by Administrator on 2016/5/20 0020. */ public class MyApplication extends Application{... 阅读全文
摘要:
package com.pingyijinren.test; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android... 阅读全文
摘要:
package com.pingyijinren.test; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android... 阅读全文
摘要:
package com.pingyijinren.test; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android... 阅读全文