随笔分类 -  Android M

Android Material Design
RecyclerView+SwpieRefreshLayout(转载)
摘要:开源库BaseRecyclerViewAdapterHelperhttp://blog.csdn.net/xiangzhihong8/article/details/52138669http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2016/ 阅读全文
posted @ 2017-01-12 20:52 大米稀饭 阅读(341) 评论(0) 推荐(0) 编辑
基于Material Design(转载)
摘要:SeeNewsV2新闻Android客户端 基于Material Design http://www.codesocang.com/gn/xiangmu/33630.html 直接拿来用!十大Material Design开源项目http://www.csdn.net/article/2014-11 阅读全文
posted @ 2016-10-28 11:46 大米稀饭 阅读(180) 评论(0) 推荐(0) 编辑
93、App Links (应用程序链接)实例
摘要:•网页端statements.json文件配置说明 package_name :APP包的名。 sha256.... : APP的签名。 •应用Manifest文件声明说明 <application android:allowBackup="true" android:icon="@mipmap/i 阅读全文
posted @ 2016-05-08 13:35 大米稀饭 阅读(413) 评论(0) 推荐(0) 编辑
92、App Permissions(权限管理)实例
摘要:•Manifest权限声明 •Permission Groups-权限组 •权限的区分-安装时授权于运行时授权 •撤销权限 •检查、请求权限 •在应用中如何合理的处理权限请求逻辑 在AndroidManifest.xml中配置权限。 <!-- 照相机权限 --> <uses-permission a 阅读全文
posted @ 2016-05-08 12:53 大米稀饭 阅读(440) 评论(0) 推荐(0) 编辑
64、具有过渡动画效果的布局Layout( 2 )
摘要:【CoordinatorLayout-与手势完美结合的滑动视图】【AppBarLayout-可以随手势滑动的AppBar】 1 8 9 12 13 28 36 37 38 39 43 47 5... 阅读全文
posted @ 2015-11-26 17:21 大米稀饭 阅读(396) 评论(0) 推荐(0) 编辑
63、具有过渡动画效果的布局Layout
摘要:下面,下来看一个Demo的效果,代码如下: 1 import android.os.Bundle; 2 import android.support.design.widget.FloatingActionButton; 3 import android.support.design.wid... 阅读全文
posted @ 2015-11-26 16:27 大米稀饭 阅读(266) 评论(0) 推荐(0) 编辑
62、常规控件(5)Navigation View –美观的侧滑视图
摘要:1、main_layout.xml 1 7 8 10 14 24 25 26 2、@layout/head_view 侧滑布局文件 1 6 10 3、MainActivity.java 1 package com.example.com.designde... 阅读全文
posted @ 2015-11-26 15:59 大米稀饭 阅读(242) 评论(0) 推荐(0) 编辑
61、常规控件(4)TabLayout-便捷实现标签
摘要:1 1 TabLayout tabs = (TabLayout) this.findViewById(R.id.tabs);2 tabs.addTab(tabs.newTab().setText("Tab1"));3 tabs.addTab(tabs.newTab().setText("Tab... 阅读全文
posted @ 2015-11-26 11:25 大米稀饭 阅读(419) 评论(0) 推荐(0) 编辑
60、常规控件(3)Snackbar-可操作的提示框,Toast升级版
摘要:1 final FloatingActionButton faBtn = (FloatingActionButton) this.findViewById(R.id.faBtn); 2 faBtn.setOnClickListener(new View.OnClic... 阅读全文
posted @ 2015-11-25 17:32 大米稀饭 阅读(299) 评论(0) 推荐(0) 编辑
59、常规控件(2)TextInputLayout-让EditText提示更加人性化
摘要:提示语用在显示。 1 7 11 14 16 TextInputLayout textInput = (TextInputLayout) this.findViewById(R.id.textInput);textInput.setHint("请输入用户名"); 1 ... 阅读全文
posted @ 2015-11-25 17:20 大米稀饭 阅读(934) 评论(0) 推荐(0) 编辑
58、常规控件(1)Floating Action Button-浮动的圆形按钮
摘要:1 7 8 14 23 24 阅读全文
posted @ 2015-11-25 17:00 大米稀饭 阅读(374) 评论(0) 推荐(0) 编辑
57、Design Support Library 介绍及环境搭建
摘要:一、Material Design几个要素扁平化、简洁;水波反馈;良好体验的过渡动画;材料空间位置的直观变化;二、Android Studio配置在build.gradle 文件中加入,compile 'com.android.support:design:23.0.1' , 然后在编译即可。三、E... 阅读全文
posted @ 2015-11-25 16:33 大米稀饭 阅读(226) 评论(0) 推荐(0) 编辑