摘要: 常用属性: inputType:(代码中:setiputtype)设置输入类型,多种类型中间用“|” maxlength:最大长度,无法通过代码设置 hint:提示文本内容,(代码中:setHint) textColorHint:提示文本颜色,(代码中:setHintTextColor) 输入类型取 阅读全文
posted @ 2017-07-03 17:36 alm 阅读(1425) 评论(0) 推荐(0) 编辑
摘要: 1 6 7 12 1 1 package com.example.alimjan.hello_world; 2 3 import android.content.Context; 4 import android.content.Intent; 5 import android.os.Bundle; 6 import android.suppo... 阅读全文
posted @ 2017-07-02 16:37 alm 阅读(355) 评论(0) 推荐(0) 编辑
摘要: horizontal vertical 阅读全文
posted @ 2017-07-02 15:24 alm 阅读(211) 评论(0) 推荐(0) 编辑
摘要: default switch 仿IOS风格 style java 阅读全文
posted @ 2017-07-02 14:50 alm 阅读(850) 评论(0) 推荐(0) 编辑
摘要: java 阅读全文
posted @ 2017-07-02 13:49 alm 阅读(197) 评论(0) 推荐(0) 编辑
摘要: xml java 阅读全文
posted @ 2017-07-02 12:58 alm 阅读(194) 评论(0) 推荐(0) 编辑
摘要: xml文件实现 java 代码实现 阅读全文
posted @ 2017-07-02 12:34 alm 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 功能简单,实现并不难,对于初学者可以总和了解初级控件的基本使用。 用到的知识点如下: 线性布局 LinearLayout:整体界面是从上往下的,因此需要垂直方向的linearlayout;下面每行四个按钮,需要水平的linearlayout。 滚动视图 ScrollView :虽然界面不宽也不高,以 阅读全文
posted @ 2017-07-01 16:16 alm 阅读(2064) 评论(1) 推荐(0) 编辑
摘要: shape_oval 默认矩形 xml java 1、shape 有四种类型 rectangle 矩形 oval 椭圆(corners属性失效) line 直线(必须设置stroke属性) ring 圆环 2、corners bottomLeftRadius:左下角 bottomRightRadiu 阅读全文
posted @ 2017-07-01 14:37 alm 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1 package com.example.alimjan.hello_world; 2 3 /** 4 * Created by alimjan on 6/30/2017. 5 */ 6 7 import java.text.ParseException; 8 import java.text.SimpleDateForm... 阅读全文
posted @ 2017-07-01 13:49 alm 阅读(220) 评论(0) 推荐(0) 编辑