-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Themer activity (#30) and some minor changes (0.5.3)
- Loading branch information
1 parent
2c25f3d
commit fab907e
Showing
26 changed files
with
278 additions
and
93 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,51 @@ | ||
<?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" > | ||
<ImageView | ||
android:id="@+id/ui_preview" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="4dp" | ||
/> | ||
<LinearLayout | ||
android:id="@+id/color_mixer_panel" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="right" | ||
android:visibility="gone"> | ||
<Button | ||
android:id="@+id/color_mixer_cancel" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/cwac_colormixer_cancel" | ||
/> | ||
<Button | ||
android:id="@+id/color_mixer_apply" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/cwac_colormixer_set" | ||
/> | ||
</LinearLayout> | ||
<FrameLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content"> | ||
<ListView | ||
android:id="@+id/ui_settings" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
/> | ||
<ScrollView | ||
android:id="@+id/color_mixer_holder" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:visibility="gone"> | ||
<com.commonsware.cwac.colormixer.ColorMixer | ||
android:id="@+id/color_mixer" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
/> | ||
</ScrollView> | ||
</FrameLayout> | ||
</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
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package ru.henridellal.emerald; | ||
|
||
//import android.app.Activity; | ||
import android.content.Context; | ||
import android.content.Intent; | ||
import android.preference.Preference; | ||
import android.util.AttributeSet; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class LaunchActivityPreference extends Preference { | ||
public LaunchActivityPreference(Context c) { | ||
this(c, null); | ||
} | ||
public LaunchActivityPreference(Context c, AttributeSet attr) { | ||
super(c, attr); | ||
} | ||
@Override | ||
public void onClick() { | ||
super.onClick(); | ||
Map<String, Class> activityMap = new HashMap<String, Class>(); | ||
activityMap.put("about", AboutActivity.class); | ||
activityMap.put("category_manager", CategoryManagerActivity.class); | ||
activityMap.put("themer", ThemerActivity.class); | ||
if (activityMap.containsKey(getKey())) { | ||
Intent intent = new Intent(getContext(), activityMap.get(getKey())); | ||
getContext().startActivity(intent); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.