会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Ars灬木子
博客园
首页
新随笔
联系
订阅
管理
2018年6月6日
测量屏幕宽高
摘要: import android.content.Context;import android.util.DisplayMetrics;import android.view.WindowManager;/** * Created by 怪胎 on 2018.6.6. */public class Ge
阅读全文
posted @ 2018-06-06 08:38 Ars灬木子
阅读(196)
评论(0)
推荐(0)
2018年5月11日
Android Lottie(快速展示Adobe Afeter Effect(AE)工具所作动画的框架)
摘要: 添加依赖compile 'com.airbnb.android:lottie:2.2.0' 进入下载Demo 将项目中的示例中的assets文件夹拷贝到自己新建的项目 https://github.com/airbnb/lottie-android
阅读全文
posted @ 2018-05-11 20:57 Ars灬木子
阅读(242)
评论(0)
推荐(0)
2018年5月10日
拨打电话
摘要: Intent i = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("tel:9510300000"));startActivity(i);
阅读全文
posted @ 2018-05-10 21:53 Ars灬木子
阅读(165)
评论(0)
推荐(0)
2018年5月8日
炫酷3D(侧滑)
摘要: <?xml version="1.0" encoding="utf-8"?><bwie.com.ganhuo.ResideLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schem
阅读全文
posted @ 2018-05-08 10:14 Ars灬木子
阅读(168)
评论(0)
推荐(0)
2018年5月7日
6.0动态权限
摘要: ActivityCompat.requestPermissions(MainActivity.this, new String[]{ Manifest.permission.CAMERA, Manifest.permission.READ_PHONE_STATE, Manifest.permissi
阅读全文
posted @ 2018-05-07 19:47 Ars灬木子
阅读(136)
评论(0)
推荐(0)
沉浸式
摘要: // 系统状态栏透明if (Build.VERSION.SDK_INT >=21){ View decorView = getWindow().getDecorView(); int option = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View
阅读全文
posted @ 2018-05-07 19:18 Ars灬木子
阅读(245)
评论(0)
推荐(0)
第三方视频播放(jc)
摘要: 导入libiary
阅读全文
posted @ 2018-05-07 17:15 Ars灬木子
阅读(551)
评论(0)
推荐(0)
调用系统的添加联系人界面
摘要: Intent intent = new Intent(Intent.ACTION_INSERT);intent.setType("vnd.android.cursor.dir/person");intent.setType("vnd.android.cursor.dir/contact");inte
阅读全文
posted @ 2018-05-07 16:02 Ars灬木子
阅读(214)
评论(0)
推荐(0)
调用系统的相册(展示图片)
摘要: 添加权限 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="htt
阅读全文
posted @ 2018-05-07 15:47 Ars灬木子
阅读(332)
评论(0)
推荐(0)
调取系统的相机(展示图片)
摘要: import android.content.Intent;import android.net.Uri;import android.os.Bundle;import android.provider.MediaStore;import android.support.v7.app.AppComp
阅读全文
posted @ 2018-05-07 15:37 Ars灬木子
阅读(298)
评论(0)
推荐(0)
下一页
公告