一、常用控件:
1、文本类控件
TextView 负责展示文本,非编辑
EditText 可编辑文本控件
2、按钮类控件
Button 按钮
ImageButton 图片按钮
RadioButton与RadioGroup 单选按钮
CheckBox 复选按钮
3、图片控件
ImageView 负责显示图片
控件详解可以参考:http://blog.csdn.net/netdxy/article/details/50691915
二、登录界面实现:
1.效果图:
2.代码示例:
activity_login.xml:
<LinearLayout
android:id="@+id/userName"
android:layout_width="match_parent"
android:layout_height="50dp">
<ImageButton
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginTop="10dp"
android:background="#000000" />
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@