- 博客(10)
- 问答 (2)
- 收藏
- 关注
原创 Android Studio 快捷键(Windows/Linux)
通用 General Control+S Save all Control+Alt+Y Synchronize Control+Shift+F12 Maximize/minimize editor Alt+Shift+F Add to favorites Alt+Shift+I Inspect current file with current profile Control+`(backquote) Quick switch scheme Control+Alt+S Open settings dial
2020-07-21 00:35:06
1147
1
原创 利用Rxjava简单处理复杂请求
这是Android Weekly第270期推荐的一篇文章:How to make complex requests simple with RxJava in Kotlin,Kotlin写的,MVP+Dagger2+RxJava2+Retrofit2,现在的标配?黑人问号??
2017-08-29 17:01:39
1355
原创 侧边快速滑动搜索的SectionIndexer接口简单使用
今天刚用到SectionIndexer,记录下来也算是个笔记。 当我们使用侧边快速滑动,比如RecyclerViewFastScroller库,就要自己在adapter中继承SectionIndexer接口才能滑动出效果 一般联系人的侧滑都是用AlphabetIndexer简单实现,这里我自己写的逻辑。 我们来看下这个接口必须继承的三个方法: abstract Object[]
2016-01-13 11:03:03
1480
原创 Android Studio gradle 文件中 ${supportLibVersion} 用法
用整洁的方式去定义你的support library dependencies
2015-12-26 12:06:48
3834
翻译 Android启动页面的正确打开方式
现在APP的启动页面(Splash Screen)好多都是等待3秒,好一点的还可以跳过,但是有的跳过也是假的按钮。当然像一些大厂的APP,像网易新闻等启动页面都是广告,人家要收广告费的。但是,对于一些普通的APP,有的也出现等待三秒的启动画面,出现一个大大的logo,好像告诉用户他打开的是什么应用,加深用户的映像,这完全是浪费用户的时间,给用户很差的体验!其实我只想快点进入APP啊!!!下面说下如何
2015-12-10 22:31:07
17795
3
原创 ListView 和RecyclerView的比较
通过比较ListView 和RecyclerView 现在官方主要推荐RecyclerView,因为其将ViewHolder融入到该组件中,达到重复利用视图,节省内存的目的 首先,分析ListView的实现机制 public class MyAdapter extends BaseAdapter { @Override public int getCount
2015-08-05 22:10:30
760
翻译 Material Design Tabs
效果图如下 首先看下布局 <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:l
2015-08-03 19:46:28
1101
1
翻译 Flexible Space with Image
具体效果先贴出来,toolbar带图片可以收缩,也可以说是toolbar的动画 实现该效果最主要的还是布局 首先还是添加Design的库,前面的博客已经说过 定义layout <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/and
2015-07-31 19:57:45
891
原创 学习之路 20150730
Material Design ToolBar的使用 首先,在values创建colors.xml中定义三个颜色,colorPrimary,colorPrimary,colorAccent具体显示效果google有具体讲解,代码如下 #795548 #5D4037 #ffeb3b 我这里用的是BROWN,具体选择可以根据这里 material palette,很
2015-07-30 12:30:17
594
空空如也
android和js之间的bridge通信原理是什么
2016-01-22
Android应用如何在应用里面改变图标和标题
2014-12-14
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅