![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
框架
Android涛
敲
展开
-
Android中自定义控件SegmentedGroup
GitHub:https://github.com/Kaopiz/android-segmented-control一 、添加依赖implementation 'info.hoang8f:android-segmented:1.0.6'二、布局中使用<info.hoang8f.android.segmented.SegmentedGroup app:sc_...原创 2018-12-12 16:51:49 · 1078 阅读 · 0 评论 -
Android-PickerView框架的简单使用
参考GitHub:https://github.com/Bigkoo/Android-PickerView这个框架的效果感觉不错,但是作者不得不让人吐槽,但是没办法,人家效果好,还得想办法用,接下来我写的比较基础简单,其他方法设置可以去GitHub或Demo中去查看,希望我下面的讲解能帮助大家,如果还是不明白并且导入他的框架运行报错的话,可以找我解决报错问题。一、主要说明如下功能,如果想实...原创 2019-01-21 15:55:41 · 3528 阅读 · 2 评论 -
TableView框架Android中以表格的样式展示简单的统计数据
借鉴GitHub:https://github.com/smartown/TableView一、效果展示二、下载源码,打开导入以下代码1. TableView类;2. Util类;3. values中的attrs.xml文件。三、布局实现功能<com.smartown.tableview.library.TableView android:id="...原创 2019-01-15 11:30:51 · 2233 阅读 · 3 评论 -
Banner和XBanner的实现
首先加一个网络权限<uses-permission android:name="android.permission.INTERNET"/> 1.Banner: compile 'com.youth.banner:banner:1.4.9' 图片加载的依赖,如Glidecompile 'com.github.bumptech.glide:gl...原创 2017-11-29 11:01:10 · 587 阅读 · 2 评论 -
侧滑销毁Activity
依赖:compile 'com.jude:swipebackhelper:3.1.2' 在准备销毁的Activity里:public class HomeActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState)...原创 2017-12-02 16:17:31 · 288 阅读 · 0 评论 -
Android中的底部导航栏切换TabContainerView
前言:在GitHub上看到一个框架,实现底部导航栏切换,感觉不错,就在这里总结一下。参考:https://www.jianshu.com/p/9aaff43bbf9f https://github.com/chenpengfei88/TabContainerView第一步:准备工作。在project的build.gradle中添加:allprojects ...原创 2018-09-17 09:55:53 · 762 阅读 · 0 评论 -
Android中富文本RichText框架使用
详细介绍看GitHub:https://github.com/zzhoujay/RichText注意在第一次调用RichText之前先调用RichText.initCacheDir()方法设置缓存目录ImageFixCallback的回调方法不一定是在主线程回调,注意不要进行UI操作本地图片由根路径\开头,Assets目录图片由file:///android_asset/开头G...原创 2018-09-17 11:56:32 · 7563 阅读 · 0 评论 -
Android中的封装流式布局FlowLayout
鸿洋的GitHub:https://github.com/hongyangAndroid/FlowLayout第一步:加依赖implementation 'com.hyman:flowlayout-lib:1.1.2'第二步:创建一个Adapter继承TagAdapterpublic class MyFlowAdapter extends TagAdapter<Strin...原创 2018-10-17 11:19:02 · 2191 阅读 · 3 评论 -
Android中LRecyclerView的简单使用
想了解更多的请看GitHub第一步:填加依赖Step 1. 在你的根build.gradle文件中增加JitPack仓库依赖。allprojects { repositories { jcenter() maven { url "https://jitpack.io" } }}Step 2. 在你的module的build.gra...原创 2018-10-22 17:58:50 · 2780 阅读 · 1 评论 -
Android中下拉刷新PullRefreshLayout
有时我们页面中没有用到ListView、RecycleView,但是页面中有数据是要及时刷新的,这个时候我觉得用PullRefreshLayout正合适。网上博客有很多,我在这里总结一下,方便日后使用,也希望能帮到他人。GitHub:https://github.com/baoyongzhang/android-PullRefreshLayout 一、首先添加依赖dependenci...原创 2018-12-11 11:18:42 · 2638 阅读 · 1 评论 -
Android中的控制状态栏的工具
我们经常用的是一个工具类,现在发现一个框架,觉得还不错,就记录一下。GitHub:https://github.com/laobie/StatusBarUtil 一、添加依赖compile 'com.jaeger.statusbarutil:library:1.5.1'二、设置1.设置状态栏颜色StatusBarUtil.setColor(Activity activi...原创 2019-01-07 17:00:05 · 571 阅读 · 0 评论 -
Android中简单实现贴纸功能labelview
借鉴:https://www.jianshu.com/p/4a16d831c574虽然目前项目里没有遇到过这个功能,但是以防以后遇到后再去上网查,所以在此记录,这个还是比较简单的,直接看代码。 一、依赖1. 在根目录下(工程Project)的build.gradle中添加allprojects { repositories { ... ma...原创 2019-01-16 14:04:32 · 2189 阅读 · 0 评论