
Android
lvanneo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ActionBar
ActionBar是3.0之后出现的控件,取代menu,显示在标题栏位置。通过getActionBar()得到对象。1.普通ActionBar创建方式与Menu(xml创建)一样,不过item中需要设定android:showAsAction属性,不设定就是默认never,item将为menu的item,选择always或者ifRoom将为ActionBar。右转载 2014-05-31 15:44:59 · 1281 阅读 · 0 评论 -
Android_低版本使用ActionBar
简介Android3.0才开始支持ActionBar,那么怎么在低版本也能用ActionBar呢?1、使用Google提供的Support Library(android-support-v7-appcompat)。2、使用Jake Wharton编写的ActionBarSherlock(http://actionbarsherlock.com/)。以上转载 2014-05-31 06:10:32 · 1014 阅读 · 0 评论 -
Handler和HandlerThread
1.什么是Handler?SDK中关于Handler的说明如下:A Handler allows you to sendand process Messageand Runnable objects associated with a thread's MessageQueue.Each Handler instance is associated with a singl转载 2014-06-15 20:05:36 · 761 阅读 · 0 评论