Initial commit
8
.gitignore
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
*.iml
|
||||
.gradle
|
||||
/local.properties
|
||||
/.idea/workspace.xml
|
||||
/.idea/libraries
|
||||
.DS_Store
|
||||
/build
|
||||
/captures
|
||||
1
.idea/.name
generated
Normal file
@@ -0,0 +1 @@
|
||||
Android 通知栏Notification的全面整合学习
|
||||
22
.idea/compiler.xml
generated
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<resourceExtensions />
|
||||
<wildcardResourcePatterns>
|
||||
<entry name="!?*.java" />
|
||||
<entry name="!?*.form" />
|
||||
<entry name="!?*.class" />
|
||||
<entry name="!?*.groovy" />
|
||||
<entry name="!?*.scala" />
|
||||
<entry name="!?*.flex" />
|
||||
<entry name="!?*.kt" />
|
||||
<entry name="!?*.clj" />
|
||||
<entry name="!?*.aj" />
|
||||
</wildcardResourcePatterns>
|
||||
<annotationProcessing>
|
||||
<profile default="true" name="Default" enabled="false">
|
||||
<processorPath useClasspath="true" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
</project>
|
||||
3
.idea/copyright/profiles_settings.xml
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
<component name="CopyrightManager">
|
||||
<settings default="" />
|
||||
</component>
|
||||
7
.idea/encodings.xml
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/notifications通知栏学习/src/main/java/com/example/notifications/MainActivity.java" charset="UTF-8" />
|
||||
<file url="PROJECT" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
||||
25
.idea/gradle.xml
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/app" />
|
||||
<option value="$PROJECT_DIR$/notifications通知栏学习" />
|
||||
</set>
|
||||
</option>
|
||||
<option name="myModules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/app" />
|
||||
<option value="$PROJECT_DIR$/notifications通知栏学习" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
49
.idea/misc.xml
generated
Normal file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="EntryPointsManager">
|
||||
<entry_points version="2.0" />
|
||||
</component>
|
||||
<component name="NullableNotNullManager">
|
||||
<option name="myDefaultNullable" value="android.support.annotation.Nullable" />
|
||||
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
|
||||
<option name="myNullables">
|
||||
<value>
|
||||
<list size="4">
|
||||
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
|
||||
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
|
||||
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
|
||||
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
<option name="myNotNulls">
|
||||
<value>
|
||||
<list size="4">
|
||||
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
|
||||
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
|
||||
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
|
||||
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
||||
<OptionsSetting value="true" id="Add" />
|
||||
<OptionsSetting value="true" id="Remove" />
|
||||
<OptionsSetting value="true" id="Checkout" />
|
||||
<OptionsSetting value="true" id="Update" />
|
||||
<OptionsSetting value="true" id="Status" />
|
||||
<OptionsSetting value="true" id="Edit" />
|
||||
<ConfirmationsSetting value="0" id="Add" />
|
||||
<ConfirmationsSetting value="0" id="Remove" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.7" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="Android" />
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration>C:\Users\yuandl\AppData\Roaming\Subversion</configuration>
|
||||
</component>
|
||||
</project>
|
||||
10
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/Notification.iml" filepath="$PROJECT_DIR$/Notification.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/notifications通知栏学习/notifications通知栏学习.iml" filepath="$PROJECT_DIR$/notifications通知栏学习/notifications通知栏学习.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
12
.idea/runConfigurations.xml
generated
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RunConfigurationProducerService">
|
||||
<option name="ignoredProducers">
|
||||
<set>
|
||||
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
|
||||
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
|
||||
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
1
app/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
||||
26
app/build.gradle
Normal file
@@ -0,0 +1,26 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 23
|
||||
buildToolsVersion "23.0.3"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.kejiang.yuandl.androidnotification"
|
||||
minSdkVersion 8
|
||||
targetSdkVersion 23
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
testCompile 'junit:junit:4.12'
|
||||
compile 'com.android.support:appcompat-v7:23.4.0'
|
||||
}
|
||||
17
app/proguard-rules.pro
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# By default, the flags in this file are appended to flags specified
|
||||
# in E:\kejiang\Android\sdk/tools/proguard/proguard-android.txt
|
||||
# You can edit the include path and order by changing the proguardFiles
|
||||
# directive in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# Add any project specific keep options here:
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.kejiang.yuandl.androidnotification;
|
||||
|
||||
import android.app.Application;
|
||||
import android.test.ApplicationTestCase;
|
||||
|
||||
/**
|
||||
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
|
||||
*/
|
||||
public class ApplicationTest extends ApplicationTestCase<Application> {
|
||||
public ApplicationTest() {
|
||||
super(Application.class);
|
||||
}
|
||||
}
|
||||
20
app/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.kejiang.yuandl.androidnotification">
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity android:name=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.kejiang.yuandl.androidnotification;
|
||||
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_main);
|
||||
}
|
||||
}
|
||||
16
app/src/main/res/layout/activity_main.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
tools:context="com.kejiang.yuandl.androidnotification.MainActivity">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Hello World!" />
|
||||
</RelativeLayout>
|
||||
BIN
app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
6
app/src/main/res/values-w820dp/dimens.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<resources>
|
||||
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
|
||||
(such as screen margins) for screens with more than 820dp of available width. This
|
||||
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
|
||||
<dimen name="activity_horizontal_margin">64dp</dimen>
|
||||
</resources>
|
||||
6
app/src/main/res/values/colors.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#3F51B5</color>
|
||||
<color name="colorPrimaryDark">#303F9F</color>
|
||||
<color name="colorAccent">#FF4081</color>
|
||||
</resources>
|
||||
5
app/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<resources>
|
||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||
</resources>
|
||||
3
app/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name">"Android 通知栏Notification的全面整合学习 "</string>
|
||||
</resources>
|
||||
11
app/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.kejiang.yuandl.androidnotification;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* To work on unit tests, switch the Test Artifact in the Build Variants view.
|
||||
*/
|
||||
public class ExampleUnitTest {
|
||||
@Test
|
||||
public void addition_isCorrect() throws Exception {
|
||||
assertEquals(4, 2 + 2);
|
||||
}
|
||||
}
|
||||
23
build.gradle
Normal file
@@ -0,0 +1,23 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:2.1.2'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
18
gradle.properties
Normal file
@@ -0,0 +1,18 @@
|
||||
# Project-wide Gradle settings.
|
||||
|
||||
# IDE (e.g. Android Studio) users:
|
||||
# Gradle settings configured through the IDE *will override*
|
||||
# any settings specified in this file.
|
||||
|
||||
# For more details on how to configure your build environment visit
|
||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||
|
||||
# Specifies the JVM arguments used for the daemon process.
|
||||
# The setting is particularly useful for tweaking memory settings.
|
||||
# Default value: -Xmx10248m -XX:MaxPermSize=256m
|
||||
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
||||
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
# This option should only be used with decoupled projects. More details, visit
|
||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||
# org.gradle.parallel=true
|
||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
#Mon Dec 28 10:00:20 PST 2015
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
|
||||
160
gradlew
vendored
Normal file
@@ -0,0 +1,160 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn ( ) {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die ( ) {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
esac
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >/dev/null
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
|
||||
function splitJvmOpts() {
|
||||
JVM_OPTS=("$@")
|
||||
}
|
||||
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
|
||||
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
|
||||
|
||||
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
||||
90
gradlew.bat
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS=
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:init
|
||||
@rem Get command-line arguments, handling Windowz variants
|
||||
|
||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||
if "%@eval[2+2]" == "4" goto 4NT_args
|
||||
|
||||
:win9xME_args
|
||||
@rem Slurp the command line arguments.
|
||||
set CMD_LINE_ARGS=
|
||||
set _SKIP=2
|
||||
|
||||
:win9xME_args_slurp
|
||||
if "x%~1" == "x" goto execute
|
||||
|
||||
set CMD_LINE_ARGS=%*
|
||||
goto execute
|
||||
|
||||
:4NT_args
|
||||
@rem Get arguments from the 4NT Shell from JP Software
|
||||
set CMD_LINE_ARGS=%$
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
62
import-summary.txt
Normal file
@@ -0,0 +1,62 @@
|
||||
ECLIPSE ANDROID PROJECT IMPORT SUMMARY
|
||||
======================================
|
||||
|
||||
Ignored Files:
|
||||
--------------
|
||||
The following files were *not* copied into the new Gradle project; you
|
||||
should evaluate whether these are still needed in your project and if
|
||||
so manually move them:
|
||||
|
||||
* ic_launcher-web.png
|
||||
* proguard-project.txt
|
||||
|
||||
Replaced Jars with Dependencies:
|
||||
--------------------------------
|
||||
The importer recognized the following .jar files as third party
|
||||
libraries and replaced them with Gradle dependencies instead. This has
|
||||
the advantage that more explicit version information is known, and the
|
||||
libraries can be updated automatically. However, it is possible that
|
||||
the .jar file in your project was of an older version than the
|
||||
dependency we picked, which could render the project not compileable.
|
||||
You can disable the jar replacement in the import wizard and try again:
|
||||
|
||||
android-support-v4.jar => com.android.support:support-v4:18.+
|
||||
|
||||
Moved Files:
|
||||
------------
|
||||
Android Gradle projects use a different directory structure than ADT
|
||||
Eclipse projects. Here's how the projects were restructured:
|
||||
|
||||
* AndroidManifest.xml => notifications通知栏学习\src\main\AndroidManifest.xml
|
||||
* assets\ => notifications通知栏学习\src\main\assets\
|
||||
* res\ => notifications通知栏学习\src\main\res\
|
||||
* src\ => notifications通知栏学习\src\main\java\
|
||||
|
||||
Missing Android Support Repository:
|
||||
-----------------------------------
|
||||
Some useful libraries, such as the Android Support Library, are
|
||||
installed from a special Maven repository, which should be installed
|
||||
via the SDK manager.
|
||||
|
||||
It looks like this library is missing from your SDK installation at:
|
||||
null
|
||||
|
||||
To install it, open the SDK manager, and in the Extras category,
|
||||
select "Android Support Repository". You may also want to install the
|
||||
"Google Repository" if you want to use libraries like Google Play
|
||||
Services.
|
||||
|
||||
Next Steps:
|
||||
-----------
|
||||
You can now build the project. The Gradle project needs network
|
||||
connectivity to download dependencies.
|
||||
|
||||
Bugs:
|
||||
-----
|
||||
If for some reason your project does not build, and you determine that
|
||||
it is due to a bug or limitation of the Eclipse to Gradle importer,
|
||||
please file a bug at http://b.android.com with category
|
||||
Component-Tools.
|
||||
|
||||
(This import summary is for your information only, and can be deleted
|
||||
after import once you are satisfied with the results.)
|
||||
23
notifications通知栏学习/build.gradle
Normal file
@@ -0,0 +1,23 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 17
|
||||
buildToolsVersion "19.1.0"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.example.notifications"
|
||||
minSdkVersion 7
|
||||
targetSdkVersion 18
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.android.support:support-v4:18.+'
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Automatically generated file. DO NOT MODIFY
|
||||
*/
|
||||
package com.example.notifications.test;
|
||||
|
||||
public final class BuildConfig {
|
||||
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
||||
public static final String APPLICATION_ID = "com.example.notifications.test";
|
||||
public static final String BUILD_TYPE = "debug";
|
||||
public static final String FLAVOR = "";
|
||||
public static final int VERSION_CODE = -1;
|
||||
public static final String VERSION_NAME = "";
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Automatically generated file. DO NOT MODIFY
|
||||
*/
|
||||
package com.example.notifications;
|
||||
|
||||
public final class BuildConfig {
|
||||
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
||||
public static final String APPLICATION_ID = "com.example.notifications";
|
||||
public static final String BUILD_TYPE = "debug";
|
||||
public static final String FLAVOR = "";
|
||||
public static final int VERSION_CODE = 1;
|
||||
public static final String VERSION_NAME = "1.0";
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
/* AUTO-GENERATED FILE. DO NOT MODIFY.
|
||||
*
|
||||
* This class was automatically generated by the
|
||||
* aapt tool from the resource data it found. It
|
||||
* should not be modified by hand.
|
||||
*/
|
||||
|
||||
package com.example.notifications;
|
||||
|
||||
public final class R {
|
||||
public static final class attr {
|
||||
}
|
||||
public static final class dimen {
|
||||
public static final int activity_horizontal_margin=0x7f040000;
|
||||
public static final int activity_vertical_margin=0x7f040001;
|
||||
}
|
||||
public static final class drawable {
|
||||
public static final int btn_next=0x7f020000;
|
||||
public static final int btn_pause=0x7f020001;
|
||||
public static final int btn_play=0x7f020002;
|
||||
public static final int btn_prev=0x7f020003;
|
||||
public static final int ic_launcher=0x7f020004;
|
||||
public static final int icon=0x7f020005;
|
||||
public static final int sing_icon=0x7f020006;
|
||||
}
|
||||
public static final class id {
|
||||
public static final int action_settings=0x7f08001e;
|
||||
public static final int btn_bigstyle_show=0x7f080003;
|
||||
public static final int btn_clear=0x7f080007;
|
||||
public static final int btn_clear_all=0x7f080008;
|
||||
public static final int btn_custom_next=0x7f080017;
|
||||
public static final int btn_custom_play=0x7f080016;
|
||||
public static final int btn_custom_prev=0x7f080015;
|
||||
public static final int btn_download_cancel=0x7f08000e;
|
||||
public static final int btn_download_pause=0x7f08000d;
|
||||
public static final int btn_download_start=0x7f08000c;
|
||||
public static final int btn_show=0x7f080002;
|
||||
public static final int btn_show_custom=0x7f080000;
|
||||
public static final int btn_show_custom_button=0x7f080001;
|
||||
public static final int btn_show_custom_progress=0x7f08000b;
|
||||
public static final int btn_show_cz=0x7f080004;
|
||||
public static final int btn_show_intent_act=0x7f080005;
|
||||
public static final int btn_show_intent_apk=0x7f080006;
|
||||
public static final int btn_show_progress=0x7f080009;
|
||||
public static final int btn_show_un_progress=0x7f08000a;
|
||||
public static final int custom_icon=0x7f08000f;
|
||||
public static final int custom_progress_icon=0x7f08001a;
|
||||
public static final int custom_progressbar=0x7f08001d;
|
||||
public static final int custom_song_icon=0x7f080013;
|
||||
public static final int ll_custom_button=0x7f080014;
|
||||
public static final int tv_custom_content=0x7f080012;
|
||||
public static final int tv_custom_progress_status=0x7f08001c;
|
||||
public static final int tv_custom_progress_title=0x7f08001b;
|
||||
public static final int tv_custom_song_name=0x7f080019;
|
||||
public static final int tv_custom_song_singer=0x7f080018;
|
||||
public static final int tv_custom_time=0x7f080011;
|
||||
public static final int tv_custom_title=0x7f080010;
|
||||
}
|
||||
public static final class layout {
|
||||
public static final int custom=0x7f030000;
|
||||
public static final int main=0x7f030001;
|
||||
public static final int progress=0x7f030002;
|
||||
public static final int view_custom=0x7f030003;
|
||||
public static final int view_custom_button=0x7f030004;
|
||||
public static final int view_custom_progress=0x7f030005;
|
||||
}
|
||||
public static final class menu {
|
||||
public static final int main=0x7f070000;
|
||||
}
|
||||
public static final class string {
|
||||
public static final int action_settings=0x7f060000;
|
||||
public static final int app_name=0x7f060001;
|
||||
public static final int hello_world=0x7f060002;
|
||||
}
|
||||
public static final class style {
|
||||
/** API 11 theme customizations can go here.
|
||||
API 14 theme customizations can go here.
|
||||
API 11 theme customizations can go here.
|
||||
|
||||
Theme customizations available in newer API levels can go in
|
||||
res/values-vXX/styles.xml, while customizations related to
|
||||
backward-compatibility can go here.
|
||||
|
||||
|
||||
|
||||
|
||||
*/
|
||||
public static final int AppBaseTheme=0x7f050000;
|
||||
/** All customizations that are NOT specific to a particular API-level can go here.
|
||||
*/
|
||||
public static final int AppTheme=0x7f050003;
|
||||
public static final int NotificationContent=0x7f050001;
|
||||
public static final int NotificationTitle=0x7f050002;
|
||||
public static final int btn_custom_style=0x7f050004;
|
||||
}
|
||||
}
|
||||
BIN
notifications通知栏学习/build/intermediates/assets/debug/cs.apk
Normal file
@@ -0,0 +1,26 @@
|
||||
[
|
||||
{
|
||||
"outputFile": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\values-sw720dp-land-v13\\values-sw720dp-land-v13.xml",
|
||||
"map": [
|
||||
{
|
||||
"to": {
|
||||
"startLine": 2,
|
||||
"startColumn": 4,
|
||||
"startOffset": 55,
|
||||
"endColumn": 58,
|
||||
"endOffset": 109
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values-sw720dp-land\\dimens.xml",
|
||||
"position": {
|
||||
"startLine": 6,
|
||||
"startColumn": 4,
|
||||
"startOffset": 205,
|
||||
"endColumn": 58,
|
||||
"endOffset": 259
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,66 @@
|
||||
[
|
||||
{
|
||||
"outputFile": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\values-v11\\values-v11.xml",
|
||||
"map": [
|
||||
{
|
||||
"to": {
|
||||
"startLine": 2,
|
||||
"startColumn": 4,
|
||||
"startOffset": 55,
|
||||
"endLine": 4,
|
||||
"endColumn": 12,
|
||||
"endOffset": 187
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values-v11\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 7,
|
||||
"startColumn": 4,
|
||||
"startOffset": 183,
|
||||
"endLine": 9,
|
||||
"endColumn": 12,
|
||||
"endOffset": 317
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 5,
|
||||
"startColumn": 4,
|
||||
"startOffset": 192,
|
||||
"endColumn": 94,
|
||||
"endOffset": 282
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values-v11\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 13,
|
||||
"startColumn": 4,
|
||||
"startOffset": 432,
|
||||
"endColumn": 95,
|
||||
"endOffset": 523
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 6,
|
||||
"startColumn": 4,
|
||||
"startOffset": 287,
|
||||
"endColumn": 98,
|
||||
"endOffset": 381
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values-v11\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 11,
|
||||
"startColumn": 4,
|
||||
"startOffset": 329,
|
||||
"endColumn": 99,
|
||||
"endOffset": 424
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,28 @@
|
||||
[
|
||||
{
|
||||
"outputFile": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\values-v14\\values-v14.xml",
|
||||
"map": [
|
||||
{
|
||||
"to": {
|
||||
"startLine": 2,
|
||||
"startColumn": 4,
|
||||
"startOffset": 55,
|
||||
"endLine": 4,
|
||||
"endColumn": 12,
|
||||
"endOffset": 201
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values-v14\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 7,
|
||||
"startColumn": 4,
|
||||
"startOffset": 225,
|
||||
"endLine": 9,
|
||||
"endColumn": 12,
|
||||
"endOffset": 373
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,66 @@
|
||||
[
|
||||
{
|
||||
"outputFile": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\values-v9\\values-v9.xml",
|
||||
"map": [
|
||||
{
|
||||
"to": {
|
||||
"startLine": 2,
|
||||
"startColumn": 4,
|
||||
"startOffset": 55,
|
||||
"endLine": 4,
|
||||
"endColumn": 12,
|
||||
"endOffset": 187
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values-v9\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 7,
|
||||
"startColumn": 4,
|
||||
"startOffset": 183,
|
||||
"endLine": 9,
|
||||
"endColumn": 12,
|
||||
"endOffset": 317
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 5,
|
||||
"startColumn": 4,
|
||||
"startOffset": 192,
|
||||
"endColumn": 94,
|
||||
"endOffset": 282
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values-v9\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 13,
|
||||
"startColumn": 4,
|
||||
"startOffset": 432,
|
||||
"endColumn": 95,
|
||||
"endOffset": 523
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 6,
|
||||
"startColumn": 4,
|
||||
"startOffset": 287,
|
||||
"endColumn": 98,
|
||||
"endOffset": 381
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values-v9\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 11,
|
||||
"startColumn": 4,
|
||||
"startOffset": 329,
|
||||
"endColumn": 99,
|
||||
"endOffset": 424
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,207 @@
|
||||
[
|
||||
{
|
||||
"outputFile": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\values\\values.xml",
|
||||
"map": [
|
||||
{
|
||||
"to": {
|
||||
"startLine": 2,
|
||||
"startColumn": 4,
|
||||
"startOffset": 55,
|
||||
"endColumn": 57,
|
||||
"endOffset": 108
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values\\dimens.xml",
|
||||
"position": {
|
||||
"startLine": 3,
|
||||
"startColumn": 4,
|
||||
"startOffset": 92,
|
||||
"endColumn": 57,
|
||||
"endOffset": 145
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 3,
|
||||
"startColumn": 4,
|
||||
"startOffset": 113,
|
||||
"endColumn": 55,
|
||||
"endOffset": 164
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values\\dimens.xml",
|
||||
"position": {
|
||||
"startLine": 4,
|
||||
"startColumn": 4,
|
||||
"startOffset": 151,
|
||||
"endColumn": 55,
|
||||
"endOffset": 202
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 4,
|
||||
"startColumn": 4,
|
||||
"startOffset": 169,
|
||||
"endColumn": 52,
|
||||
"endOffset": 217
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values\\strings.xml",
|
||||
"position": {
|
||||
"startLine": 4,
|
||||
"startColumn": 4,
|
||||
"startOffset": 110,
|
||||
"endColumn": 52,
|
||||
"endOffset": 158
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 5,
|
||||
"startColumn": 4,
|
||||
"startOffset": 222,
|
||||
"endColumn": 50,
|
||||
"endOffset": 268
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values\\strings.xml",
|
||||
"position": {
|
||||
"startLine": 3,
|
||||
"startColumn": 4,
|
||||
"startOffset": 58,
|
||||
"endColumn": 50,
|
||||
"endOffset": 104
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 6,
|
||||
"startColumn": 4,
|
||||
"startOffset": 273,
|
||||
"endColumn": 52,
|
||||
"endOffset": 321
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values\\strings.xml",
|
||||
"position": {
|
||||
"startLine": 5,
|
||||
"startColumn": 4,
|
||||
"startOffset": 164,
|
||||
"endColumn": 52,
|
||||
"endOffset": 212
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 7,
|
||||
"startColumn": 4,
|
||||
"startOffset": 326,
|
||||
"endLine": 16,
|
||||
"endColumn": 12,
|
||||
"endOffset": 615
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 9,
|
||||
"startColumn": 4,
|
||||
"startOffset": 194,
|
||||
"endLine": 18,
|
||||
"endColumn": 12,
|
||||
"endOffset": 487
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 17,
|
||||
"startColumn": 4,
|
||||
"startOffset": 620,
|
||||
"endLine": 19,
|
||||
"endColumn": 12,
|
||||
"endOffset": 775
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 21,
|
||||
"startColumn": 4,
|
||||
"startOffset": 528,
|
||||
"endLine": 23,
|
||||
"endColumn": 12,
|
||||
"endOffset": 685
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 20,
|
||||
"startColumn": 4,
|
||||
"startOffset": 780,
|
||||
"endLine": 22,
|
||||
"endColumn": 12,
|
||||
"endOffset": 904
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 25,
|
||||
"startColumn": 4,
|
||||
"startOffset": 693,
|
||||
"endLine": 27,
|
||||
"endColumn": 12,
|
||||
"endOffset": 819
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 23,
|
||||
"startColumn": 4,
|
||||
"startOffset": 909,
|
||||
"endLine": 26,
|
||||
"endColumn": 12,
|
||||
"endOffset": 1082
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 29,
|
||||
"startColumn": 4,
|
||||
"startOffset": 827,
|
||||
"endLine": 32,
|
||||
"endColumn": 12,
|
||||
"endOffset": 1003
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": {
|
||||
"startLine": 27,
|
||||
"startColumn": 4,
|
||||
"startOffset": 1087,
|
||||
"endLine": 32,
|
||||
"endColumn": 12,
|
||||
"endOffset": 1392
|
||||
},
|
||||
"from": {
|
||||
"file": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\values\\styles.xml",
|
||||
"position": {
|
||||
"startLine": 34,
|
||||
"startColumn": 4,
|
||||
"startOffset": 1011,
|
||||
"endLine": 39,
|
||||
"endColumn": 12,
|
||||
"endOffset": 1321
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\drawable-hdpi-v4\\btn_pause.png",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\drawable-hdpi\\btn_pause.png"
|
||||
},
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\drawable-hdpi-v4\\btn_prev.png",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\drawable-hdpi\\btn_prev.png"
|
||||
},
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\drawable-hdpi-v4\\btn_next.png",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\drawable-hdpi\\btn_next.png"
|
||||
},
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\drawable-hdpi-v4\\ic_launcher.png",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\drawable-hdpi\\ic_launcher.png"
|
||||
},
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\drawable-hdpi-v4\\btn_play.png",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\drawable-hdpi\\btn_play.png"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\drawable-mdpi-v4\\ic_launcher.png",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\drawable-mdpi\\ic_launcher.png"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\drawable-xhdpi-v4\\sing_icon.jpg",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\drawable-xhdpi\\sing_icon.jpg"
|
||||
},
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\drawable-xhdpi-v4\\ic_launcher.png",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\drawable-xhdpi\\ic_launcher.png"
|
||||
},
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\drawable-xhdpi-v4\\icon.png",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\drawable-xhdpi\\icon.png"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\drawable-xxhdpi-v4\\ic_launcher.png",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\drawable-xxhdpi\\ic_launcher.png"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,26 @@
|
||||
[
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\layout\\main.xml",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\layout\\main.xml"
|
||||
},
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\layout\\view_custom.xml",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\layout\\view_custom.xml"
|
||||
},
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\layout\\view_custom_progress.xml",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\layout\\view_custom_progress.xml"
|
||||
},
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\layout\\view_custom_button.xml",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\layout\\view_custom_button.xml"
|
||||
},
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\layout\\custom.xml",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\layout\\custom.xml"
|
||||
},
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\layout\\progress.xml",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\layout\\progress.xml"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"merged": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\build\\intermediates\\res\\merged\\debug\\menu\\main.xml",
|
||||
"source": "E:\\kejiang\\AndroidStudioProjects\\Notification\\notifications通知栏学习\\src\\main\\res\\menu\\main.xml"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
incremental task execution
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\androidTest\assets"/><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\build\generated\assets\shaders\androidTest\debug"/></dataSet></merger>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main$Generated" generated="true"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\androidTest\res"/><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\build\generated\res\rs\androidTest\debug"/><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\build\generated\res\resValues\androidTest\debug"/></dataSet><dataSet config="main" generated-set="main$Generated"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\androidTest\res"/><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\build\generated\res\rs\androidTest\debug"/><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\build\generated\res\resValues\androidTest\debug"/></dataSet><mergedItems/></merger>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\androidTest\shaders"/></dataSet></merger>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\assets"><file name="cs.apk" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\assets\cs.apk"/></source><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\build\generated\assets\shaders\debug"/></dataSet><dataSet config="debug"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\debug\assets"/></dataSet></merger>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\jniLibs"/></dataSet><dataSet config="debug"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\debug\jniLibs"/></dataSet></merger>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main$Generated" generated="true"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res"/><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\build\generated\res\rs\debug"/><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\build\generated\res\resValues\debug"/></dataSet><dataSet config="debug$Generated" generated="true"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\debug\res"/></dataSet><dataSet config="main" generated-set="main$Generated"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res"><file name="btn_next" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\drawable-hdpi\btn_next.png" qualifiers="hdpi-v4" type="drawable"/><file name="btn_pause" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\drawable-hdpi\btn_pause.png" qualifiers="hdpi-v4" type="drawable"/><file name="btn_play" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\drawable-hdpi\btn_play.png" qualifiers="hdpi-v4" type="drawable"/><file name="btn_prev" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\drawable-hdpi\btn_prev.png" qualifiers="hdpi-v4" type="drawable"/><file name="ic_launcher" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\drawable-hdpi\ic_launcher.png" qualifiers="hdpi-v4" type="drawable"/><file name="ic_launcher" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\drawable-mdpi\ic_launcher.png" qualifiers="mdpi-v4" type="drawable"/><file name="icon" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\drawable-xhdpi\icon.png" qualifiers="xhdpi-v4" type="drawable"/><file name="ic_launcher" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\drawable-xhdpi\ic_launcher.png" qualifiers="xhdpi-v4" type="drawable"/><file name="sing_icon" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\drawable-xhdpi\sing_icon.jpg" qualifiers="xhdpi-v4" type="drawable"/><file name="ic_launcher" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\drawable-xxhdpi\ic_launcher.png" qualifiers="xxhdpi-v4" type="drawable"/><file name="custom" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\layout\custom.xml" qualifiers="" type="layout"/><file name="main" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\layout\main.xml" qualifiers="" type="layout"/><file name="progress" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\layout\progress.xml" qualifiers="" type="layout"/><file name="view_custom" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\layout\view_custom.xml" qualifiers="" type="layout"/><file name="view_custom_button" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\layout\view_custom_button.xml" qualifiers="" type="layout"/><file name="view_custom_progress" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\layout\view_custom_progress.xml" qualifiers="" type="layout"/><file name="main" path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\menu\main.xml" qualifiers="" type="menu"/><file path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\values\dimens.xml" qualifiers=""><dimen name="activity_horizontal_margin">16dp</dimen><dimen name="activity_vertical_margin">16dp</dimen></file><file path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\values\strings.xml" qualifiers=""><string name="action_settings">Settings</string><string name="app_name">Notifications</string><string name="hello_world">Hello world!</string></file><file path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\values\styles.xml" qualifiers=""><style name="NotificationContent">
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
</style><style name="AppBaseTheme" parent="android:Theme.Light">
|
||||
<!--
|
||||
Theme customizations available in newer API levels can go in
|
||||
res/values-vXX/styles.xml, while customizations related to
|
||||
backward-compatibility can go here.
|
||||
|
||||
|
||||
|
||||
-->
|
||||
</style><style name="btn_custom_style">
|
||||
<item name="android:layout_width">48dip</item>
|
||||
<item name="android:layout_height">48dip</item>
|
||||
<item name="android:layout_gravity">center|right</item>
|
||||
<item name="android:background">?android:listChoiceBackgroundIndicator</item>
|
||||
</style><style name="NotificationTitle">
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style><style name="AppTheme" parent="AppBaseTheme">
|
||||
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
|
||||
</style></file><file path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\values-sw720dp-land\dimens.xml" qualifiers="sw720dp-land-v13"><dimen name="activity_horizontal_margin">128dp</dimen></file><file path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\values-v11\styles.xml" qualifiers="v11"><style name="NotificationTitle" parent="android:TextAppearance.StatusBar.EventContent.Title"/><style name="NotificationContent" parent="android:TextAppearance.StatusBar.EventContent"/><style name="AppBaseTheme" parent="android:Theme.Holo.Light">
|
||||
<!-- API 11 theme customizations can go here. -->
|
||||
</style></file><file path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\values-v14\styles.xml" qualifiers="v14"><style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
|
||||
<!-- API 14 theme customizations can go here. -->
|
||||
</style></file><file path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\res\values-v9\styles.xml" qualifiers="v9"><style name="NotificationTitle" parent="android:TextAppearance.StatusBar.EventContent.Title"/><style name="NotificationContent" parent="android:TextAppearance.StatusBar.EventContent"/><style name="AppBaseTheme" parent="android:Theme.Holo.Light">
|
||||
<!-- API 11 theme customizations can go here. -->
|
||||
</style></file></source><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\build\generated\res\rs\debug"/><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\build\generated\res\resValues\debug"/></dataSet><dataSet config="debug" generated-set="debug$Generated"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\debug\res"/></dataSet><mergedItems/></merger>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\main\shaders"/></dataSet><dataSet config="debug"><source path="E:\kejiang\AndroidStudioProjects\Notification\notifications通知栏学习\src\debug\shaders"/></dataSet></merger>
|
||||
@@ -0,0 +1 @@
|
||||
RUN
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.example.notifications.test">
|
||||
|
||||
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="18" />
|
||||
|
||||
<application>
|
||||
<uses-library android:name="android.test.runner" />
|
||||
</application>
|
||||
|
||||
<instrumentation android:name="android.test.InstrumentationTestRunner"
|
||||
android:targetPackage="com.example.notifications"
|
||||
android:handleProfiling="false"
|
||||
android:functionalTest="false"
|
||||
android:label="Tests for com.example.notifications"/>
|
||||
</manifest>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.example.notifications"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="7"
|
||||
android:targetSdkVersion="18" />
|
||||
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme" >
|
||||
<activity
|
||||
android:name="com.example.notifications.MainActivity"
|
||||
android:label="@string/app_name" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name="com.example.notifications.CustomActivity" />
|
||||
<activity android:name="com.example.notifications.ProgressAcitivty" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
After Width: | Height: | Size: 629 B |
|
After Width: | Height: | Size: 229 B |
|
After Width: | Height: | Size: 493 B |
|
After Width: | Height: | Size: 635 B |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 9.1 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dip" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_show_custom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="显示自定义通知栏" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_show_custom_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="显示带按钮自定义 通知栏" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="注意:通知栏按钮只适合3.0及以上版本" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,68 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dip" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_show"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="显示通知栏" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_bigstyle_show"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="显示大视图风格通知栏(4.1以上才生效)" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_show_cz"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="显示常驻通知栏" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_show_intent_act"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="显示通知,点击跳转到指定Activity" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_show_intent_apk"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="显示通知,点击打开APK" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_clear"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="清除指定通知" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_clear_all"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="清除所有通知" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_show_custom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dip"
|
||||
android:text="显示自定义通知栏" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_show_progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="显示带进度条通知栏" />
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dip" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_show_progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="显示带默认样式进度条通知栏" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_show_un_progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="显示带(不确定)默认样式进度条通知栏" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_show_custom_progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="显示自定义 带进度条的通知栏" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_download_start"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="40dip"
|
||||
android:text="开始下载" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_download_pause"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="暂停下载" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_download_cancel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="取消下载进度" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/custom_icon"
|
||||
android:layout_width="50dip"
|
||||
android:layout_height="50dip"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_margin="5dip"
|
||||
android:padding="5dip"
|
||||
android:src="@drawable/icon" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toRightOf="@id/custom_icon"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_custom_title"
|
||||
style="@style/NotificationTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="title"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_custom_time"
|
||||
style="@style/NotificationTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="16.49"
|
||||
android:textSize="12sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_custom_content"
|
||||
style="@style/NotificationContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dip"
|
||||
android:text="content"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/custom_song_icon"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="64dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/sing_icon" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_custom_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="5dip"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_custom_prev"
|
||||
style="@style/btn_custom_style"
|
||||
android:src="@drawable/btn_prev" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_custom_play"
|
||||
style="@style/btn_custom_style"
|
||||
android:contentDescription="播放"
|
||||
android:src="@drawable/btn_play" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_custom_next"
|
||||
style="@style/btn_custom_style"
|
||||
android:contentDescription="下一首"
|
||||
android:src="@drawable/btn_next" />
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginBottom="5dip"
|
||||
android:layout_marginLeft="5dip"
|
||||
android:layout_marginTop="5dip"
|
||||
android:layout_toLeftOf="@id/ll_custom_button"
|
||||
android:layout_toRightOf="@id/custom_song_icon"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_custom_song_singer"
|
||||
style="@style/NotificationTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:text="title"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_custom_song_name"
|
||||
style="@style/NotificationContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:text="content"
|
||||
android:textSize="12sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/custom_progress_icon"
|
||||
android:layout_width="50dip"
|
||||
android:layout_height="50dip"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_margin="5dip"
|
||||
android:padding="5dip"
|
||||
android:src="@drawable/icon" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@id/custom_progress_icon" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_custom_progress_title"
|
||||
style="@style/NotificationTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:text="title"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_custom_progress_status"
|
||||
style="@style/NotificationContent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/tv_custom_progress_title"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:text=""
|
||||
android:textSize="12sp" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/custom_progressbar"
|
||||
style="@android:style/Widget.DeviceDefault.Light.ProgressBar.Horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/tv_custom_progress_status" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/action_settings"/>
|
||||
|
||||
</menu>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="activity_horizontal_margin">128dp</dimen>
|
||||
</resources>
|
||||