Created
June 26, 2015 04:28
-
-
Save hemlock510/4d566f8261cb191dc28d to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<module external.linked.project.id=":Application" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="FloatingActionButtonBasic" external.system.module.version="unspecified" type="JAVA_MODULE" version="4"> | |
<component name="FacetManager"> | |
<facet type="android-gradle" name="Android-Gradle"> | |
<configuration> | |
<option name="GRADLE_PROJECT_PATH" value=":Application" /> | |
</configuration> | |
</facet> | |
<facet type="android" name="Android"> | |
<configuration> | |
<option name="SELECTED_BUILD_VARIANT" value="debug" /> | |
<option name="SELECTED_TEST_ARTIFACT" value="_android_test_" /> | |
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" /> | |
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" /> | |
<option name="SOURCE_GEN_TASK_NAME" value="generateDebugSources" /> | |
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugAndroidTest" /> | |
<option name="COMPILE_JAVA_TEST_TASK_NAME" value="compileDebugAndroidTestSources" /> | |
<option name="TEST_SOURCE_GEN_TASK_NAME" value="generateDebugAndroidTestSources" /> | |
<option name="ALLOW_USER_CONFIGURATION" value="false" /> | |
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" /> | |
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" /> | |
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" /> | |
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" /> | |
</configuration> | |
</facet> | |
</component> | |
<component name="NewModuleRootManager" inherit-compiler-output="false"> | |
<output url="file://$MODULE_DIR$/build/intermediates/classes/debug" /> | |
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/androidTest/debug" /> | |
<exclude-output /> | |
<content url="file://$MODULE_DIR$"> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/debug" type="java-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/androidTest/debug" type="java-test-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/common/res" type="java-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/template/res" type="java-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/common/java" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/template/java" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/tests/res" type="java-test-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/tests/resources" type="java-test-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/tests/assets" type="java-test-resource" /> | |
<sourceFolder url="file://$MODULE_DIR$/tests/aidl" isTestSource="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/tests/src" isTestSource="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/tests/jni" isTestSource="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/tests/rs" isTestSource="true" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/coverage-instrumented-classes" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/libs" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/ndk" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/proguard" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/outputs" /> | |
<excludeFolder url="file://$MODULE_DIR$/build/tmp" /> | |
</content> | |
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
<orderEntry type="library" exported="" name="support-v13-21.0.2" level="project" /> | |
<orderEntry type="library" exported="" name="support-annotations-21.0.2" level="project" /> | |
<orderEntry type="library" exported="" name="support-v4-21.0.2" level="project" /> | |
<orderEntry type="library" exported="" name="cardview-v7-21.0.2" level="project" /> | |
</component> | |
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:1.1.0' | |
} | |
} | |
apply plugin: 'com.android.application' | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
compile "com.android.support:support-v4:21.0.2" | |
compile "com.android.support:support-v13:21.0.2" | |
compile "com.android.support:cardview-v7:21.0.2" | |
} | |
// The sample build uses multiple directories to | |
// keep boilerplate and common code separate from | |
// the main sample code. | |
List<String> dirs = [ | |
'main', // main sample code; look here for the interesting stuff. | |
'common', // components that are reused by multiple samples | |
'template'] // boilerplate code that is generated by the sample template process | |
android { | |
compileSdkVersion 21 | |
buildToolsVersion "22.0.1" | |
defaultConfig { | |
minSdkVersion 21 | |
targetSdkVersion 21 | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_7 | |
targetCompatibility JavaVersion.VERSION_1_7 | |
} | |
sourceSets { | |
main { | |
dirs.each { dir -> | |
java.srcDirs "src/${dir}/java" | |
res.srcDirs "src/${dir}/res" | |
} | |
} | |
androidTest.setRoot('tests') | |
androidTest.java.srcDirs = ['tests/src'] | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 android.support.v7.cardview; | |
public final class R { | |
public static final class attr { | |
public static final int cardBackgroundColor = 0x7f010000; | |
public static final int cardCornerRadius = 0x7f010001; | |
public static final int cardElevation = 0x7f010002; | |
public static final int cardMaxElevation = 0x7f010003; | |
public static final int cardPreventCornerOverlap = 0x7f010005; | |
public static final int cardUseCompatPadding = 0x7f010004; | |
public static final int contentPadding = 0x7f010006; | |
public static final int contentPaddingBottom = 0x7f01000a; | |
public static final int contentPaddingLeft = 0x7f010007; | |
public static final int contentPaddingRight = 0x7f010008; | |
public static final int contentPaddingTop = 0x7f010009; | |
} | |
public static final class color { | |
public static final int cardview_dark_background = 0x7f050000; | |
public static final int cardview_light_background = 0x7f050001; | |
public static final int cardview_shadow_end_color = 0x7f050002; | |
public static final int cardview_shadow_start_color = 0x7f050003; | |
} | |
public static final class dimen { | |
public static final int cardview_compat_inset_shadow = 0x7f060000; | |
public static final int cardview_default_elevation = 0x7f060001; | |
public static final int cardview_default_radius = 0x7f060002; | |
} | |
public static final class style { | |
public static final int CardView = 0x7f080001; | |
public static final int CardView_Dark = 0x7f080002; | |
public static final int CardView_Light = 0x7f080003; | |
} | |
public static final class styleable { | |
public static final int[] CardView = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a }; | |
public static final int CardView_cardBackgroundColor = 0; | |
public static final int CardView_cardCornerRadius = 1; | |
public static final int CardView_cardElevation = 2; | |
public static final int CardView_cardMaxElevation = 3; | |
public static final int CardView_cardPreventCornerOverlap = 5; | |
public static final int CardView_cardUseCompatPadding = 4; | |
public static final int CardView_contentPadding = 6; | |
public static final int CardView_contentPaddingBottom = 10; | |
public static final int CardView_contentPaddingLeft = 7; | |
public static final int CardView_contentPaddingRight = 8; | |
public static final int CardView_contentPaddingTop = 9; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package android.support.v7.cardview; | |
public final class R$attr { | |
public static final int cardBackgroundColor = 2130771968; | |
public static final int cardCornerRadius = 2130771969; | |
public static final int cardElevation = 2130771970; | |
public static final int cardMaxElevation = 2130771971; | |
public static final int cardPreventCornerOverlap = 2130771973; | |
public static final int cardUseCompatPadding = 2130771972; | |
public static final int contentPadding = 2130771974; | |
public static final int contentPaddingBottom = 2130771978; | |
public static final int contentPaddingLeft = 2130771975; | |
public static final int contentPaddingRight = 2130771976; | |
public static final int contentPaddingTop = 2130771977; | |
public R$attr() { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package android.support.v7.cardview; | |
public final class R$color { | |
public static final int cardview_dark_background = 2131034112; | |
public static final int cardview_light_background = 2131034113; | |
public static final int cardview_shadow_end_color = 2131034114; | |
public static final int cardview_shadow_start_color = 2131034115; | |
public R$color() { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package android.support.v7.cardview; | |
public final class R$dimen { | |
public static final int cardview_compat_inset_shadow = 2131099648; | |
public static final int cardview_default_elevation = 2131099649; | |
public static final int cardview_default_radius = 2131099650; | |
public R$dimen() { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package android.support.v7.cardview; | |
public final class R$style { | |
public static final int CardView = 2131230721; | |
public static final int CardView_Dark = 2131230722; | |
public static final int CardView_Light = 2131230723; | |
public R$style() { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package android.support.v7.cardview; | |
public final class R$styleable { | |
public static final int[] CardView = new int[]{2130771968, 2130771969, 2130771970, 2130771971, 2130771972, 2130771973, 2130771974, 2130771975, 2130771976, 2130771977, 2130771978}; | |
public static final int CardView_cardBackgroundColor = 0; | |
public static final int CardView_cardCornerRadius = 1; | |
public static final int CardView_cardElevation = 2; | |
public static final int CardView_cardMaxElevation = 3; | |
public static final int CardView_cardPreventCornerOverlap = 5; | |
public static final int CardView_cardUseCompatPadding = 4; | |
public static final int CardView_contentPadding = 6; | |
public static final int CardView_contentPaddingBottom = 10; | |
public static final int CardView_contentPaddingLeft = 7; | |
public static final int CardView_contentPaddingRight = 8; | |
public static final int CardView_contentPaddingTop = 9; | |
public R$styleable() { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package android.support.v7.cardview; | |
public final class R { | |
public R() { | |
} | |
public static final class styleable { | |
public static final int[] CardView = new int[]{2130771968, 2130771969, 2130771970, 2130771971, 2130771972, 2130771973, 2130771974, 2130771975, 2130771976, 2130771977, 2130771978}; | |
public static final int CardView_cardBackgroundColor = 0; | |
public static final int CardView_cardCornerRadius = 1; | |
public static final int CardView_cardElevation = 2; | |
public static final int CardView_cardMaxElevation = 3; | |
public static final int CardView_cardPreventCornerOverlap = 5; | |
public static final int CardView_cardUseCompatPadding = 4; | |
public static final int CardView_contentPadding = 6; | |
public static final int CardView_contentPaddingBottom = 10; | |
public static final int CardView_contentPaddingLeft = 7; | |
public static final int CardView_contentPaddingRight = 8; | |
public static final int CardView_contentPaddingTop = 9; | |
public styleable() { | |
} | |
} | |
public static final class style { | |
public static final int CardView = 2131230721; | |
public static final int CardView_Dark = 2131230722; | |
public static final int CardView_Light = 2131230723; | |
public style() { | |
} | |
} | |
public static final class dimen { | |
public static final int cardview_compat_inset_shadow = 2131099648; | |
public static final int cardview_default_elevation = 2131099649; | |
public static final int cardview_default_radius = 2131099650; | |
public dimen() { | |
} | |
} | |
public static final class color { | |
public static final int cardview_dark_background = 2131034112; | |
public static final int cardview_light_background = 2131034113; | |
public static final int cardview_shadow_end_color = 2131034114; | |
public static final int cardview_shadow_start_color = 2131034115; | |
public color() { | |
} | |
} | |
public static final class attr { | |
public static final int cardBackgroundColor = 2130771968; | |
public static final int cardCornerRadius = 2130771969; | |
public static final int cardElevation = 2130771970; | |
public static final int cardMaxElevation = 2130771971; | |
public static final int cardPreventCornerOverlap = 2130771973; | |
public static final int cardUseCompatPadding = 2130771972; | |
public static final int contentPadding = 2130771974; | |
public static final int contentPaddingBottom = 2130771978; | |
public static final int contentPaddingLeft = 2130771975; | |
public static final int contentPaddingRight = 2130771976; | |
public static final int contentPaddingTop = 2130771977; | |
public attr() { | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.example.android.common.activities; | |
import android.os.Bundle; | |
import android.support.v4.app.FragmentActivity; | |
import com.example.android.common.logger.Log; | |
import com.example.android.common.logger.LogWrapper; | |
public class SampleActivityBase extends FragmentActivity { | |
public static final String TAG = "SampleActivityBase"; | |
public SampleActivityBase() { | |
} | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
} | |
protected void onStart() { | |
super.onStart(); | |
this.initializeLogging(); | |
} | |
public void initializeLogging() { | |
LogWrapper logWrapper = new LogWrapper(); | |
Log.setLogNode(logWrapper); | |
Log.i("SampleActivityBase", "Ready"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.example.android.common.logger; | |
import com.example.android.common.logger.LogNode; | |
public class Log { | |
public static final int NONE = -1; | |
public static final int VERBOSE = 2; | |
public static final int DEBUG = 3; | |
public static final int INFO = 4; | |
public static final int WARN = 5; | |
public static final int ERROR = 6; | |
public static final int ASSERT = 7; | |
private static LogNode mLogNode; | |
public Log() { | |
} | |
public static LogNode getLogNode() { | |
return mLogNode; | |
} | |
public static void setLogNode(LogNode node) { | |
mLogNode = node; | |
} | |
public static void println(int priority, String tag, String msg, Throwable tr) { | |
if(mLogNode != null) { | |
mLogNode.println(priority, tag, msg, tr); | |
} | |
} | |
public static void println(int priority, String tag, String msg) { | |
println(priority, tag, msg, (Throwable)null); | |
} | |
public static void v(String tag, String msg, Throwable tr) { | |
println(2, tag, msg, tr); | |
} | |
public static void v(String tag, String msg) { | |
v(tag, msg, (Throwable)null); | |
} | |
public static void d(String tag, String msg, Throwable tr) { | |
println(3, tag, msg, tr); | |
} | |
public static void d(String tag, String msg) { | |
d(tag, msg, (Throwable)null); | |
} | |
public static void i(String tag, String msg, Throwable tr) { | |
println(4, tag, msg, tr); | |
} | |
public static void i(String tag, String msg) { | |
i(tag, msg, (Throwable)null); | |
} | |
public static void w(String tag, String msg, Throwable tr) { | |
println(5, tag, msg, tr); | |
} | |
public static void w(String tag, String msg) { | |
w(tag, msg, (Throwable)null); | |
} | |
public static void w(String tag, Throwable tr) { | |
w(tag, (String)null, tr); | |
} | |
public static void e(String tag, String msg, Throwable tr) { | |
println(6, tag, msg, tr); | |
} | |
public static void e(String tag, String msg) { | |
e(tag, msg, (Throwable)null); | |
} | |
public static void wtf(String tag, String msg, Throwable tr) { | |
println(7, tag, msg, tr); | |
} | |
public static void wtf(String tag, String msg) { | |
wtf(tag, msg, (Throwable)null); | |
} | |
public static void wtf(String tag, Throwable tr) { | |
wtf(tag, (String)null, tr); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.example.android.common.logger; | |
import android.text.Editable; | |
import android.text.TextWatcher; | |
import com.example.android.common.logger.LogFragment; | |
class LogFragment$1 implements TextWatcher { | |
LogFragment$1(LogFragment var1) { | |
this.this$0 = var1; | |
} | |
public void beforeTextChanged(CharSequence s, int start, int count, int after) { | |
} | |
public void onTextChanged(CharSequence s, int start, int before, int count) { | |
} | |
public void afterTextChanged(Editable s) { | |
LogFragment.access$000(this.this$0).fullScroll(130); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.example.android.common.logger; | |
import android.graphics.Typeface; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.text.Editable; | |
import android.text.TextWatcher; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.ViewGroup.LayoutParams; | |
import android.widget.ScrollView; | |
import com.example.android.common.logger.LogView; | |
public class LogFragment extends Fragment { | |
private LogView mLogView; | |
private ScrollView mScrollView; | |
public LogFragment() { | |
} | |
public View inflateViews() { | |
this.mScrollView = new ScrollView(this.getActivity()); | |
LayoutParams scrollParams = new LayoutParams(-1, -1); | |
this.mScrollView.setLayoutParams(scrollParams); | |
this.mLogView = new LogView(this.getActivity()); | |
LayoutParams logParams = new LayoutParams(scrollParams); | |
logParams.height = -2; | |
this.mLogView.setLayoutParams(logParams); | |
this.mLogView.setClickable(true); | |
this.mLogView.setFocusable(true); | |
this.mLogView.setTypeface(Typeface.MONOSPACE); | |
byte paddingDips = 16; | |
double scale = (double)this.getResources().getDisplayMetrics().density; | |
int paddingPixels = (int)((double)paddingDips * scale + 0.5D); | |
this.mLogView.setPadding(paddingPixels, paddingPixels, paddingPixels, paddingPixels); | |
this.mLogView.setCompoundDrawablePadding(paddingPixels); | |
this.mLogView.setGravity(80); | |
this.mLogView.setTextAppearance(this.getActivity(), 16974079); | |
this.mScrollView.addView(this.mLogView); | |
return this.mScrollView; | |
} | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
View result = this.inflateViews(); | |
this.mLogView.addTextChangedListener(new TextWatcher() { | |
public void beforeTextChanged(CharSequence s, int start, int count, int after) { | |
} | |
public void onTextChanged(CharSequence s, int start, int before, int count) { | |
} | |
public void afterTextChanged(Editable s) { | |
LogFragment.this.mScrollView.fullScroll(130); | |
} | |
}); | |
return result; | |
} | |
public LogView getLogView() { | |
return this.mLogView; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.example.android.common.logger; | |
public interface LogNode { | |
void println(int var1, String var2, String var3, Throwable var4); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.example.android.common.logger; | |
import com.example.android.common.logger.LogView; | |
class LogView$1 implements Runnable { | |
LogView$1(LogView var1, StringBuilder var2) { | |
this.this$0 = var1; | |
this.val$outputBuilder = var2; | |
} | |
public void run() { | |
this.this$0.appendToLog(this.val$outputBuilder.toString()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.example.android.common.logger; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.widget.TextView; | |
import com.example.android.common.logger.LogNode; | |
public class LogView extends TextView implements LogNode { | |
LogNode mNext; | |
public LogView(Context context) { | |
super(context); | |
} | |
public LogView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} | |
public LogView(Context context, AttributeSet attrs, int defStyle) { | |
super(context, attrs, defStyle); | |
} | |
public void println(int priority, String tag, String msg, Throwable tr) { | |
String priorityStr = null; | |
switch(priority) { | |
case 2: | |
priorityStr = "VERBOSE"; | |
break; | |
case 3: | |
priorityStr = "DEBUG"; | |
break; | |
case 4: | |
priorityStr = "INFO"; | |
break; | |
case 5: | |
priorityStr = "WARN"; | |
break; | |
case 6: | |
priorityStr = "ERROR"; | |
break; | |
case 7: | |
priorityStr = "ASSERT"; | |
} | |
String exceptionStr = null; | |
if(tr != null) { | |
exceptionStr = Log.getStackTraceString(tr); | |
} | |
final StringBuilder outputBuilder = new StringBuilder(); | |
String delimiter = "\t"; | |
this.appendIfNotNull(outputBuilder, priorityStr, delimiter); | |
this.appendIfNotNull(outputBuilder, tag, delimiter); | |
this.appendIfNotNull(outputBuilder, msg, delimiter); | |
this.appendIfNotNull(outputBuilder, exceptionStr, delimiter); | |
((Activity)this.getContext()).runOnUiThread(new Thread(new Runnable() { | |
public void run() { | |
LogView.this.appendToLog(outputBuilder.toString()); | |
} | |
})); | |
if(this.mNext != null) { | |
this.mNext.println(priority, tag, msg, tr); | |
} | |
} | |
public LogNode getNext() { | |
return this.mNext; | |
} | |
public void setNext(LogNode node) { | |
this.mNext = node; | |
} | |
private StringBuilder appendIfNotNull(StringBuilder source, String addStr, String delimiter) { | |
if(addStr != null) { | |
if(addStr.length() == 0) { | |
delimiter = ""; | |
} | |
return source.append(addStr).append(delimiter); | |
} else { | |
return source; | |
} | |
} | |
public void appendToLog(String s) { | |
this.append("\n" + s); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.example.android.common.logger; | |
import android.util.Log; | |
import com.example.android.common.logger.LogNode; | |
public class LogWrapper implements LogNode { | |
private LogNode mNext; | |
public LogWrapper() { | |
} | |
public LogNode getNext() { | |
return this.mNext; | |
} | |
public void setNext(LogNode node) { | |
this.mNext = node; | |
} | |
public void println(int priority, String tag, String msg, Throwable tr) { | |
String useMsg = msg; | |
if(msg == null) { | |
useMsg = ""; | |
} | |
if(tr != null) { | |
msg = msg + "\n" + Log.getStackTraceString(tr); | |
} | |
Log.println(priority, tag, useMsg); | |
if(this.mNext != null) { | |
this.mNext.println(priority, tag, msg, tr); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.example.android.common.logger; | |
import com.example.android.common.logger.LogNode; | |
public class MessageOnlyLogFilter implements LogNode { | |
LogNode mNext; | |
public MessageOnlyLogFilter(LogNode next) { | |
this.mNext = next; | |
} | |
public MessageOnlyLogFilter() { | |
} | |
public void println(int priority, String tag, String msg, Throwable tr) { | |
if(this.mNext != null) { | |
this.getNext().println(-1, (String)null, msg, (Throwable)null); | |
} | |
} | |
public LogNode getNext() { | |
return this.mNext; | |
} | |
public void setNext(LogNode node) { | |
this.mNext = node; | |
} | |
} |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dex | |
035 d�û½=®êlpaƒ£¢“ýg3‚$´=ê³<É p xV4 P @# p 1 p� ò 4¢ % Œõ <! ´> g ”H ì¿ P `æ | |