-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
332 additions
and
138 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
|
||
#proguard.config=proguard.cfg | ||
# Project target. | ||
target=android-10 | ||
target=android-13 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?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"> | ||
</LinearLayout> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?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="match_parent" | ||
android:orientation="vertical" | ||
android:gravity=""> | ||
|
||
|
||
|
||
</RelativeLayout> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,101 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<PreferenceScreen | ||
android:key="pref_root" | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<PreferenceCategory | ||
android:title="ROM Information" | ||
android:key="rom_control"> | ||
|
||
<Preference | ||
android:title="ROM Version" | ||
android:key="rom_version" /> | ||
|
||
</PreferenceCategory> | ||
|
||
<PreferenceCategory | ||
android:title="Statusbar Tweaks" | ||
android:key="statusbar_cat"> | ||
|
||
<Preference | ||
android:title="Quick settings... settings" | ||
android:key="quick_settings"> | ||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetPackage="com.roman.tweaks" | ||
android:targetClass="com.roman.tweaks.activities.QuickSettingsActivity" /> | ||
</Preference> | ||
|
||
<Preference | ||
android:title="Lockscreen Settings" | ||
android:key="lockscreen_settings"> | ||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetPackage="com.roman.tweaks" | ||
android:targetClass="com.roman.tweaks.activities.LockscreensActivity"></intent> | ||
</Preference> | ||
|
||
<Preference | ||
android:title="Clock options" | ||
android:key="clock_options_pref"> | ||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetPackage="com.roman.tweaks" | ||
android:targetClass="com.roman.tweaks.activities.ClockActivity" /> | ||
</Preference> | ||
|
||
<Preference | ||
android:title="Battery options" | ||
android:key="battery_options_pref"> | ||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetPackage="com.roman.tweaks" | ||
android:targetClass="com.roman.tweaks.activities.BatteryActivity" /> | ||
</Preference> | ||
|
||
<Preference | ||
android:title="Signal options" | ||
android:key="signal_options_pref"> | ||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetPackage="com.roman.tweaks" | ||
android:targetClass="com.roman.tweaks.activities.SignalsActivity" /> | ||
</Preference> | ||
|
||
</PreferenceCategory> | ||
|
||
<PreferenceCategory | ||
android:title="Other" | ||
android:key="other_cat"> | ||
|
||
<CheckBoxPreference | ||
android:key="pref_animate_off" | ||
android:title="Animate screen off" /> | ||
|
||
<CheckBoxPreference | ||
android:key="pref_animate_on" | ||
android:title="Animate screen on" /> | ||
|
||
<ListPreference | ||
android:key="pref_overscroll_effect" | ||
android:title="Overscroll Settings" | ||
android:entries="@array/pref_overscroll_effect_entries" | ||
android:entryValues="@array/pref_overscroll_effect_values" /> | ||
|
||
|
||
|
||
</PreferenceCategory> | ||
</PreferenceScreen> | ||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:key="pref_root" > | ||
|
||
<PreferenceCategory | ||
android:key="rom_control" | ||
android:title="ROM Information" > | ||
|
||
<Preference | ||
android:key="rom_version" | ||
android:title="ROM Version" /> | ||
|
||
<com.roman.tweaks.AdPreference android:layout="@layout/ad_preference" /> | ||
</PreferenceCategory> | ||
|
||
<PreferenceCategory | ||
android:key="statusbar_cat" | ||
android:title="Statusbar Tweaks" > | ||
|
||
<Preference | ||
android:key="quick_settings" | ||
android:title="Quick settings... settings" > | ||
|
||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetClass="com.roman.tweaks.activities.QuickSettingsActivity" | ||
android:targetPackage="com.roman.tweaks" /> | ||
</Preference> | ||
|
||
<Preference | ||
android:key="lockscreen_settings" | ||
android:title="Lockscreen Settings" > | ||
|
||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetClass="com.roman.tweaks.activities.LockscreensActivity" | ||
android:targetPackage="com.roman.tweaks" > | ||
</intent> | ||
</Preference> | ||
|
||
<Preference | ||
android:key="clock_options_pref" | ||
android:title="Clock options" > | ||
|
||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetClass="com.roman.tweaks.activities.ClockActivity" | ||
android:targetPackage="com.roman.tweaks" /> | ||
</Preference> | ||
|
||
<Preference | ||
android:key="battery_options_pref" | ||
android:title="Battery options" > | ||
|
||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetClass="com.roman.tweaks.activities.BatteryActivity" | ||
android:targetPackage="com.roman.tweaks" /> | ||
</Preference> | ||
|
||
<Preference | ||
android:key="sustemui" | ||
android:title="Statusbar Options" > | ||
|
||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetClass="com.roman.tweaks.activities.PullDownActivity" | ||
android:targetPackage="com.roman.tweaks" /> | ||
</Preference> | ||
|
||
<Preference | ||
android:key="signal_options_pref" | ||
android:title="Signal options" > | ||
|
||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetClass="com.roman.tweaks.activities.SignalsActivity" | ||
android:targetPackage="com.roman.tweaks" /> | ||
</Preference> | ||
</PreferenceCategory> | ||
|
||
<PreferenceCategory | ||
android:key="other_cat" | ||
android:title="Other" > | ||
|
||
<CheckBoxPreference | ||
android:key="pref_animate_off" | ||
android:title="Animate screen off" /> | ||
|
||
<CheckBoxPreference | ||
android:key="pref_animate_on" | ||
android:title="Animate screen on" /> | ||
|
||
<ListPreference | ||
android:entries="@array/pref_overscroll_effect_entries" | ||
android:entryValues="@array/pref_overscroll_effect_values" | ||
android:key="pref_overscroll_effect" | ||
android:title="Overscroll Settings" /> | ||
</PreferenceCategory> | ||
|
||
</PreferenceScreen> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > | ||
|
||
<CheckBoxPreference | ||
android:key="swipe_to_clear" | ||
android:title="Swipe-to-clear" /> | ||
|
||
<CheckBoxPreference | ||
android:key="long_clock_to_clear" | ||
android:title="Longpress-to-clear" /> | ||
|
||
<CheckBoxPreference | ||
android:key="alternate_layout" | ||
android:title="Alternate Layout" /> | ||
|
||
</PreferenceScreen> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
package com.roman.tweaks; | ||
|
||
import android.app.Activity; | ||
import android.content.Context; | ||
import android.preference.Preference; | ||
import android.util.AttributeSet; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
import android.widget.LinearLayout; | ||
|
||
import com.google.ads.AdRequest; | ||
import com.google.ads.AdSize; | ||
import com.google.ads.AdView; | ||
|
||
public class AdPreference extends Preference { | ||
|
||
public AdPreference(Context context, AttributeSet attrs, int defStyle) { | ||
super(context, attrs, defStyle); | ||
} | ||
|
||
public AdPreference(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
} | ||
|
||
public AdPreference(Context context) { | ||
super(context); | ||
} | ||
|
||
@Override | ||
protected View onCreateView(ViewGroup parent) { | ||
// this will create the linear layout defined in ads_layout.xml | ||
View view = super.onCreateView(parent); | ||
|
||
// the context is a PreferenceActivity | ||
Activity activity = (Activity) getContext(); | ||
|
||
// Create the adView | ||
AdView adView = new AdView(activity, AdSize.BANNER, "a14eded2475e9ba"); | ||
|
||
((LinearLayout) view).addView(adView); | ||
|
||
// Initiate a generic request to load it with an ad | ||
AdRequest request = new AdRequest(); | ||
request.addTestDevice("FFACA8A2CF5F68C71EDD6B8BB46D2ECA"); | ||
|
||
adView.loadAd(request); | ||
|
||
return view; | ||
} | ||
|
||
|
||
|
||
} |
Oops, something went wrong.