
Android
文章平均质量分 59
zx2015216856
计算机科学与技术,合肥工业大学
展开
-
Android studio菜鸟开发————Radiogroup RadioButton用法
单选按钮RadioGroup android:id="@+id/radioGroupId" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> RadioButton andro原创 2018-02-02 15:32:31 · 7082 阅读 · 0 评论 -
Android studio菜鸟开发————ImageView
ImageView相当于一个盛放图片的的容器在xml写法如下:ImageView android:id="@+id/imageId" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_launcher_back原创 2018-02-02 16:31:33 · 10360 阅读 · 2 评论 -
Android Studio菜鸟开发————LinearLayout线性布局
在content_main.xml中可以这样写:xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns原创 2018-02-02 17:07:57 · 13743 阅读 · 0 评论 -
Android Studio菜鸟开发————RelativeLayout相对布局
相对布局是通过相对定位的方式让控件出现在布局任意位置; 在相对布局中如果不指定控件摆放的位置,那么控件都会被默认放在RelativeLayout的左上角。因此要先指定第一个控件的位置,其他控件为该位置的相对位置;RelativeLayout属性:(使用相对布局属性需要先指定控件的id,其他控件根据该控件的id,来确定相对于该控件的相对位置)示例:xml version="1原创 2018-02-03 18:38:46 · 37002 阅读 · 0 评论 -
Android Studio菜鸟开发————TimePicker DataPicker 日期与时间
TimerPicker(Android 7.0)TimePicker android:layout_width="wrap_content" android:layout_height="wrap_content">TimePicker>在Java文件中可以使用findViewById来找到该控件使用setIs24HourView(true)来设置为24时原创 2018-02-05 15:08:57 · 2925 阅读 · 0 评论