Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: newer-android/EverExample
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: halzhang/EverExample
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on May 27, 2016

  1. 安德顿、

    halzhang committed May 27, 2016
    Copy the full SHA
    5963742 View commit details
  2. Revert "安德顿、"

    This reverts commit 5963742.
    halzhang committed May 27, 2016
    Copy the full SHA
    8bd1579 View commit details
  3. Revert "Revert "安德顿、""

    This reverts commit 8bd1579.
    halzhang committed May 27, 2016
    Copy the full SHA
    79e37ef View commit details
  4. add dagger2example

    halzhang committed May 27, 2016
    Copy the full SHA
    19b750b View commit details

Commits on May 29, 2016

  1. 完善 dagger2 demo

    完善 dagger2 demo,深入理解 dagger2,实现一个简单的登陆 demo
    halzhang committed May 29, 2016
    Copy the full SHA
    d61c7ed View commit details
  2. fix

    halzhang committed May 29, 2016
    Copy the full SHA
    8214f72 View commit details

Commits on Jul 28, 2016

  1. GreenDao3 example

    halzhang committed Jul 28, 2016
    Copy the full SHA
    0246a81 View commit details

Commits on Nov 8, 2016

  1. Copy the full SHA
    b95d37c View commit details
  2. add reveal animation

    halzhang committed Nov 8, 2016
    Copy the full SHA
    0ad6dfa View commit details

Commits on Nov 17, 2016

  1. add lock screen example

    halzhang committed Nov 17, 2016
    Copy the full SHA
    abac6f3 View commit details
  2. add files

    halzhang committed Nov 17, 2016
    Copy the full SHA
    66bb01d View commit details
  3. add comment

    halzhang committed Nov 17, 2016
    Copy the full SHA
    6b28ec3 View commit details

Commits on Dec 1, 2016

  1. Copy the full SHA
    24385f4 View commit details

Commits on Dec 15, 2016

  1. add accessibility example

    halzhang committed Dec 15, 2016
    Copy the full SHA
    c0d010b View commit details
  2. add some example

    halzhang committed Dec 15, 2016
    Copy the full SHA
    cc7585b View commit details
  3. update

    halzhang committed Dec 15, 2016
    Copy the full SHA
    e4b959b View commit details

Commits on Dec 22, 2016

  1. Copy the full SHA
    c12ebb6 View commit details

Commits on Dec 23, 2016

  1. 优化步奏控制

    halzhang committed Dec 23, 2016
    Copy the full SHA
    b2ccfa8 View commit details

Commits on Dec 26, 2016

  1. 优化

    halzhang committed Dec 26, 2016
    Copy the full SHA
    97d08d0 View commit details

Commits on Dec 28, 2016

  1. 增加配置

    halzhang committed Dec 28, 2016
    Copy the full SHA
    b9831cf View commit details

Commits on Jan 22, 2017

  1. update jniexample

    IDE:Android studio 2.2.3
    halzhang committed Jan 22, 2017
    Copy the full SHA
    8ea08cd View commit details

Commits on Jan 23, 2017

  1. update md

    halzhang committed Jan 23, 2017
    Copy the full SHA
    4a39882 View commit details

Commits on Sep 5, 2017

  1. arch and tinker

    halzhang committed Sep 5, 2017
    Copy the full SHA
    3dc43c8 View commit details

Commits on Oct 20, 2018

  1. Copy the full SHA
    26233b8 View commit details

Commits on Jun 27, 2019

  1. litho example

    zhanghanguo committed Jun 27, 2019
    Copy the full SHA
    e90d586 View commit details
Showing 435 changed files with 10,659 additions and 102 deletions.
9 changes: 9 additions & 0 deletions AccessibilityExample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild
1 change: 1 addition & 0 deletions AccessibilityExample/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
37 changes: 37 additions & 0 deletions AccessibilityExample/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.halzhang.android.examples.accessibilityexample"
minSdkVersion 18
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true;
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.android.support:design:25.1.0'
compile 'com.android.support:support-v4:25.1.0'
compile 'com.android.support:support-vector-drawable:25.1.0'
testCompile 'junit:junit:4.12'
}
17 changes: 17 additions & 0 deletions AccessibilityExample/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in D:\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 *;
#}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.halzhang.android.examples.accessibilityexample;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.halzhang.android.examples.accessibilityexample", appContext.getPackageName());
}
}
60 changes: 60 additions & 0 deletions AccessibilityExample/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.halzhang.android.examples.accessibilityexample"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.BIND_ACCESSIBILITY_SERVICE"/>

<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>
<!--
<service
android:name=".WechatAccessibilityService"
android:enabled="true"
android:exported="false"
android:label="@string/accessibility_mobile_wechat"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService"/>
</intent-filter>
<meta-data
android:name="android.accessibilityservice"
android:resource="@xml/accessibility_service_config"/>
</service>-->
<service
android:name=".QQAccessibilityService"
android:enabled="true"
android:exported="false"
android:label="@string/accessibility_mobile_qq"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService"/>
</intent-filter>

<meta-data
android:name="android.accessibilityservice"
android:resource="@xml/accessibility_service_config_qq"/>
</service>

<activity android:name=".QQServiceSettingsActivity">
</activity>
<activity android:name=".WeChatSettingActivity">
</activity>
<activity
android:name=".QQSettingsActivity"
android:label="@string/title_activity_qqsettings">
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
package com.halzhang.android.examples.accessibilityexample;

import android.content.res.Configuration;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatDelegate;
import android.support.v7.widget.Toolbar;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;

/**
* A {@link android.preference.PreferenceActivity} which implements and proxies the necessary calls
* to be used with AppCompat.
*/
public abstract class AppCompatPreferenceActivity extends PreferenceActivity {

private AppCompatDelegate mDelegate;

@Override
protected void onCreate(Bundle savedInstanceState) {
getDelegate().installViewFactory();
getDelegate().onCreate(savedInstanceState);
super.onCreate(savedInstanceState);
}

@Override
protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);
getDelegate().onPostCreate(savedInstanceState);
}

public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}

public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}

@Override
public MenuInflater getMenuInflater() {
return getDelegate().getMenuInflater();
}

@Override
public void setContentView(@LayoutRes int layoutResID) {
getDelegate().setContentView(layoutResID);
}

@Override
public void setContentView(View view) {
getDelegate().setContentView(view);
}

@Override
public void setContentView(View view, ViewGroup.LayoutParams params) {
getDelegate().setContentView(view, params);
}

@Override
public void addContentView(View view, ViewGroup.LayoutParams params) {
getDelegate().addContentView(view, params);
}

@Override
protected void onPostResume() {
super.onPostResume();
getDelegate().onPostResume();
}

@Override
protected void onTitleChanged(CharSequence title, int color) {
super.onTitleChanged(title, color);
getDelegate().setTitle(title);
}

@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
getDelegate().onConfigurationChanged(newConfig);
}

@Override
protected void onStop() {
super.onStop();
getDelegate().onStop();
}

@Override
protected void onDestroy() {
super.onDestroy();
getDelegate().onDestroy();
}

public void invalidateOptionsMenu() {
getDelegate().invalidateOptionsMenu();
}

private AppCompatDelegate getDelegate() {
if (mDelegate == null) {
mDelegate = AppCompatDelegate.create(this, null);
}
return mDelegate;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.halzhang.android.examples.accessibilityexample;

import android.content.Intent;
import android.os.Bundle;
import android.provider.Settings;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
findViewById(R.id.btn_open_setting).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
startActivity(intent);
}
});
}
}
Loading