|
|
|
@ -43,22 +43,22 @@ public class ResourceParser {
|
|
|
|
|
|
|
|
|
|
public static class NoteBgResources {
|
|
|
|
|
private final static int [] BG_EDIT_RESOURCES = new int [] {
|
|
|
|
|
R.drawable.edit_yellow,
|
|
|
|
|
R.drawable.edit_blue,
|
|
|
|
|
R.drawable.edit_white,
|
|
|
|
|
R.drawable.edit_green,
|
|
|
|
|
R.drawable.edit_red,
|
|
|
|
|
R.drawable.edit_yellow,
|
|
|
|
|
R.drawable.edit_blue,
|
|
|
|
|
R.drawable.edit_white,
|
|
|
|
|
R.drawable.edit_green,
|
|
|
|
|
R.drawable.edit_red,
|
|
|
|
|
R.drawable.note_bg_photo_wangyi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
private final static int [] BG_EDIT_TITLE_RESOURCES = new int [] {
|
|
|
|
|
R.drawable.edit_title_yellow,
|
|
|
|
|
R.drawable.edit_title_blue,
|
|
|
|
|
R.drawable.edit_title_white,
|
|
|
|
|
R.drawable.edit_title_green,
|
|
|
|
|
R.drawable.edit_title_red,
|
|
|
|
|
R.drawable.edit_title_yellow,
|
|
|
|
|
R.drawable.edit_title_blue,
|
|
|
|
|
R.drawable.edit_title_white,
|
|
|
|
|
R.drawable.edit_title_green,
|
|
|
|
|
R.drawable.edit_title_red,
|
|
|
|
|
R.drawable.note_bg_photo_wangyi
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
@ -83,38 +83,38 @@ public class ResourceParser {
|
|
|
|
|
|
|
|
|
|
public static class NoteItemBgResources {
|
|
|
|
|
private final static int [] BG_FIRST_RESOURCES = new int [] {
|
|
|
|
|
R.drawable.list_yellow_up,
|
|
|
|
|
R.drawable.list_blue_up,
|
|
|
|
|
R.drawable.list_white_up,
|
|
|
|
|
R.drawable.list_green_up,
|
|
|
|
|
R.drawable.list_red_up,
|
|
|
|
|
R.drawable.list_yellow_up,
|
|
|
|
|
R.drawable.list_blue_up,
|
|
|
|
|
R.drawable.list_white_up,
|
|
|
|
|
R.drawable.list_green_up,
|
|
|
|
|
R.drawable.list_red_up,
|
|
|
|
|
R.drawable.note_bg_photo_wangyi
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
private final static int [] BG_NORMAL_RESOURCES = new int [] {
|
|
|
|
|
R.drawable.list_yellow_middle,
|
|
|
|
|
R.drawable.list_blue_middle,
|
|
|
|
|
R.drawable.list_white_middle,
|
|
|
|
|
R.drawable.list_green_middle,
|
|
|
|
|
R.drawable.list_red_middle,
|
|
|
|
|
R.drawable.list_yellow_middle,
|
|
|
|
|
R.drawable.list_blue_middle,
|
|
|
|
|
R.drawable.list_white_middle,
|
|
|
|
|
R.drawable.list_green_middle,
|
|
|
|
|
R.drawable.list_red_middle,
|
|
|
|
|
R.drawable.note_bg_photo_wangyi
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
private final static int [] BG_LAST_RESOURCES = new int [] {
|
|
|
|
|
R.drawable.list_yellow_down,
|
|
|
|
|
R.drawable.list_blue_down,
|
|
|
|
|
R.drawable.list_white_down,
|
|
|
|
|
R.drawable.list_green_down,
|
|
|
|
|
R.drawable.list_red_down,
|
|
|
|
|
R.drawable.list_yellow_down,
|
|
|
|
|
R.drawable.list_blue_down,
|
|
|
|
|
R.drawable.list_white_down,
|
|
|
|
|
R.drawable.list_green_down,
|
|
|
|
|
R.drawable.list_red_down,
|
|
|
|
|
R.drawable.note_bg_photo_wangyi
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
private final static int [] BG_SINGLE_RESOURCES = new int [] {
|
|
|
|
|
R.drawable.list_yellow_single,
|
|
|
|
|
R.drawable.list_blue_single,
|
|
|
|
|
R.drawable.list_white_single,
|
|
|
|
|
R.drawable.list_green_single,
|
|
|
|
|
R.drawable.list_red_single,
|
|
|
|
|
R.drawable.list_yellow_single,
|
|
|
|
|
R.drawable.list_blue_single,
|
|
|
|
|
R.drawable.list_white_single,
|
|
|
|
|
R.drawable.list_green_single,
|
|
|
|
|
R.drawable.list_red_single,
|
|
|
|
|
R.drawable.note_bg_photo_wangyi
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -141,11 +141,11 @@ public class ResourceParser {
|
|
|
|
|
|
|
|
|
|
public static class WidgetBgResources {
|
|
|
|
|
private final static int [] BG_2X_RESOURCES = new int [] {
|
|
|
|
|
R.drawable.widget_2x_yellow,
|
|
|
|
|
R.drawable.widget_2x_blue,
|
|
|
|
|
R.drawable.widget_2x_white,
|
|
|
|
|
R.drawable.widget_2x_green,
|
|
|
|
|
R.drawable.widget_2x_red,
|
|
|
|
|
R.drawable.widget_2x_yellow,
|
|
|
|
|
R.drawable.widget_2x_blue,
|
|
|
|
|
R.drawable.widget_2x_white,
|
|
|
|
|
R.drawable.widget_2x_green,
|
|
|
|
|
R.drawable.widget_2x_red,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public static int getWidget2xBgResource(int id) {
|
|
|
|
@ -153,11 +153,11 @@ public class ResourceParser {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private final static int [] BG_4X_RESOURCES = new int [] {
|
|
|
|
|
R.drawable.widget_4x_yellow,
|
|
|
|
|
R.drawable.widget_4x_blue,
|
|
|
|
|
R.drawable.widget_4x_white,
|
|
|
|
|
R.drawable.widget_4x_green,
|
|
|
|
|
R.drawable.widget_4x_red
|
|
|
|
|
R.drawable.widget_4x_yellow,
|
|
|
|
|
R.drawable.widget_4x_blue,
|
|
|
|
|
R.drawable.widget_4x_white,
|
|
|
|
|
R.drawable.widget_4x_green,
|
|
|
|
|
R.drawable.widget_4x_red
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public static int getWidget4xBgResource(int id) {
|
|
|
|
@ -167,10 +167,10 @@ public class ResourceParser {
|
|
|
|
|
|
|
|
|
|
public static class TextAppearanceResources {
|
|
|
|
|
private final static int [] TEXTAPPEARANCE_RESOURCES = new int [] {
|
|
|
|
|
R.style.TextAppearanceNormal,
|
|
|
|
|
R.style.TextAppearanceMedium,
|
|
|
|
|
R.style.TextAppearanceLarge,
|
|
|
|
|
R.style.TextAppearanceSuper
|
|
|
|
|
R.style.TextAppearanceNormal,
|
|
|
|
|
R.style.TextAppearanceMedium,
|
|
|
|
|
R.style.TextAppearanceLarge,
|
|
|
|
|
R.style.TextAppearanceSuper
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public static int getTexAppearanceResource(int id) {
|
|
|
|
|