tt_mc

导航

2018年3月4日 #

SwipeToLoadLayout

摘要: SwipeToLoadLayout SwipeToLoadLayout is a reusable pull-to-refresh and pull-to-load-more widget. Supported View Theoretically support all kinds of view 阅读全文

posted @ 2018-03-04 12:51 tt_mc 阅读(245) 评论(0) 推荐(0) 编辑

EasyPopup

摘要: EasyPopup PopupWindow 对 PopupWindow 的封装,使得在项目中使用起来更加简单、方便、快捷 项目特性 链式调用:除了在传统的 PopupWindow 使用方法之外还加入了更多的方法 带有相对于 AnchorView 的各个方位弹出的方法,弹出 PopupWindow 更 阅读全文

posted @ 2018-03-04 12:40 tt_mc 阅读(730) 评论(0) 推荐(0) 编辑

badgeview

摘要: https://github.com/AlexLiuSheng/BadgeView include: compile 'com.allenliu.badgeview:library:1.1.1'(newest) bind like this: if u want to set space dont 阅读全文

posted @ 2018-03-04 12:31 tt_mc 阅读(156) 评论(0) 推荐(0) 编辑

CustomDrawableTextView

摘要: public class CustomDrawableTextView extends TextView{ //image width、height private int imageWidth; private int imageHeight; private Drawable leftImage 阅读全文

posted @ 2018-03-04 12:22 tt_mc 阅读(220) 评论(0) 推荐(0) 编辑

2015年2月9日 #

Snippet: align a TextView around an image

摘要: A few weeks ago I discovered the Spans on Android,after reading the wonderfulpostbyFlavien Laurent.In this post I will describe how to realize a parti... 阅读全文

posted @ 2015-02-09 15:57 tt_mc 阅读(373) 评论(0) 推荐(0) 编辑

How to import library ?

摘要: Android Studio:Download or git the library. (for example: the library folder namedActionBarSherlock)Create a folder namedlibrariesin your root directo... 阅读全文

posted @ 2015-02-09 15:20 tt_mc 阅读(255) 评论(0) 推荐(0) 编辑

2015年2月6日 #

Gradle自定义你的BuildConfig

摘要: BuildConfig.DEBUG首先在Gradle脚本中默认的debug和release两种模式BuildCondig.DEBUG字段分别为true和false,而且不可更改。该字段编译后自动生成,在Studio中生成的目录在app/build/source/BuildConfig/Build V... 阅读全文

posted @ 2015-02-06 15:05 tt_mc 阅读(13856) 评论(0) 推荐(0) 编辑

2015年2月3日 #

使用adb shell dumpsys检测Android的Activity任务栈

摘要: 谈起Android程序开发,就需要了解其四个主要的部件:Activity、Service、ContentProvider、BroadcastReceiver。而其中Activity是唯一直接控制程序界面呈现,直面用户操作的部件(当然BrowadCastReceiver也能通过桌面控件(App Wid... 阅读全文

posted @ 2015-02-03 14:06 tt_mc 阅读(13430) 评论(1) 推荐(0) 编辑

2014年12月1日 #

Activity intent经常使用的 FLAG

摘要: Intent.FLAG_ACTIVITY_NEW_TASK默认的跳转类型,会重新创建一个新的Activity,不过与这种情况,比方说Task1中有A,B,C三个Activity,此时在C中启动D的话,如果在Manifest.xml文件中给D添加了Affinity的值和Task中的不一样的话,则会在新... 阅读全文

posted @ 2014-12-01 14:26 tt_mc 阅读(11697) 评论(0) 推荐(0) 编辑

2014年9月11日 #

使用 ContentProviderOperation 来提升性能

摘要: ContentProviders 是android 系统核心组件之一,ContentProviders 封装了数据的访问接口,其底层数据一般都是保存在数据库中或者保存在云端。有时候你需要更新多行数据,可以选择调用多次ContentResolver的对应函数,或者 使用批量操作。当然 后者性能会比较好... 阅读全文

posted @ 2014-09-11 16:13 tt_mc 阅读(6729) 评论(1) 推荐(0) 编辑