├── assets └── xposed_init ├── XposedBridgeApi.jar ├── ic_launcher-web.png ├── notification-web.png ├── res ├── drawable-mdpi │ ├── Thumbs.db │ ├── blank.png │ ├── ic_launcher.png │ └── notification.png ├── drawable-hdpi │ ├── ic_launcher.png │ └── notification.png ├── drawable-xhdpi │ ├── ic_launcher.png │ └── notification.png ├── drawable-xxhdpi │ ├── ic_launcher.png │ └── notification.png ├── values │ ├── dimens.xml │ ├── styles.xml │ └── strings.xml ├── xml │ └── widget.xml ├── layout │ ├── activity_help.xml │ ├── widget.xml │ ├── activity_notification_tap.xml │ ├── activity_about.xml │ ├── activity_report.xml │ ├── activity_menu.xml │ ├── activity_settings.xml │ ├── activity_notification_centre.xml │ └── activity_main.xml └── values-zh-rCN │ └── strings.xml ├── gen ├── com │ └── hamzah │ │ └── onehandmode │ │ └── BuildConfig.java └── android │ └── support │ └── v7 │ └── appcompat │ └── R.java ├── .settings └── org.eclipse.jdt.core.prefs ├── src └── com │ └── hamzah │ └── onehandmode │ ├── activities │ ├── Help.java │ ├── OHMActivity.java │ ├── About.java │ ├── Menu.java │ ├── Report.java │ ├── NotificationTap.java │ ├── Settings.java │ ├── NotificationCentre.java │ └── MainActivity.java │ ├── BootStartupReciever.java │ ├── Preset.java │ ├── Keys.java │ ├── Widget.java │ ├── NotifService.java │ ├── OverlayService.java │ └── Main.java ├── .classpath ├── project.properties ├── proguard-project.txt ├── .project └── AndroidManifest.xml /assets/xposed_init: -------------------------------------------------------------------------------- 1 | com.hamzah.onehandmode.Main -------------------------------------------------------------------------------- /XposedBridgeApi.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/XposedBridgeApi.jar -------------------------------------------------------------------------------- /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/ic_launcher-web.png -------------------------------------------------------------------------------- /notification-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/notification-web.png -------------------------------------------------------------------------------- /res/drawable-mdpi/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/res/drawable-mdpi/Thumbs.db -------------------------------------------------------------------------------- /res/drawable-mdpi/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/res/drawable-mdpi/blank.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-hdpi/notification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/res/drawable-hdpi/notification.png -------------------------------------------------------------------------------- /res/drawable-mdpi/notification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/res/drawable-mdpi/notification.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/notification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/res/drawable-xhdpi/notification.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/notification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamzahrmalik/OneHandedMode/HEAD/res/drawable-xxhdpi/notification.png -------------------------------------------------------------------------------- /gen/com/hamzah/onehandmode/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.hamzah.onehandmode; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16dp 5 | 16dp 6 | 7 | 8 | -------------------------------------------------------------------------------- /res/xml/widget.xml: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/com/hamzah/onehandmode/activities/Help.java: -------------------------------------------------------------------------------- 1 | package com.hamzah.onehandmode.activities; 2 | 3 | import android.os.Bundle; 4 | 5 | import com.hamzah.onehandmode.R; 6 | 7 | public class Help extends OHMActivity { 8 | 9 | @Override 10 | protected void onCreate(Bundle savedInstanceState) { 11 | super.onCreate(savedInstanceState); 12 | setContentView(R.layout.activity_help); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/com/hamzah/onehandmode/BootStartupReciever.java: -------------------------------------------------------------------------------- 1 | package com.hamzah.onehandmode; 2 | 3 | import android.content.BroadcastReceiver; 4 | import android.content.Context; 5 | import android.content.Intent; 6 | 7 | public class BootStartupReciever extends BroadcastReceiver { 8 | 9 | @Override 10 | public void onReceive(Context context, Intent intent) { 11 | 12 | // Start Service On Boot Start Up 13 | Intent service = new Intent(context, NotifService.class); 14 | context.startService(service); 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /res/layout/activity_help.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 13 | 14 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-21 15 | android.library.reference.1=../appcompat 16 | -------------------------------------------------------------------------------- /src/com/hamzah/onehandmode/Preset.java: -------------------------------------------------------------------------------- 1 | package com.hamzah.onehandmode; 2 | 3 | public class Preset { 4 | 5 | private int id; 6 | private double left; 7 | private double right; 8 | private double top; 9 | private double bottom; 10 | 11 | public Preset(int id, double left, double right, double top, double bottom){ 12 | this.id = id; 13 | this.left = left; 14 | this.right = right; 15 | this.top = top; 16 | this.bottom = bottom; 17 | } 18 | 19 | public int getId(){ 20 | return id; 21 | } 22 | 23 | public double getLeft(){ 24 | return left; 25 | } 26 | 27 | public double getRight(){ 28 | return right; 29 | } 30 | 31 | public double getTop(){ 32 | return top; 33 | } 34 | 35 | public double getBottom(){ 36 | return bottom; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/com/hamzah/onehandmode/activities/OHMActivity.java: -------------------------------------------------------------------------------- 1 | package com.hamzah.onehandmode.activities; 2 | 3 | import android.content.Intent; 4 | import android.os.Bundle; 5 | import android.support.v7.app.ActionBarActivity; 6 | import android.view.MenuItem; 7 | 8 | public class OHMActivity extends ActionBarActivity{ 9 | 10 | @Override 11 | protected void onCreate(Bundle b){ 12 | super.onCreate(b); 13 | this.getSupportActionBar().setDisplayHomeAsUpEnabled(true); 14 | } 15 | 16 | @Override 17 | public boolean onOptionsItemSelected(MenuItem item) { 18 | switch (item.getItemId()) { 19 | case android.R.id.home: 20 | Intent upIntent = new Intent(this, Menu.class); 21 | upIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); 22 | startActivity(upIntent); 23 | finish(); 24 | break; 25 | } 26 | return true; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /res/layout/widget.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 |