摘要: Adapter: item: 阅读全文
posted @ 2018-04-29 17:19 钱大少丶 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 效果图: 首先要添加依赖: 适配器: 阅读全文
posted @ 2018-04-26 10:26 钱大少丶 阅读(1911) 评论(1) 推荐(0) 编辑
摘要: 导入依赖 XBanner控件的部分属性 布局代码: Activity: Activity生命周期联动: 阅读全文
posted @ 2018-04-12 10:24 钱大少丶 阅读(1943) 评论(0) 推荐(0) 编辑
摘要: 1 recyclerView.setLayoutManager(new GridLayoutManager(mContext,2){ 2 @Override 3 public boolean canScrollVertically() { 4 return false; 5 } 6 7 @Override 8 public... 阅读全文
posted @ 2018-04-11 14:06 钱大少丶 阅读(1271) 评论(0) 推荐(0) 编辑
摘要: 1 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { 2 int flagTranslucentStatus = WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS; 3 int flagTranslucentNavigati... 阅读全文
posted @ 2018-04-10 14:34 钱大少丶 阅读(236) 评论(0) 推荐(0) 编辑
摘要: public class NoScrollViewPager extends ViewPager { private boolean noScroll = true; //true 代表不能滑动 //false 代表能滑动 //主布局:用viewpager点noScroll然后,记得复制这个布局的路径然后粘贴到布局里的viewpager,把实例化的名字改为NoScrollViewPage... 阅读全文
posted @ 2018-04-09 15:35 钱大少丶 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 子布局 在res中新建menu包创建menu布局 加入权限 导入依赖 阅读全文
posted @ 2018-04-09 11:16 钱大少丶 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 先添加依赖: 阅读全文
posted @ 2018-04-03 11:27 钱大少丶 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 先添加依赖: compile 'com.dou361.ijkplayer:jjdxm-ijkplayer:1.0.5' 布局文件: 小屏幕布局文件 1 <include 2 layout="@layout/simple_player_view_player" 3 android:layout_wid 阅读全文
posted @ 2018-04-02 15:48 钱大少丶 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 代码实现: 阅读全文
posted @ 2018-04-02 14:49 钱大少丶 阅读(355) 评论(0) 推荐(0) 编辑