• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






blongfree

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页

2015年12月15日

【转】Pro Android学习笔记(十七):用户界面和控制(5):日期和时间控件
摘要: 目录(?)[-]DatePicker和TimePicker控件DigitalClock和AnalogClock控件DatePicker和TimePicker控件使用DatePicker和TimePicker,故名思议,用户可以对时间进行选择。XML代码如下: 如果我们不在代码中设置日期和时间的... 阅读全文
posted @ 2015-12-15 12:59 blongfree 阅读(174) 评论(0) 推荐(0)
 
【转】Pro Android学习笔记(十八):用户界面和控制(6):Adapter和AdapterView
摘要: 目录(?)[-]SimpleCursorAdapter系统预置的layoutArrayAdapter动态数据增插删排序自定义TextView风格其他AdapterAdapterView不仅仅是UI,同时还将数据关联到UI上,例如在手机中经常使用的ListView就是AdapterView。ListV... 阅读全文
posted @ 2015-12-15 12:59 blongfree 阅读(231) 评论(0) 推荐(0)
 
【转】Pro Android学习笔记(十五):用户界面和控制(3):Button控件
摘要: 目录(?)[-]基础ButtonImageButtonToggleButtonCheckBoxRadioButton基础ButtonButton是最常用的基础控件之一,在Android中是TextView的继承类。在上面衍生ImageButton和ToggleButton,我们将逐一介绍。小例子如图... 阅读全文
posted @ 2015-12-15 12:58 blongfree 阅读(162) 评论(0) 推荐(0)
 
【转】Pro Android学习笔记(十六):用户界面和控制(4):ImageView控件
摘要: 目录(?)[-]XML片段代码设置ImageViewImageView是基础的控件,它是android.widget.ImageView的继承类。XML片段 代码设置ImageView在XML中ui_image3没有设置具体的src,可以在代码中通过若干中方法设置。方式1:设... 阅读全文
posted @ 2015-12-15 12:58 blongfree 阅读(154) 评论(0) 推荐(0)
 
【转】Pro Android学习笔记(十四):用户界面和控制(2):Text类控制
摘要: 目录(?)[-]TextView例子1在XML中设置autoLink属性例子2在代码中设置autoLink属性EditTextAutoCompleteTextViewMultiAutoCompleteTextViewTextViewTextView之前已经使用过很多,直接显示,比较简单。但是我们可以... 阅读全文
posted @ 2015-12-15 12:56 blongfree 阅读(231) 评论(0) 推荐(0)
 
【转】Pro Android学习笔记(十三):用户界面和控制(1):UI开发
摘要: 目录(?)[-]UI开发方式一通过XML文件方式二通过代码方式三XML代码UI开发先理清一些UI概念:view、widget、control:这三个名词其实没有什么区别,都是一个UI元素,例如一个button。Container(容器):包含其他view,例如grid可以认为是容器,它有cell,每... 阅读全文
posted @ 2015-12-15 12:55 blongfree 阅读(158) 评论(0) 推荐(0)
 
【转】Pro Android学习笔记(十二):了解Intent(下)
摘要: 解析Intent,寻找匹配Activity如果给出component名字(包名、类名)是explicit intent,否则是implicit intent。对于explicit intent,关键就是component 名字,在中声明的其他属性被忽略。对于implicit intent,则根据ac... 阅读全文
posted @ 2015-12-15 11:18 blongfree 阅读(171) 评论(0) 推荐(0)
 
【转】Pro Android学习笔记(十一):了解Intent(中)
摘要: Intent的构成Intent可以带有action,data(由URI表达),extra data(key/value map,键值对),指定的类名(成为component name)。一个intent至少携带上述的一个内容。Action。Action名,在上一笔记中已经给出两种例子,一种是系统自带... 阅读全文
posted @ 2015-12-15 11:17 blongfree 阅读(169) 评论(0) 推荐(0)
 
【转】Pro Android学习笔记(十):了解Intent(上)
摘要: 目录(?)[-]Intent基本含义系统的IntentAndroid引入了Intent的概念来唤起components,component包括:1、Activity(UI元件)2、Service(后台代码)3、Broadcast receiver(处理广播消息的代码)4、Content provid... 阅读全文
posted @ 2015-12-15 11:16 blongfree 阅读(165) 评论(0) 推荐(0)
 
【转】Pro Android学习笔记(八):了解Content Provider(下中)
摘要: 在之前提供了小例子BookProvider,我们回过头看看如何将通过该Content Provider进行数据的读取。(1)增加private void addBook(String name ,String isbn,String author){/* 从ContentProvider的inser... 阅读全文
posted @ 2015-12-15 11:15 blongfree 阅读(136) 评论(0) 推荐(0)
 
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页