垂直样式
drawable中增加progress_vertical.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android = "http://schemas.android.com/apk/res/android">
<item android:id="@android:id/progress">
<clip
a……继续阅读 »
sharezer
7年前 (2017-03-30) 3817浏览 3评论
0个赞
Intent.ACTION_AIRPLANE_MODE_CHANGED;
//关闭或打开飞行模式时的广播
Intent.ACTION_BATTERY_CHANGED;
//充电状态,或者电池的电量发生变化
//电池的充电状态、电荷级别改变,不能通过组建声明接收这个广播,只有通过Context.registerReceiver()注册
Intent.ACTION_BATTERY_LOW;
//表示电池电量低
Intent.ACTION_BATTERY_OKAY;
//表示电池电量充足,即从电池电量低变化到饱满时会发出广播
Intent.AC……继续阅读 »
sharezer
7年前 (2017-03-30) 9789浏览 0评论
0个赞
配置环境
全局build.gradle
配置全局的gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
}
}
subprojects {
project.version = iceVersion
project.group = "com.zeroc"
apply plugin: ……继续阅读 »
sharezer
7年前 (2017-03-27) 4187浏览 3评论
0个赞
<ImageView
android:id="@+id/imageBg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:adjustViewBounds="true"
android:scaleType=&q……继续阅读 »
sharezer
7年前 (2017-03-27) 2177浏览 0评论
0个赞