diff --git a/app/build.gradle b/app/build.gradle
index 59b998f..df47c1b 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -6,7 +6,7 @@ android {
compileSdkVersion 23
buildToolsVersion '25.0.0'
defaultConfig {
- applicationId "com.example.julian.endlessroll"
+ applicationId 'de.frajul.endlessroll'
minSdkVersion 12
targetSdkVersion 23
versionCode 1
diff --git a/app/build/generated/source/buildConfig/androidTest/debug/com/example/julian/endlessroll/test/BuildConfig.java b/app/build/generated/source/buildConfig/androidTest/debug/com/example/julian/endlessroll/test/BuildConfig.java
deleted file mode 100644
index 49473df..0000000
--- a/app/build/generated/source/buildConfig/androidTest/debug/com/example/julian/endlessroll/test/BuildConfig.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Automatically generated file. DO NOT MODIFY
- */
-package com.example.julian.endlessroll.test;
-
-public final class BuildConfig {
- public static final boolean DEBUG = Boolean.parseBoolean("true");
- public static final String APPLICATION_ID = "com.example.julian.endlessroll.test";
- public static final String BUILD_TYPE = "debug";
- public static final String FLAVOR = "";
- public static final int VERSION_CODE = 1;
- public static final String VERSION_NAME = "1.0";
-}
diff --git a/app/build/generated/source/buildConfig/debug/com/example/julian/endlessroll/BuildConfig.java b/app/build/generated/source/buildConfig/debug/com/example/julian/endlessroll/BuildConfig.java
deleted file mode 100644
index bdf0e3c..0000000
--- a/app/build/generated/source/buildConfig/debug/com/example/julian/endlessroll/BuildConfig.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Automatically generated file. DO NOT MODIFY
- */
-package com.example.julian.endlessroll;
-
-public final class BuildConfig {
- public static final boolean DEBUG = Boolean.parseBoolean("true");
- public static final String APPLICATION_ID = "com.example.julian.endlessroll";
- public static final String BUILD_TYPE = "debug";
- public static final String FLAVOR = "";
- public static final int VERSION_CODE = 1;
- public static final String VERSION_NAME = "1.0";
-}
diff --git a/app/build/generated/source/r/debug/com/example/julian/endlessroll/R.java b/app/build/generated/source/r/debug/com/example/julian/endlessroll/R.java
deleted file mode 100644
index baf2359..0000000
--- a/app/build/generated/source/r/debug/com/example/julian/endlessroll/R.java
+++ /dev/null
@@ -1,6389 +0,0 @@
-/* AUTO-GENERATED FILE. DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found. It
- * should not be modified by hand.
- */
-
-package com.example.julian.endlessroll;
-
-public final class R {
- public static final class anim {
- public static final int abc_fade_in=0x7f050000;
- public static final int abc_fade_out=0x7f050001;
- public static final int abc_grow_fade_in_from_bottom=0x7f050002;
- public static final int abc_popup_enter=0x7f050003;
- public static final int abc_popup_exit=0x7f050004;
- public static final int abc_shrink_fade_out_from_bottom=0x7f050005;
- public static final int abc_slide_in_bottom=0x7f050006;
- public static final int abc_slide_in_top=0x7f050007;
- public static final int abc_slide_out_bottom=0x7f050008;
- public static final int abc_slide_out_top=0x7f050009;
- public static final int countdown=0x7f05000a;
- public static final int decrease=0x7f05000b;
- public static final int fade_in=0x7f05000c;
- public static final int fade_out=0x7f05000d;
- public static final int rotate=0x7f05000e;
- public static final int scale_up=0x7f05000f;
- public static final int shrink=0x7f050010;
- public static final int slide_in_left=0x7f050011;
- public static final int slide_in_right=0x7f050012;
- public static final int slide_in_top=0x7f050013;
- }
- public static final class attr {
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionBarDivider=0x7f010063;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionBarItemBackground=0x7f010064;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionBarPopupTheme=0x7f01005d;
- /**
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
-
May be one of the following constant values.
-
-
-
-
-Constant | Value | Description |
-wrap_content | 0 | |
-
- */
- public static final int actionBarSize=0x7f010062;
- /** Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionBarSplitStyle=0x7f01005f;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionBarStyle=0x7f01005e;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionBarTabBarStyle=0x7f010059;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionBarTabStyle=0x7f010058;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionBarTabTextStyle=0x7f01005a;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionBarTheme=0x7f010060;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionBarWidgetTheme=0x7f010061;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionButtonStyle=0x7f01007d;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionDropDownStyle=0x7f010079;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionLayout=0x7f010034;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionMenuTextAppearance=0x7f010065;
- /**
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- */
- public static final int actionMenuTextColor=0x7f010066;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModeBackground=0x7f010069;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModeCloseButtonStyle=0x7f010068;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModeCloseDrawable=0x7f01006b;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModeCopyDrawable=0x7f01006d;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModeCutDrawable=0x7f01006c;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModeFindDrawable=0x7f010071;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModePasteDrawable=0x7f01006e;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModePopupWindowStyle=0x7f010073;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModeSelectAllDrawable=0x7f01006f;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModeShareDrawable=0x7f010070;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModeSplitBackground=0x7f01006a;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModeStyle=0x7f010067;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionModeWebSearchDrawable=0x7f010072;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionOverflowButtonStyle=0x7f01005b;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int actionOverflowMenuStyle=0x7f01005c;
- /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int actionProviderClass=0x7f010036;
- /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int actionViewClass=0x7f010035;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int activityChooserViewStyle=0x7f010085;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int alertDialogButtonGroupStyle=0x7f0100a8;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int alertDialogCenterButtons=0x7f0100a9;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int alertDialogStyle=0x7f0100a7;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int alertDialogTheme=0x7f0100aa;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int allowStacking=0x7f010025;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int arrowHeadLength=0x7f01002c;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int arrowShaftLength=0x7f01002d;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int autoCompleteTextViewStyle=0x7f0100af;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int background=0x7f01000c;
- /**
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- */
- public static final int backgroundSplit=0x7f01000e;
- /**
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- */
- public static final int backgroundStacked=0x7f01000d;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int backgroundTint=0x7f0100cc;
- /**
Must be one of the following constant values.
-
-
-
-
-Constant | Value | Description |
-src_over | 3 | |
-src_in | 5 | |
-src_atop | 9 | |
-multiply | 14 | |
-screen | 15 | |
-
- */
- public static final int backgroundTintMode=0x7f0100cd;
- /** Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int barLength=0x7f01002e;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int borderlessButtonStyle=0x7f010082;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int buttonBarButtonStyle=0x7f01007f;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int buttonBarNegativeButtonStyle=0x7f0100ad;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int buttonBarNeutralButtonStyle=0x7f0100ae;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int buttonBarPositiveButtonStyle=0x7f0100ac;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int buttonBarStyle=0x7f01007e;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int buttonPanelSideLayout=0x7f01001f;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int buttonStyle=0x7f0100b0;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int buttonStyleSmall=0x7f0100b1;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int buttonTint=0x7f010026;
- /**
Must be one of the following constant values.
-
-
-
-
-Constant | Value | Description |
-src_over | 3 | |
-src_in | 5 | |
-src_atop | 9 | |
-multiply | 14 | |
-screen | 15 | |
-
- */
- public static final int buttonTintMode=0x7f010027;
- /** Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int checkboxStyle=0x7f0100b2;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int checkedTextViewStyle=0x7f0100b3;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int closeIcon=0x7f01003e;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int closeItemLayout=0x7f01001c;
- /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int collapseContentDescription=0x7f0100c3;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int collapseIcon=0x7f0100c2;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int color=0x7f010028;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int colorAccent=0x7f0100a0;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int colorButtonNormal=0x7f0100a4;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int colorControlActivated=0x7f0100a2;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int colorControlHighlight=0x7f0100a3;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int colorControlNormal=0x7f0100a1;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int colorPrimary=0x7f01009e;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int colorPrimaryDark=0x7f01009f;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int colorSwitchThumbNormal=0x7f0100a5;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int commitIcon=0x7f010043;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int contentInsetEnd=0x7f010017;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int contentInsetLeft=0x7f010018;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int contentInsetRight=0x7f010019;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int contentInsetStart=0x7f010016;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int controlBackground=0x7f0100a6;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int customNavigationLayout=0x7f01000f;
- /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int defaultQueryHint=0x7f01003d;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int dialogPreferredPadding=0x7f010077;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int dialogTheme=0x7f010076;
- /**
Must be one or more (separated by '|') of the following constant values.
-
-
-
-
-Constant | Value | Description |
-none | 0 | |
-useLogo | 0x1 | |
-showHome | 0x2 | |
-homeAsUp | 0x4 | |
-showTitle | 0x8 | |
-showCustom | 0x10 | |
-disableHome | 0x20 | |
-
- */
- public static final int displayOptions=0x7f010005;
- /** Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int divider=0x7f01000b;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int dividerHorizontal=0x7f010084;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int dividerPadding=0x7f010032;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int dividerVertical=0x7f010083;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int drawableSize=0x7f01002a;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int drawerArrowStyle=0x7f010000;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int dropDownListViewStyle=0x7f010096;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int dropdownListPreferredItemHeight=0x7f01007a;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int editTextBackground=0x7f01008b;
- /**
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- */
- public static final int editTextColor=0x7f01008a;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int editTextStyle=0x7f0100b4;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int elevation=0x7f01001a;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int expandActivityOverflowButtonDrawable=0x7f01001e;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int gapBetweenBars=0x7f01002b;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int goIcon=0x7f01003f;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int height=0x7f010001;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int hideOnContentScroll=0x7f010015;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int homeAsUpIndicator=0x7f01007c;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int homeLayout=0x7f010010;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int icon=0x7f010009;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int iconifiedByDefault=0x7f01003b;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int imageButtonStyle=0x7f01008c;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int indeterminateProgressStyle=0x7f010012;
- /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int initialActivityCount=0x7f01001d;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int isLightTheme=0x7f010002;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int itemPadding=0x7f010014;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int layout=0x7f01003a;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int listChoiceBackgroundIndicator=0x7f01009d;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int listDividerAlertDialog=0x7f010078;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int listItemLayout=0x7f010023;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int listLayout=0x7f010020;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int listPopupWindowStyle=0x7f010097;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int listPreferredItemHeight=0x7f010091;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int listPreferredItemHeightLarge=0x7f010093;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int listPreferredItemHeightSmall=0x7f010092;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int listPreferredItemPaddingLeft=0x7f010094;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int listPreferredItemPaddingRight=0x7f010095;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int logo=0x7f01000a;
- /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int logoDescription=0x7f0100c6;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int maxButtonHeight=0x7f0100c1;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int measureWithLargestChild=0x7f010030;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int multiChoiceItemLayout=0x7f010021;
- /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int navigationContentDescription=0x7f0100c5;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int navigationIcon=0x7f0100c4;
- /**
Must be one of the following constant values.
-
-
-
-
-Constant | Value | Description |
-normal | 0 | |
-listMode | 1 | |
-tabMode | 2 | |
-
- */
- public static final int navigationMode=0x7f010004;
- /** Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int overlapAnchor=0x7f010038;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int paddingEnd=0x7f0100ca;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int paddingStart=0x7f0100c9;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int panelBackground=0x7f01009a;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int panelMenuListTheme=0x7f01009c;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int panelMenuListWidth=0x7f01009b;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int popupMenuStyle=0x7f010088;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int popupTheme=0x7f01001b;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int popupWindowStyle=0x7f010089;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int preserveIconSpacing=0x7f010037;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int progressBarPadding=0x7f010013;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int progressBarStyle=0x7f010011;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int queryBackground=0x7f010045;
- /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int queryHint=0x7f01003c;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int radioButtonStyle=0x7f0100b5;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int ratingBarStyle=0x7f0100b6;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int searchHintIcon=0x7f010041;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int searchIcon=0x7f010040;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int searchViewStyle=0x7f010090;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int seekBarStyle=0x7f0100b7;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int selectableItemBackground=0x7f010080;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int selectableItemBackgroundBorderless=0x7f010081;
- /**
Must be one or more (separated by '|') of the following constant values.
-
-
-
-
-Constant | Value | Description |
-never | 0 | |
-ifRoom | 1 | |
-always | 2 | |
-withText | 4 | |
-collapseActionView | 8 | |
-
- */
- public static final int showAsAction=0x7f010033;
- /** Must be one or more (separated by '|') of the following constant values.
-
-
-
-
-Constant | Value | Description |
-none | 0 | |
-beginning | 1 | |
-middle | 2 | |
-end | 4 | |
-
- */
- public static final int showDividers=0x7f010031;
- /** Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int showText=0x7f01004d;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int singleChoiceItemLayout=0x7f010022;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int spinBars=0x7f010029;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int spinnerDropDownItemStyle=0x7f01007b;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int spinnerStyle=0x7f0100b8;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int splitTrack=0x7f01004c;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int state_above_anchor=0x7f010039;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int submitBackground=0x7f010046;
- /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int subtitle=0x7f010006;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int subtitleTextAppearance=0x7f0100bb;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int subtitleTextColor=0x7f0100c8;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int subtitleTextStyle=0x7f010008;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int suggestionRowLayout=0x7f010044;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int switchMinWidth=0x7f01004a;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int switchPadding=0x7f01004b;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int switchStyle=0x7f0100b9;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int switchTextAppearance=0x7f010049;
- /**
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a boolean value, either "true
" or "false
".
- */
- public static final int textAllCaps=0x7f010024;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int textAppearanceLargePopupMenu=0x7f010074;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int textAppearanceListItem=0x7f010098;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int textAppearanceListItemSmall=0x7f010099;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int textAppearanceSearchResultSubtitle=0x7f01008e;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int textAppearanceSearchResultTitle=0x7f01008d;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int textAppearanceSmallPopupMenu=0x7f010075;
- /**
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- */
- public static final int textColorAlertDialogListItem=0x7f0100ab;
- /**
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- */
- public static final int textColorSearchUrl=0x7f01008f;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int theme=0x7f0100cb;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int thickness=0x7f01002f;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int thumbTextPadding=0x7f010048;
- /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int title=0x7f010003;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int titleMarginBottom=0x7f0100c0;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int titleMarginEnd=0x7f0100be;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int titleMarginStart=0x7f0100bd;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int titleMarginTop=0x7f0100bf;
- /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int titleMargins=0x7f0100bc;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int titleTextAppearance=0x7f0100ba;
- /**
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int titleTextColor=0x7f0100c7;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int titleTextStyle=0x7f010007;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int toolbarNavigationButtonStyle=0x7f010087;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int toolbarStyle=0x7f010086;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int track=0x7f010047;
- /**
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- */
- public static final int voiceIcon=0x7f010042;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int windowActionBar=0x7f01004e;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int windowActionBarOverlay=0x7f010050;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int windowActionModeOverlay=0x7f010051;
- /**
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int windowFixedHeightMajor=0x7f010055;
- /**
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int windowFixedHeightMinor=0x7f010053;
- /**
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int windowFixedWidthMajor=0x7f010052;
- /**
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int windowFixedWidthMinor=0x7f010054;
- /**
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int windowMinWidthMajor=0x7f010056;
- /**
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int windowMinWidthMinor=0x7f010057;
- /**
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- */
- public static final int windowNoTitle=0x7f01004f;
- }
- public static final class bool {
- public static final int abc_action_bar_embed_tabs=0x7f080003;
- public static final int abc_action_bar_embed_tabs_pre_jb=0x7f080001;
- public static final int abc_action_bar_expanded_action_views_exclusive=0x7f080004;
- public static final int abc_allow_stacked_button_bar=0x7f080000;
- public static final int abc_config_actionMenuItemAllCaps=0x7f080005;
- public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f080002;
- public static final int abc_config_closeDialogWhenTouchOutside=0x7f080006;
- public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f080007;
- }
- public static final class color {
- public static final int abc_background_cache_hint_selector_material_dark=0x7f0c004b;
- public static final int abc_background_cache_hint_selector_material_light=0x7f0c004c;
- public static final int abc_color_highlight_material=0x7f0c004d;
- public static final int abc_input_method_navigation_guard=0x7f0c0000;
- public static final int abc_primary_text_disable_only_material_dark=0x7f0c004e;
- public static final int abc_primary_text_disable_only_material_light=0x7f0c004f;
- public static final int abc_primary_text_material_dark=0x7f0c0050;
- public static final int abc_primary_text_material_light=0x7f0c0051;
- public static final int abc_search_url_text=0x7f0c0052;
- public static final int abc_search_url_text_normal=0x7f0c0001;
- public static final int abc_search_url_text_pressed=0x7f0c0002;
- public static final int abc_search_url_text_selected=0x7f0c0003;
- public static final int abc_secondary_text_material_dark=0x7f0c0053;
- public static final int abc_secondary_text_material_light=0x7f0c0054;
- public static final int accent_material_dark=0x7f0c0004;
- public static final int accent_material_light=0x7f0c0005;
- public static final int background_floating_material_dark=0x7f0c0006;
- public static final int background_floating_material_light=0x7f0c0007;
- public static final int background_material_dark=0x7f0c0008;
- public static final int background_material_light=0x7f0c0009;
- public static final int bright_foreground_disabled_material_dark=0x7f0c000a;
- public static final int bright_foreground_disabled_material_light=0x7f0c000b;
- public static final int bright_foreground_inverse_material_dark=0x7f0c000c;
- public static final int bright_foreground_inverse_material_light=0x7f0c000d;
- public static final int bright_foreground_material_dark=0x7f0c000e;
- public static final int bright_foreground_material_light=0x7f0c000f;
- public static final int button_material_dark=0x7f0c0010;
- public static final int button_material_light=0x7f0c0011;
- public static final int colorAccent=0x7f0c0012;
- public static final int colorPrimary=0x7f0c0013;
- public static final int colorPrimaryDark=0x7f0c0014;
- public static final int countdown1=0x7f0c0015;
- public static final int countdown2=0x7f0c0016;
- public static final int countdown3=0x7f0c0017;
- public static final int dim_foreground_disabled_material_dark=0x7f0c0018;
- public static final int dim_foreground_disabled_material_light=0x7f0c0019;
- public static final int dim_foreground_material_dark=0x7f0c001a;
- public static final int dim_foreground_material_light=0x7f0c001b;
- public static final int foreground_material_dark=0x7f0c001c;
- public static final int foreground_material_light=0x7f0c001d;
- public static final int highlighted_text_material_dark=0x7f0c001e;
- public static final int highlighted_text_material_light=0x7f0c001f;
- public static final int hint_foreground_material_dark=0x7f0c0020;
- public static final int hint_foreground_material_light=0x7f0c0021;
- public static final int loose=0x7f0c0022;
- public static final int material_blue_grey_800=0x7f0c0023;
- public static final int material_blue_grey_900=0x7f0c0024;
- public static final int material_blue_grey_950=0x7f0c0025;
- public static final int material_deep_teal_200=0x7f0c0026;
- public static final int material_deep_teal_500=0x7f0c0027;
- public static final int material_grey_100=0x7f0c0028;
- public static final int material_grey_300=0x7f0c0029;
- public static final int material_grey_50=0x7f0c002a;
- public static final int material_grey_600=0x7f0c002b;
- public static final int material_grey_800=0x7f0c002c;
- public static final int material_grey_850=0x7f0c002d;
- public static final int material_grey_900=0x7f0c002e;
- public static final int primary_dark_material_dark=0x7f0c002f;
- public static final int primary_dark_material_light=0x7f0c0030;
- public static final int primary_material_dark=0x7f0c0031;
- public static final int primary_material_light=0x7f0c0032;
- public static final int primary_text_default_material_dark=0x7f0c0033;
- public static final int primary_text_default_material_light=0x7f0c0034;
- public static final int primary_text_disabled_material_dark=0x7f0c0035;
- public static final int primary_text_disabled_material_light=0x7f0c0036;
- public static final int retry=0x7f0c0037;
- public static final int ripple_material_dark=0x7f0c0038;
- public static final int ripple_material_light=0x7f0c0039;
- public static final int secondary_text_default_material_dark=0x7f0c003a;
- public static final int secondary_text_default_material_light=0x7f0c003b;
- public static final int secondary_text_disabled_material_dark=0x7f0c003c;
- public static final int secondary_text_disabled_material_light=0x7f0c003d;
- public static final int switch_thumb_disabled_material_dark=0x7f0c003e;
- public static final int switch_thumb_disabled_material_light=0x7f0c003f;
- public static final int switch_thumb_material_dark=0x7f0c0055;
- public static final int switch_thumb_material_light=0x7f0c0056;
- public static final int switch_thumb_normal_material_dark=0x7f0c0040;
- public static final int switch_thumb_normal_material_light=0x7f0c0041;
- public static final int toolbuttonActiveNotReady=0x7f0c0042;
- public static final int toolbuttonActiveReady=0x7f0c0043;
- public static final int toolbuttonInactiveNotReady=0x7f0c0044;
- public static final int toolbuttonInactiveReady=0x7f0c0045;
- public static final int toolbuttonLocked=0x7f0c0046;
- public static final int toolslotDisabled=0x7f0c0047;
- public static final int toolslotEnabled=0x7f0c0048;
- public static final int toolslotEnabledSelected=0x7f0c0049;
- public static final int win=0x7f0c004a;
- }
- public static final class dimen {
- public static final int abc_action_bar_content_inset_material=0x7f09000d;
- public static final int abc_action_bar_default_height_material=0x7f090001;
- public static final int abc_action_bar_default_padding_end_material=0x7f09000e;
- public static final int abc_action_bar_default_padding_start_material=0x7f09000f;
- public static final int abc_action_bar_icon_vertical_padding_material=0x7f090011;
- public static final int abc_action_bar_overflow_padding_end_material=0x7f090012;
- public static final int abc_action_bar_overflow_padding_start_material=0x7f090013;
- public static final int abc_action_bar_progress_bar_size=0x7f090002;
- public static final int abc_action_bar_stacked_max_height=0x7f090014;
- public static final int abc_action_bar_stacked_tab_max_width=0x7f090015;
- public static final int abc_action_bar_subtitle_bottom_margin_material=0x7f090016;
- public static final int abc_action_bar_subtitle_top_margin_material=0x7f090017;
- public static final int abc_action_button_min_height_material=0x7f090018;
- public static final int abc_action_button_min_width_material=0x7f090019;
- public static final int abc_action_button_min_width_overflow_material=0x7f09001a;
- public static final int abc_alert_dialog_button_bar_height=0x7f090000;
- public static final int abc_button_inset_horizontal_material=0x7f09001b;
- public static final int abc_button_inset_vertical_material=0x7f09001c;
- public static final int abc_button_padding_horizontal_material=0x7f09001d;
- public static final int abc_button_padding_vertical_material=0x7f09001e;
- public static final int abc_config_prefDialogWidth=0x7f090005;
- public static final int abc_control_corner_material=0x7f09001f;
- public static final int abc_control_inset_material=0x7f090020;
- public static final int abc_control_padding_material=0x7f090021;
- public static final int abc_dialog_fixed_height_major=0x7f090006;
- public static final int abc_dialog_fixed_height_minor=0x7f090007;
- public static final int abc_dialog_fixed_width_major=0x7f090008;
- public static final int abc_dialog_fixed_width_minor=0x7f090009;
- public static final int abc_dialog_list_padding_vertical_material=0x7f090022;
- public static final int abc_dialog_min_width_major=0x7f09000a;
- public static final int abc_dialog_min_width_minor=0x7f09000b;
- public static final int abc_dialog_padding_material=0x7f090023;
- public static final int abc_dialog_padding_top_material=0x7f090024;
- public static final int abc_disabled_alpha_material_dark=0x7f090025;
- public static final int abc_disabled_alpha_material_light=0x7f090026;
- public static final int abc_dropdownitem_icon_width=0x7f090027;
- public static final int abc_dropdownitem_text_padding_left=0x7f090028;
- public static final int abc_dropdownitem_text_padding_right=0x7f090029;
- public static final int abc_edit_text_inset_bottom_material=0x7f09002a;
- public static final int abc_edit_text_inset_horizontal_material=0x7f09002b;
- public static final int abc_edit_text_inset_top_material=0x7f09002c;
- public static final int abc_floating_window_z=0x7f09002d;
- public static final int abc_list_item_padding_horizontal_material=0x7f09002e;
- public static final int abc_panel_menu_list_width=0x7f09002f;
- public static final int abc_search_view_preferred_width=0x7f090030;
- public static final int abc_search_view_text_min_width=0x7f09000c;
- public static final int abc_seekbar_track_background_height_material=0x7f090031;
- public static final int abc_seekbar_track_progress_height_material=0x7f090032;
- public static final int abc_select_dialog_padding_start_material=0x7f090033;
- public static final int abc_switch_padding=0x7f090010;
- public static final int abc_text_size_body_1_material=0x7f090034;
- public static final int abc_text_size_body_2_material=0x7f090035;
- public static final int abc_text_size_button_material=0x7f090036;
- public static final int abc_text_size_caption_material=0x7f090037;
- public static final int abc_text_size_display_1_material=0x7f090038;
- public static final int abc_text_size_display_2_material=0x7f090039;
- public static final int abc_text_size_display_3_material=0x7f09003a;
- public static final int abc_text_size_display_4_material=0x7f09003b;
- public static final int abc_text_size_headline_material=0x7f09003c;
- public static final int abc_text_size_large_material=0x7f09003d;
- public static final int abc_text_size_medium_material=0x7f09003e;
- public static final int abc_text_size_menu_material=0x7f09003f;
- public static final int abc_text_size_small_material=0x7f090040;
- public static final int abc_text_size_subhead_material=0x7f090041;
- public static final int abc_text_size_subtitle_material_toolbar=0x7f090003;
- public static final int abc_text_size_title_material=0x7f090042;
- public static final int abc_text_size_title_material_toolbar=0x7f090004;
- public static final int disabled_alpha_material_dark=0x7f090043;
- public static final int disabled_alpha_material_light=0x7f090044;
- public static final int highlight_alpha_material_colored=0x7f090045;
- public static final int highlight_alpha_material_dark=0x7f090046;
- public static final int highlight_alpha_material_light=0x7f090047;
- public static final int notification_large_icon_height=0x7f090048;
- public static final int notification_large_icon_width=0x7f090049;
- public static final int notification_subtext_size=0x7f09004a;
- }
- public static final class drawable {
- public static final int abc_ab_share_pack_mtrl_alpha=0x7f020000;
- public static final int abc_action_bar_item_background_material=0x7f020001;
- public static final int abc_btn_borderless_material=0x7f020002;
- public static final int abc_btn_check_material=0x7f020003;
- public static final int abc_btn_check_to_on_mtrl_000=0x7f020004;
- public static final int abc_btn_check_to_on_mtrl_015=0x7f020005;
- public static final int abc_btn_colored_material=0x7f020006;
- public static final int abc_btn_default_mtrl_shape=0x7f020007;
- public static final int abc_btn_radio_material=0x7f020008;
- public static final int abc_btn_radio_to_on_mtrl_000=0x7f020009;
- public static final int abc_btn_radio_to_on_mtrl_015=0x7f02000a;
- public static final int abc_btn_rating_star_off_mtrl_alpha=0x7f02000b;
- public static final int abc_btn_rating_star_on_mtrl_alpha=0x7f02000c;
- public static final int abc_btn_switch_to_on_mtrl_00001=0x7f02000d;
- public static final int abc_btn_switch_to_on_mtrl_00012=0x7f02000e;
- public static final int abc_cab_background_internal_bg=0x7f02000f;
- public static final int abc_cab_background_top_material=0x7f020010;
- public static final int abc_cab_background_top_mtrl_alpha=0x7f020011;
- public static final int abc_control_background_material=0x7f020012;
- public static final int abc_dialog_material_background_dark=0x7f020013;
- public static final int abc_dialog_material_background_light=0x7f020014;
- public static final int abc_edit_text_material=0x7f020015;
- public static final int abc_ic_ab_back_mtrl_am_alpha=0x7f020016;
- public static final int abc_ic_clear_mtrl_alpha=0x7f020017;
- public static final int abc_ic_commit_search_api_mtrl_alpha=0x7f020018;
- public static final int abc_ic_go_search_api_mtrl_alpha=0x7f020019;
- public static final int abc_ic_menu_copy_mtrl_am_alpha=0x7f02001a;
- public static final int abc_ic_menu_cut_mtrl_alpha=0x7f02001b;
- public static final int abc_ic_menu_moreoverflow_mtrl_alpha=0x7f02001c;
- public static final int abc_ic_menu_paste_mtrl_am_alpha=0x7f02001d;
- public static final int abc_ic_menu_selectall_mtrl_alpha=0x7f02001e;
- public static final int abc_ic_menu_share_mtrl_alpha=0x7f02001f;
- public static final int abc_ic_search_api_mtrl_alpha=0x7f020020;
- public static final int abc_ic_voice_search_api_mtrl_alpha=0x7f020021;
- public static final int abc_item_background_holo_dark=0x7f020022;
- public static final int abc_item_background_holo_light=0x7f020023;
- public static final int abc_list_divider_mtrl_alpha=0x7f020024;
- public static final int abc_list_focused_holo=0x7f020025;
- public static final int abc_list_longpressed_holo=0x7f020026;
- public static final int abc_list_pressed_holo_dark=0x7f020027;
- public static final int abc_list_pressed_holo_light=0x7f020028;
- public static final int abc_list_selector_background_transition_holo_dark=0x7f020029;
- public static final int abc_list_selector_background_transition_holo_light=0x7f02002a;
- public static final int abc_list_selector_disabled_holo_dark=0x7f02002b;
- public static final int abc_list_selector_disabled_holo_light=0x7f02002c;
- public static final int abc_list_selector_holo_dark=0x7f02002d;
- public static final int abc_list_selector_holo_light=0x7f02002e;
- public static final int abc_menu_hardkey_panel_mtrl_mult=0x7f02002f;
- public static final int abc_popup_background_mtrl_mult=0x7f020030;
- public static final int abc_ratingbar_full_material=0x7f020031;
- public static final int abc_scrubber_control_off_mtrl_alpha=0x7f020032;
- public static final int abc_scrubber_control_to_pressed_mtrl_000=0x7f020033;
- public static final int abc_scrubber_control_to_pressed_mtrl_005=0x7f020034;
- public static final int abc_scrubber_primary_mtrl_alpha=0x7f020035;
- public static final int abc_scrubber_track_mtrl_alpha=0x7f020036;
- public static final int abc_seekbar_thumb_material=0x7f020037;
- public static final int abc_seekbar_track_material=0x7f020038;
- public static final int abc_spinner_mtrl_am_alpha=0x7f020039;
- public static final int abc_spinner_textfield_background_material=0x7f02003a;
- public static final int abc_switch_thumb_material=0x7f02003b;
- public static final int abc_switch_track_mtrl_alpha=0x7f02003c;
- public static final int abc_tab_indicator_material=0x7f02003d;
- public static final int abc_tab_indicator_mtrl_alpha=0x7f02003e;
- public static final int abc_text_cursor_material=0x7f02003f;
- public static final int abc_textfield_activated_mtrl_alpha=0x7f020040;
- public static final int abc_textfield_default_mtrl_alpha=0x7f020041;
- public static final int abc_textfield_search_activated_mtrl_alpha=0x7f020042;
- public static final int abc_textfield_search_default_mtrl_alpha=0x7f020043;
- public static final int abc_textfield_search_material=0x7f020044;
- public static final int backgrounds_game_cave=0x7f020045;
- public static final int backgrounds_game_grass=0x7f020046;
- public static final int backgrounds_game_mountains=0x7f020047;
- public static final int backgrounds_menu_grass=0x7f020048;
- public static final int backgrounds_menu_levelup=0x7f020049;
- public static final int backgrounds_menu_shortmenu=0x7f02004a;
- public static final int currency_energy=0x7f02004b;
- public static final int currency_energy_atlas=0x7f02004c;
- public static final int currency_energy_empty=0x7f02004d;
- public static final int currency_star=0x7f02004e;
- public static final int currency_star_empty=0x7f02004f;
- public static final int goal=0x7f020050;
- public static final int guis_pausebutton=0x7f020051;
- public static final int guis_playerarrow=0x7f020052;
- public static final int guis_sound_off=0x7f020053;
- public static final int guis_sound_on=0x7f020054;
- public static final int lock_locked=0x7f020055;
- public static final int lock_unlocked=0x7f020056;
- public static final int notification_template_icon_bg=0x7f020076;
- public static final int obstacles_cave=0x7f020057;
- public static final int obstacles_grass=0x7f020058;
- public static final int obstacles_mountains=0x7f020059;
- public static final int playershapes_ball=0x7f02005a;
- public static final int previews_grass=0x7f02005b;
- public static final int purple=0x7f02005c;
- public static final int ramp=0x7f02005d;
- public static final int rampbutton=0x7f02005e;
- public static final int splitter=0x7f02005f;
- public static final int star_icon=0x7f020060;
- public static final int terrain_c_grass=0x7f020061;
- public static final int terrain_t_grass=0x7f020062;
- public static final int tick=0x7f020063;
- public static final int tip_icon=0x7f020064;
- public static final int tools_bomb=0x7f020065;
- public static final int tools_bombbutton=0x7f020066;
- public static final int tools_emptybutton=0x7f020067;
- public static final int tools_lockedbutton=0x7f020068;
- public static final int tools_magnet=0x7f020069;
- public static final int tools_magnetbutton=0x7f02006a;
- public static final int tools_spring=0x7f02006b;
- public static final int tools_springbutton=0x7f02006c;
- public static final int tools_unlockedbutton=0x7f02006d;
- public static final int xml_background_bountymessage=0x7f02006e;
- public static final int xml_background_levelbutton=0x7f02006f;
- public static final int xml_background_toolslot=0x7f020070;
- public static final int xml_background_tutorialtextview=0x7f020071;
- public static final int xml_background_worldbutton=0x7f020072;
- public static final int xml_layers_toolprogressbar=0x7f020073;
- public static final int xml_selector_gamebutton=0x7f020074;
- public static final int xml_selector_sound=0x7f020075;
- }
- public static final class id {
- public static final int action0=0x7f0d006b;
- public static final int action_bar=0x7f0d0041;
- public static final int action_bar_activity_content=0x7f0d0000;
- public static final int action_bar_container=0x7f0d0040;
- public static final int action_bar_root=0x7f0d003c;
- public static final int action_bar_spinner=0x7f0d0001;
- public static final int action_bar_subtitle=0x7f0d0022;
- public static final int action_bar_title=0x7f0d0021;
- public static final int action_context_bar=0x7f0d0042;
- public static final int action_divider=0x7f0d006f;
- public static final int action_menu_divider=0x7f0d0002;
- public static final int action_menu_presenter=0x7f0d0003;
- public static final int action_mode_bar=0x7f0d003e;
- public static final int action_mode_bar_stub=0x7f0d003d;
- public static final int action_mode_close_button=0x7f0d0023;
- public static final int activity_chooser_view_content=0x7f0d0024;
- public static final int alertTitle=0x7f0d0030;
- public static final int always=0x7f0d001b;
- public static final int beginning=0x7f0d0018;
- public static final int buttonPanel=0x7f0d002b;
- public static final int cancel_action=0x7f0d006c;
- public static final int checkbox=0x7f0d0039;
- public static final int chronometer=0x7f0d0072;
- public static final int collapseActionView=0x7f0d001c;
- public static final int contentPanel=0x7f0d0031;
- public static final int custom=0x7f0d0037;
- public static final int customPanel=0x7f0d0036;
- public static final int decor_content_parent=0x7f0d003f;
- public static final int default_activity_button=0x7f0d0027;
- public static final int disableHome=0x7f0d000c;
- public static final int edit_query=0x7f0d0043;
- public static final int end=0x7f0d0019;
- public static final int end_padder=0x7f0d0077;
- public static final int expand_activities_button=0x7f0d0025;
- public static final int expanded_menu=0x7f0d0038;
- public static final int game_countdown=0x7f0d0057;
- public static final int game_fps=0x7f0d0054;
- public static final int game_message=0x7f0d0056;
- public static final int game_pausebutton=0x7f0d0050;
- public static final int game_playerprogress=0x7f0d0052;
- public static final int game_playerspeed=0x7f0d0053;
- public static final int game_shortmenu=0x7f0d0055;
- public static final int game_toolbuttonbar=0x7f0d0051;
- public static final int home=0x7f0d0004;
- public static final int homeAsUp=0x7f0d000d;
- public static final int horizontalScrollView=0x7f0d005f;
- public static final int icon=0x7f0d0029;
- public static final int ifRoom=0x7f0d001d;
- public static final int image=0x7f0d0026;
- public static final int imageView=0x7f0d0065;
- public static final int imageView3=0x7f0d00a1;
- public static final int imageView4=0x7f0d00b0;
- public static final int info=0x7f0d0076;
- public static final int levelbutton_energy=0x7f0d005c;
- public static final int levelbutton_lock=0x7f0d005d;
- public static final int levelbutton_star1=0x7f0d0059;
- public static final int levelbutton_star2=0x7f0d005a;
- public static final int levelbutton_star3=0x7f0d005b;
- public static final int levelbutton_starView=0x7f0d00ad;
- public static final int levelbutton_textview=0x7f0d0058;
- public static final int levels_bottomRow=0x7f0d0061;
- public static final int levels_topRow=0x7f0d0060;
- public static final int levels_topbar=0x7f0d005e;
- public static final int levelup_level=0x7f0d0063;
- public static final int levelup_mainlayout=0x7f0d0062;
- public static final int levelup_text=0x7f0d0064;
- public static final int levelup_unlocklist=0x7f0d0066;
- public static final int line1=0x7f0d0070;
- public static final int line3=0x7f0d0074;
- public static final int listMode=0x7f0d0009;
- public static final int list_item=0x7f0d0028;
- public static final int media_actions=0x7f0d006e;
- public static final int message_exitbutton=0x7f0d0069;
- public static final int message_leftbutton=0x7f0d0068;
- public static final int message_title=0x7f0d0067;
- public static final int message_tryagainbutton=0x7f0d006a;
- public static final int middle=0x7f0d001a;
- public static final int multiply=0x7f0d0013;
- public static final int never=0x7f0d001e;
- public static final int none=0x7f0d000e;
- public static final int normal=0x7f0d000a;
- public static final int parentPanel=0x7f0d002d;
- public static final int progress_circular=0x7f0d0005;
- public static final int progress_horizontal=0x7f0d0006;
- public static final int radio=0x7f0d003b;
- public static final int screen=0x7f0d0014;
- public static final int scrollIndicatorDown=0x7f0d0035;
- public static final int scrollIndicatorUp=0x7f0d0032;
- public static final int scrollView=0x7f0d0033;
- public static final int search_badge=0x7f0d0045;
- public static final int search_bar=0x7f0d0044;
- public static final int search_button=0x7f0d0046;
- public static final int search_close_btn=0x7f0d004b;
- public static final int search_edit_frame=0x7f0d0047;
- public static final int search_go_btn=0x7f0d004d;
- public static final int search_mag_icon=0x7f0d0048;
- public static final int search_plate=0x7f0d0049;
- public static final int search_src_text=0x7f0d004a;
- public static final int search_voice_btn=0x7f0d004e;
- public static final int select_dialog_listview=0x7f0d004f;
- public static final int shortcut=0x7f0d003a;
- public static final int shortmenu_continue=0x7f0d0079;
- public static final int shortmenu_exit=0x7f0d007b;
- public static final int shortmenu_restart=0x7f0d007a;
- public static final int shortmenu_topbar=0x7f0d0078;
- public static final int showCustom=0x7f0d000f;
- public static final int showHome=0x7f0d0010;
- public static final int showTitle=0x7f0d0011;
- public static final int spacer=0x7f0d002c;
- public static final int split_action_bar=0x7f0d0007;
- public static final int src_atop=0x7f0d0015;
- public static final int src_in=0x7f0d0016;
- public static final int src_over=0x7f0d0017;
- public static final int startscreen_comingsoon=0x7f0d007e;
- public static final int startscreen_maxcheat=0x7f0d007f;
- public static final int startscreen_play=0x7f0d007d;
- public static final int startscreen_sound=0x7f0d007c;
- public static final int status_bar_latest_event_content=0x7f0d006d;
- public static final int submit_area=0x7f0d004c;
- public static final int tabMode=0x7f0d000b;
- public static final int text=0x7f0d0075;
- public static final int text2=0x7f0d0073;
- public static final int textSpacerNoButtons=0x7f0d0034;
- public static final int textView=0x7f0d00a3;
- public static final int textView2=0x7f0d00a5;
- public static final int time=0x7f0d0071;
- public static final int title=0x7f0d002a;
- public static final int title_template=0x7f0d002f;
- public static final int toolProgressBar=0x7f0d0085;
- public static final int toolProgressBarView=0x7f0d0083;
- public static final int toolProgressButtonAnimation=0x7f0d0084;
- public static final int toolbutton_1=0x7f0d0086;
- public static final int toolbutton_2=0x7f0d0087;
- public static final int toolbutton_3=0x7f0d0088;
- public static final int toolbutton_4=0x7f0d0089;
- public static final int toolofferslot_slot=0x7f0d0081;
- public static final int toolofferslot_title=0x7f0d0080;
- public static final int toolshop_price_button=0x7f0d0091;
- public static final int toolshop_scrollview=0x7f0d008f;
- public static final int toolshop_slot1=0x7f0d008b;
- public static final int toolshop_slot2=0x7f0d008c;
- public static final int toolshop_slot3=0x7f0d008d;
- public static final int toolshop_slot4=0x7f0d008e;
- public static final int toolshop_tool_offer_layout=0x7f0d0090;
- public static final int toolshop_topbar=0x7f0d008a;
- public static final int toolslot_image=0x7f0d0082;
- public static final int topPanel=0x7f0d002e;
- public static final int topbar_energycount=0x7f0d0099;
- public static final int topbar_energyview=0x7f0d0098;
- public static final int topbar_layout=0x7f0d0092;
- public static final int topbar_leveldisplay=0x7f0d0094;
- public static final int topbar_levellayout=0x7f0d0093;
- public static final int topbar_levelprogress=0x7f0d0095;
- public static final int topbar_resetButton=0x7f0d009d;
- public static final int topbar_soundtoggle=0x7f0d009a;
- public static final int topbar_starcount=0x7f0d0097;
- public static final int topbar_starcount_decrease=0x7f0d009c;
- public static final int topbar_starview=0x7f0d0096;
- public static final int topbar_toolshop=0x7f0d009b;
- public static final int tutorial_empty=0x7f0d009e;
- public static final int tutorial_place_ramp=0x7f0d00a2;
- public static final int tutorial_place_ramp_2=0x7f0d00a4;
- public static final int tutorial_ramp_in_air=0x7f0d00a6;
- public static final int tutorial_tools=0x7f0d00a0;
- public static final int tutorial_welcome=0x7f0d009f;
- public static final int unlockmessage_message=0x7f0d00a8;
- public static final int unlockmessage_toolimage=0x7f0d00a7;
- public static final int up=0x7f0d0008;
- public static final int useLogo=0x7f0d0012;
- public static final int withText=0x7f0d001f;
- public static final int worldbutton_energycount=0x7f0d00af;
- public static final int worldbutton_levelcount=0x7f0d00ac;
- public static final int worldbutton_lock=0x7f0d00b1;
- public static final int worldbutton_preview=0x7f0d00aa;
- public static final int worldbutton_starcount=0x7f0d00ae;
- public static final int worldbutton_tickView=0x7f0d00ab;
- public static final int worldbutton_title=0x7f0d00a9;
- public static final int worlds_layout=0x7f0d00b3;
- public static final int worlds_topbar=0x7f0d00b2;
- public static final int wrap_content=0x7f0d0020;
- }
- public static final class integer {
- public static final int abc_config_activityDefaultDur=0x7f0b0001;
- public static final int abc_config_activityShortDur=0x7f0b0002;
- public static final int abc_max_action_buttons=0x7f0b0000;
- public static final int cancel_button_image_alpha=0x7f0b0003;
- public static final int status_bar_notification_info_maxnum=0x7f0b0004;
- }
- public static final class layout {
- public static final int abc_action_bar_title_item=0x7f040000;
- public static final int abc_action_bar_up_container=0x7f040001;
- public static final int abc_action_bar_view_list_nav_layout=0x7f040002;
- public static final int abc_action_menu_item_layout=0x7f040003;
- public static final int abc_action_menu_layout=0x7f040004;
- public static final int abc_action_mode_bar=0x7f040005;
- public static final int abc_action_mode_close_item_material=0x7f040006;
- public static final int abc_activity_chooser_view=0x7f040007;
- public static final int abc_activity_chooser_view_list_item=0x7f040008;
- public static final int abc_alert_dialog_button_bar_material=0x7f040009;
- public static final int abc_alert_dialog_material=0x7f04000a;
- public static final int abc_dialog_title_material=0x7f04000b;
- public static final int abc_expanded_menu_layout=0x7f04000c;
- public static final int abc_list_menu_item_checkbox=0x7f04000d;
- public static final int abc_list_menu_item_icon=0x7f04000e;
- public static final int abc_list_menu_item_layout=0x7f04000f;
- public static final int abc_list_menu_item_radio=0x7f040010;
- public static final int abc_popup_menu_item_layout=0x7f040011;
- public static final int abc_screen_content_include=0x7f040012;
- public static final int abc_screen_simple=0x7f040013;
- public static final int abc_screen_simple_overlay_action_mode=0x7f040014;
- public static final int abc_screen_toolbar=0x7f040015;
- public static final int abc_search_dropdown_item_icons_2line=0x7f040016;
- public static final int abc_search_view=0x7f040017;
- public static final int abc_select_dialog_material=0x7f040018;
- public static final int game=0x7f040019;
- public static final int levelbutton=0x7f04001a;
- public static final int levels=0x7f04001b;
- public static final int levelup_message=0x7f04001c;
- public static final int message=0x7f04001d;
- public static final int notification_media_action=0x7f04001e;
- public static final int notification_media_cancel_action=0x7f04001f;
- public static final int notification_template_big_media=0x7f040020;
- public static final int notification_template_big_media_narrow=0x7f040021;
- public static final int notification_template_lines=0x7f040022;
- public static final int notification_template_media=0x7f040023;
- public static final int notification_template_part_chronometer=0x7f040024;
- public static final int notification_template_part_time=0x7f040025;
- public static final int select_dialog_item_material=0x7f040026;
- public static final int select_dialog_multichoice_material=0x7f040027;
- public static final int select_dialog_singlechoice_material=0x7f040028;
- public static final int short_menu=0x7f040029;
- public static final int start_screen=0x7f04002a;
- public static final int support_simple_spinner_dropdown_item=0x7f04002b;
- public static final int tool_offer_slot=0x7f04002c;
- public static final int tool_slot=0x7f04002d;
- public static final int toolbutton=0x7f04002e;
- public static final int toolbuttonbar=0x7f04002f;
- public static final int toolshop=0x7f040030;
- public static final int topbar=0x7f040031;
- public static final int tutorial=0x7f040032;
- public static final int unlock_message=0x7f040033;
- public static final int world_button=0x7f040034;
- public static final int worlds=0x7f040035;
- }
- public static final class mipmap {
- public static final int ic_launcher=0x7f030000;
- }
- public static final class raw {
- public static final int background=0x7f060000;
- public static final int ramp=0x7f060001;
- }
- public static final class string {
- public static final int abc_action_bar_home_description=0x7f070000;
- public static final int abc_action_bar_home_description_format=0x7f070001;
- public static final int abc_action_bar_home_subtitle_description_format=0x7f070002;
- public static final int abc_action_bar_up_description=0x7f070003;
- public static final int abc_action_menu_overflow_description=0x7f070004;
- public static final int abc_action_mode_done=0x7f070005;
- public static final int abc_activity_chooser_view_see_all=0x7f070006;
- public static final int abc_activitychooserview_choose_application=0x7f070007;
- public static final int abc_capital_off=0x7f070008;
- public static final int abc_capital_on=0x7f070009;
- public static final int abc_search_hint=0x7f07000a;
- public static final int abc_searchview_description_clear=0x7f07000b;
- public static final int abc_searchview_description_query=0x7f07000c;
- public static final int abc_searchview_description_search=0x7f07000d;
- public static final int abc_searchview_description_submit=0x7f07000e;
- public static final int abc_searchview_description_voice=0x7f07000f;
- public static final int abc_shareactionprovider_share_with=0x7f070010;
- public static final int abc_shareactionprovider_share_with_application=0x7f070011;
- public static final int abc_toolbar_collapse_description=0x7f070012;
- public static final int app_name=0x7f070014;
- public static final int status_bar_notification_info_overflow=0x7f070013;
- }
- public static final class style {
- public static final int AlertDialog_AppCompat=0x7f0a007d;
- public static final int AlertDialog_AppCompat_Light=0x7f0a007e;
- public static final int Animation_AppCompat_Dialog=0x7f0a007f;
- public static final int Animation_AppCompat_DropDownUp=0x7f0a0080;
- public static final int AppTheme=0x7f0a0081;
- public static final int Base_AlertDialog_AppCompat=0x7f0a0082;
- public static final int Base_AlertDialog_AppCompat_Light=0x7f0a0083;
- public static final int Base_Animation_AppCompat_Dialog=0x7f0a0084;
- public static final int Base_Animation_AppCompat_DropDownUp=0x7f0a0085;
- public static final int Base_DialogWindowTitle_AppCompat=0x7f0a0086;
- public static final int Base_DialogWindowTitleBackground_AppCompat=0x7f0a0087;
- public static final int Base_TextAppearance_AppCompat=0x7f0a002f;
- public static final int Base_TextAppearance_AppCompat_Body1=0x7f0a0030;
- public static final int Base_TextAppearance_AppCompat_Body2=0x7f0a0031;
- public static final int Base_TextAppearance_AppCompat_Button=0x7f0a0019;
- public static final int Base_TextAppearance_AppCompat_Caption=0x7f0a0032;
- public static final int Base_TextAppearance_AppCompat_Display1=0x7f0a0033;
- public static final int Base_TextAppearance_AppCompat_Display2=0x7f0a0034;
- public static final int Base_TextAppearance_AppCompat_Display3=0x7f0a0035;
- public static final int Base_TextAppearance_AppCompat_Display4=0x7f0a0036;
- public static final int Base_TextAppearance_AppCompat_Headline=0x7f0a0037;
- public static final int Base_TextAppearance_AppCompat_Inverse=0x7f0a0004;
- public static final int Base_TextAppearance_AppCompat_Large=0x7f0a0038;
- public static final int Base_TextAppearance_AppCompat_Large_Inverse=0x7f0a0005;
- public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0a0039;
- public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0a003a;
- public static final int Base_TextAppearance_AppCompat_Medium=0x7f0a003b;
- public static final int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f0a0006;
- public static final int Base_TextAppearance_AppCompat_Menu=0x7f0a003c;
- public static final int Base_TextAppearance_AppCompat_SearchResult=0x7f0a0088;
- public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0a003d;
- public static final int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f0a003e;
- public static final int Base_TextAppearance_AppCompat_Small=0x7f0a003f;
- public static final int Base_TextAppearance_AppCompat_Small_Inverse=0x7f0a0007;
- public static final int Base_TextAppearance_AppCompat_Subhead=0x7f0a0040;
- public static final int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f0a0008;
- public static final int Base_TextAppearance_AppCompat_Title=0x7f0a0041;
- public static final int Base_TextAppearance_AppCompat_Title_Inverse=0x7f0a0009;
- public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0a0042;
- public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0a0043;
- public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0a0044;
- public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0a0045;
- public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0a0046;
- public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0a0047;
- public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0a0048;
- public static final int Base_TextAppearance_AppCompat_Widget_Button=0x7f0a0049;
- public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0a0079;
- public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f0a0089;
- public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0a004a;
- public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0a004b;
- public static final int Base_TextAppearance_AppCompat_Widget_Switch=0x7f0a004c;
- public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0a004d;
- public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0a008a;
- public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0a004e;
- public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0a004f;
- public static final int Base_Theme_AppCompat=0x7f0a0050;
- public static final int Base_Theme_AppCompat_CompactMenu=0x7f0a008b;
- public static final int Base_Theme_AppCompat_Dialog=0x7f0a000a;
- public static final int Base_Theme_AppCompat_Dialog_Alert=0x7f0a008c;
- public static final int Base_Theme_AppCompat_Dialog_FixedSize=0x7f0a008d;
- public static final int Base_Theme_AppCompat_Dialog_MinWidth=0x7f0a008e;
- public static final int Base_Theme_AppCompat_DialogWhenLarge=0x7f0a0001;
- public static final int Base_Theme_AppCompat_Light=0x7f0a0051;
- public static final int Base_Theme_AppCompat_Light_DarkActionBar=0x7f0a008f;
- public static final int Base_Theme_AppCompat_Light_Dialog=0x7f0a000b;
- public static final int Base_Theme_AppCompat_Light_Dialog_Alert=0x7f0a0090;
- public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f0a0091;
- public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth=0x7f0a0092;
- public static final int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f0a0002;
- public static final int Base_ThemeOverlay_AppCompat=0x7f0a0093;
- public static final int Base_ThemeOverlay_AppCompat_ActionBar=0x7f0a0094;
- public static final int Base_ThemeOverlay_AppCompat_Dark=0x7f0a0095;
- public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0a0096;
- public static final int Base_ThemeOverlay_AppCompat_Light=0x7f0a0097;
- public static final int Base_V11_Theme_AppCompat_Dialog=0x7f0a000c;
- public static final int Base_V11_Theme_AppCompat_Light_Dialog=0x7f0a000d;
- public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView=0x7f0a0015;
- public static final int Base_V12_Widget_AppCompat_EditText=0x7f0a0016;
- public static final int Base_V21_Theme_AppCompat=0x7f0a0052;
- public static final int Base_V21_Theme_AppCompat_Dialog=0x7f0a0053;
- public static final int Base_V21_Theme_AppCompat_Light=0x7f0a0054;
- public static final int Base_V21_Theme_AppCompat_Light_Dialog=0x7f0a0055;
- public static final int Base_V22_Theme_AppCompat=0x7f0a0077;
- public static final int Base_V22_Theme_AppCompat_Light=0x7f0a0078;
- public static final int Base_V23_Theme_AppCompat=0x7f0a007a;
- public static final int Base_V23_Theme_AppCompat_Light=0x7f0a007b;
- public static final int Base_V7_Theme_AppCompat=0x7f0a0098;
- public static final int Base_V7_Theme_AppCompat_Dialog=0x7f0a0099;
- public static final int Base_V7_Theme_AppCompat_Light=0x7f0a009a;
- public static final int Base_V7_Theme_AppCompat_Light_Dialog=0x7f0a009b;
- public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView=0x7f0a009c;
- public static final int Base_V7_Widget_AppCompat_EditText=0x7f0a009d;
- public static final int Base_Widget_AppCompat_ActionBar=0x7f0a009e;
- public static final int Base_Widget_AppCompat_ActionBar_Solid=0x7f0a009f;
- public static final int Base_Widget_AppCompat_ActionBar_TabBar=0x7f0a00a0;
- public static final int Base_Widget_AppCompat_ActionBar_TabText=0x7f0a0056;
- public static final int Base_Widget_AppCompat_ActionBar_TabView=0x7f0a0057;
- public static final int Base_Widget_AppCompat_ActionButton=0x7f0a0058;
- public static final int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f0a0059;
- public static final int Base_Widget_AppCompat_ActionButton_Overflow=0x7f0a005a;
- public static final int Base_Widget_AppCompat_ActionMode=0x7f0a00a1;
- public static final int Base_Widget_AppCompat_ActivityChooserView=0x7f0a00a2;
- public static final int Base_Widget_AppCompat_AutoCompleteTextView=0x7f0a0017;
- public static final int Base_Widget_AppCompat_Button=0x7f0a005b;
- public static final int Base_Widget_AppCompat_Button_Borderless=0x7f0a005c;
- public static final int Base_Widget_AppCompat_Button_Borderless_Colored=0x7f0a005d;
- public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0a00a3;
- public static final int Base_Widget_AppCompat_Button_Colored=0x7f0a007c;
- public static final int Base_Widget_AppCompat_Button_Small=0x7f0a005e;
- public static final int Base_Widget_AppCompat_ButtonBar=0x7f0a005f;
- public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog=0x7f0a00a4;
- public static final int Base_Widget_AppCompat_CompoundButton_CheckBox=0x7f0a0060;
- public static final int Base_Widget_AppCompat_CompoundButton_RadioButton=0x7f0a0061;
- public static final int Base_Widget_AppCompat_CompoundButton_Switch=0x7f0a00a5;
- public static final int Base_Widget_AppCompat_DrawerArrowToggle=0x7f0a0000;
- public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common=0x7f0a00a6;
- public static final int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f0a0062;
- public static final int Base_Widget_AppCompat_EditText=0x7f0a0018;
- public static final int Base_Widget_AppCompat_ImageButton=0x7f0a0063;
- public static final int Base_Widget_AppCompat_Light_ActionBar=0x7f0a00a7;
- public static final int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f0a00a8;
- public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f0a00a9;
- public static final int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f0a0064;
- public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0a0065;
- public static final int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f0a0066;
- public static final int Base_Widget_AppCompat_Light_PopupMenu=0x7f0a0067;
- public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0a0068;
- public static final int Base_Widget_AppCompat_ListPopupWindow=0x7f0a0069;
- public static final int Base_Widget_AppCompat_ListView=0x7f0a006a;
- public static final int Base_Widget_AppCompat_ListView_DropDown=0x7f0a006b;
- public static final int Base_Widget_AppCompat_ListView_Menu=0x7f0a006c;
- public static final int Base_Widget_AppCompat_PopupMenu=0x7f0a006d;
- public static final int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f0a006e;
- public static final int Base_Widget_AppCompat_PopupWindow=0x7f0a00aa;
- public static final int Base_Widget_AppCompat_ProgressBar=0x7f0a000e;
- public static final int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f0a000f;
- public static final int Base_Widget_AppCompat_RatingBar=0x7f0a006f;
- public static final int Base_Widget_AppCompat_SearchView=0x7f0a00ab;
- public static final int Base_Widget_AppCompat_SearchView_ActionBar=0x7f0a00ac;
- public static final int Base_Widget_AppCompat_SeekBar=0x7f0a0070;
- public static final int Base_Widget_AppCompat_Spinner=0x7f0a0071;
- public static final int Base_Widget_AppCompat_Spinner_Underlined=0x7f0a0003;
- public static final int Base_Widget_AppCompat_TextView_SpinnerItem=0x7f0a0072;
- public static final int Base_Widget_AppCompat_Toolbar=0x7f0a00ad;
- public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f0a0073;
- public static final int GameButton=0x7f0a00ae;
- public static final int Platform_AppCompat=0x7f0a0010;
- public static final int Platform_AppCompat_Light=0x7f0a0011;
- public static final int Platform_ThemeOverlay_AppCompat=0x7f0a0074;
- public static final int Platform_ThemeOverlay_AppCompat_Dark=0x7f0a0075;
- public static final int Platform_ThemeOverlay_AppCompat_Light=0x7f0a0076;
- public static final int Platform_V11_AppCompat=0x7f0a0012;
- public static final int Platform_V11_AppCompat_Light=0x7f0a0013;
- public static final int Platform_V14_AppCompat=0x7f0a001a;
- public static final int Platform_V14_AppCompat_Light=0x7f0a001b;
- public static final int Platform_Widget_AppCompat_Spinner=0x7f0a0014;
- public static final int RtlOverlay_DialogWindowTitle_AppCompat=0x7f0a0021;
- public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f0a0022;
- public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon=0x7f0a0023;
- public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f0a0024;
- public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f0a0025;
- public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f0a0026;
- public static final int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f0a0027;
- public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f0a0028;
- public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f0a0029;
- public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f0a002a;
- public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f0a002b;
- public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f0a002c;
- public static final int RtlUnderlay_Widget_AppCompat_ActionButton=0x7f0a002d;
- public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow=0x7f0a002e;
- public static final int TextAppearance_AppCompat=0x7f0a00af;
- public static final int TextAppearance_AppCompat_Body1=0x7f0a00b0;
- public static final int TextAppearance_AppCompat_Body2=0x7f0a00b1;
- public static final int TextAppearance_AppCompat_Button=0x7f0a00b2;
- public static final int TextAppearance_AppCompat_Caption=0x7f0a00b3;
- public static final int TextAppearance_AppCompat_Display1=0x7f0a00b4;
- public static final int TextAppearance_AppCompat_Display2=0x7f0a00b5;
- public static final int TextAppearance_AppCompat_Display3=0x7f0a00b6;
- public static final int TextAppearance_AppCompat_Display4=0x7f0a00b7;
- public static final int TextAppearance_AppCompat_Headline=0x7f0a00b8;
- public static final int TextAppearance_AppCompat_Inverse=0x7f0a00b9;
- public static final int TextAppearance_AppCompat_Large=0x7f0a00ba;
- public static final int TextAppearance_AppCompat_Large_Inverse=0x7f0a00bb;
- public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0a00bc;
- public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0a00bd;
- public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0a00be;
- public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0a00bf;
- public static final int TextAppearance_AppCompat_Medium=0x7f0a00c0;
- public static final int TextAppearance_AppCompat_Medium_Inverse=0x7f0a00c1;
- public static final int TextAppearance_AppCompat_Menu=0x7f0a00c2;
- public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0a00c3;
- public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0a00c4;
- public static final int TextAppearance_AppCompat_Small=0x7f0a00c5;
- public static final int TextAppearance_AppCompat_Small_Inverse=0x7f0a00c6;
- public static final int TextAppearance_AppCompat_Subhead=0x7f0a00c7;
- public static final int TextAppearance_AppCompat_Subhead_Inverse=0x7f0a00c8;
- public static final int TextAppearance_AppCompat_Title=0x7f0a00c9;
- public static final int TextAppearance_AppCompat_Title_Inverse=0x7f0a00ca;
- public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0a00cb;
- public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0a00cc;
- public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0a00cd;
- public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0a00ce;
- public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0a00cf;
- public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0a00d0;
- public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0a00d1;
- public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0a00d2;
- public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0a00d3;
- public static final int TextAppearance_AppCompat_Widget_Button=0x7f0a00d4;
- public static final int TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0a00d5;
- public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0a00d6;
- public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0a00d7;
- public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0a00d8;
- public static final int TextAppearance_AppCompat_Widget_Switch=0x7f0a00d9;
- public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0a00da;
- public static final int TextAppearance_StatusBar_EventContent=0x7f0a001c;
- public static final int TextAppearance_StatusBar_EventContent_Info=0x7f0a001d;
- public static final int TextAppearance_StatusBar_EventContent_Line2=0x7f0a001e;
- public static final int TextAppearance_StatusBar_EventContent_Time=0x7f0a001f;
- public static final int TextAppearance_StatusBar_EventContent_Title=0x7f0a0020;
- public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0a00db;
- public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0a00dc;
- public static final int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0a00dd;
- public static final int Theme_AppCompat=0x7f0a00de;
- public static final int Theme_AppCompat_CompactMenu=0x7f0a00df;
- public static final int Theme_AppCompat_Dialog=0x7f0a00e0;
- public static final int Theme_AppCompat_Dialog_Alert=0x7f0a00e1;
- public static final int Theme_AppCompat_Dialog_MinWidth=0x7f0a00e2;
- public static final int Theme_AppCompat_DialogWhenLarge=0x7f0a00e3;
- public static final int Theme_AppCompat_Light=0x7f0a00e4;
- public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0a00e5;
- public static final int Theme_AppCompat_Light_Dialog=0x7f0a00e6;
- public static final int Theme_AppCompat_Light_Dialog_Alert=0x7f0a00e7;
- public static final int Theme_AppCompat_Light_Dialog_MinWidth=0x7f0a00e8;
- public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0a00e9;
- public static final int Theme_AppCompat_Light_NoActionBar=0x7f0a00ea;
- public static final int Theme_AppCompat_NoActionBar=0x7f0a00eb;
- public static final int ThemeOverlay_AppCompat=0x7f0a00ec;
- public static final int ThemeOverlay_AppCompat_ActionBar=0x7f0a00ed;
- public static final int ThemeOverlay_AppCompat_Dark=0x7f0a00ee;
- public static final int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0a00ef;
- public static final int ThemeOverlay_AppCompat_Light=0x7f0a00f0;
- public static final int TutorialTextView=0x7f0a00f1;
- public static final int Widget_AppCompat_ActionBar=0x7f0a00f2;
- public static final int Widget_AppCompat_ActionBar_Solid=0x7f0a00f3;
- public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0a00f4;
- public static final int Widget_AppCompat_ActionBar_TabText=0x7f0a00f5;
- public static final int Widget_AppCompat_ActionBar_TabView=0x7f0a00f6;
- public static final int Widget_AppCompat_ActionButton=0x7f0a00f7;
- public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0a00f8;
- public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0a00f9;
- public static final int Widget_AppCompat_ActionMode=0x7f0a00fa;
- public static final int Widget_AppCompat_ActivityChooserView=0x7f0a00fb;
- public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0a00fc;
- public static final int Widget_AppCompat_Button=0x7f0a00fd;
- public static final int Widget_AppCompat_Button_Borderless=0x7f0a00fe;
- public static final int Widget_AppCompat_Button_Borderless_Colored=0x7f0a00ff;
- public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0a0100;
- public static final int Widget_AppCompat_Button_Colored=0x7f0a0101;
- public static final int Widget_AppCompat_Button_Small=0x7f0a0102;
- public static final int Widget_AppCompat_ButtonBar=0x7f0a0103;
- public static final int Widget_AppCompat_ButtonBar_AlertDialog=0x7f0a0104;
- public static final int Widget_AppCompat_CompoundButton_CheckBox=0x7f0a0105;
- public static final int Widget_AppCompat_CompoundButton_RadioButton=0x7f0a0106;
- public static final int Widget_AppCompat_CompoundButton_Switch=0x7f0a0107;
- public static final int Widget_AppCompat_DrawerArrowToggle=0x7f0a0108;
- public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0a0109;
- public static final int Widget_AppCompat_EditText=0x7f0a010a;
- public static final int Widget_AppCompat_ImageButton=0x7f0a010b;
- public static final int Widget_AppCompat_Light_ActionBar=0x7f0a010c;
- public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0a010d;
- public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0a010e;
- public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0a010f;
- public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0a0110;
- public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0a0111;
- public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0a0112;
- public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0a0113;
- public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0a0114;
- public static final int Widget_AppCompat_Light_ActionButton=0x7f0a0115;
- public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0a0116;
- public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0a0117;
- public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0a0118;
- public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0a0119;
- public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0a011a;
- public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0a011b;
- public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0a011c;
- public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0a011d;
- public static final int Widget_AppCompat_Light_PopupMenu=0x7f0a011e;
- public static final int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0a011f;
- public static final int Widget_AppCompat_Light_SearchView=0x7f0a0120;
- public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0a0121;
- public static final int Widget_AppCompat_ListPopupWindow=0x7f0a0122;
- public static final int Widget_AppCompat_ListView=0x7f0a0123;
- public static final int Widget_AppCompat_ListView_DropDown=0x7f0a0124;
- public static final int Widget_AppCompat_ListView_Menu=0x7f0a0125;
- public static final int Widget_AppCompat_PopupMenu=0x7f0a0126;
- public static final int Widget_AppCompat_PopupMenu_Overflow=0x7f0a0127;
- public static final int Widget_AppCompat_PopupWindow=0x7f0a0128;
- public static final int Widget_AppCompat_ProgressBar=0x7f0a0129;
- public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0a012a;
- public static final int Widget_AppCompat_RatingBar=0x7f0a012b;
- public static final int Widget_AppCompat_SearchView=0x7f0a012c;
- public static final int Widget_AppCompat_SearchView_ActionBar=0x7f0a012d;
- public static final int Widget_AppCompat_SeekBar=0x7f0a012e;
- public static final int Widget_AppCompat_Spinner=0x7f0a012f;
- public static final int Widget_AppCompat_Spinner_DropDown=0x7f0a0130;
- public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0a0131;
- public static final int Widget_AppCompat_Spinner_Underlined=0x7f0a0132;
- public static final int Widget_AppCompat_TextView_SpinnerItem=0x7f0a0133;
- public static final int Widget_AppCompat_Toolbar=0x7f0a0134;
- public static final int Widget_AppCompat_Toolbar_Button_Navigation=0x7f0a0135;
- }
- public static final class styleable {
- /** Attributes that can be used with a ActionBar.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #ActionBar_background com.example.julian.endlessroll:background} | |
- {@link #ActionBar_backgroundSplit com.example.julian.endlessroll:backgroundSplit} | |
- {@link #ActionBar_backgroundStacked com.example.julian.endlessroll:backgroundStacked} | |
- {@link #ActionBar_contentInsetEnd com.example.julian.endlessroll:contentInsetEnd} | |
- {@link #ActionBar_contentInsetLeft com.example.julian.endlessroll:contentInsetLeft} | |
- {@link #ActionBar_contentInsetRight com.example.julian.endlessroll:contentInsetRight} | |
- {@link #ActionBar_contentInsetStart com.example.julian.endlessroll:contentInsetStart} | |
- {@link #ActionBar_customNavigationLayout com.example.julian.endlessroll:customNavigationLayout} | |
- {@link #ActionBar_displayOptions com.example.julian.endlessroll:displayOptions} | |
- {@link #ActionBar_divider com.example.julian.endlessroll:divider} | |
- {@link #ActionBar_elevation com.example.julian.endlessroll:elevation} | |
- {@link #ActionBar_height com.example.julian.endlessroll:height} | |
- {@link #ActionBar_hideOnContentScroll com.example.julian.endlessroll:hideOnContentScroll} | |
- {@link #ActionBar_homeAsUpIndicator com.example.julian.endlessroll:homeAsUpIndicator} | |
- {@link #ActionBar_homeLayout com.example.julian.endlessroll:homeLayout} | |
- {@link #ActionBar_icon com.example.julian.endlessroll:icon} | |
- {@link #ActionBar_indeterminateProgressStyle com.example.julian.endlessroll:indeterminateProgressStyle} | |
- {@link #ActionBar_itemPadding com.example.julian.endlessroll:itemPadding} | |
- {@link #ActionBar_logo com.example.julian.endlessroll:logo} | |
- {@link #ActionBar_navigationMode com.example.julian.endlessroll:navigationMode} | |
- {@link #ActionBar_popupTheme com.example.julian.endlessroll:popupTheme} | |
- {@link #ActionBar_progressBarPadding com.example.julian.endlessroll:progressBarPadding} | |
- {@link #ActionBar_progressBarStyle com.example.julian.endlessroll:progressBarStyle} | |
- {@link #ActionBar_subtitle com.example.julian.endlessroll:subtitle} | |
- {@link #ActionBar_subtitleTextStyle com.example.julian.endlessroll:subtitleTextStyle} | |
- {@link #ActionBar_title com.example.julian.endlessroll:title} | |
- {@link #ActionBar_titleTextStyle com.example.julian.endlessroll:titleTextStyle} | |
-
- @see #ActionBar_background
- @see #ActionBar_backgroundSplit
- @see #ActionBar_backgroundStacked
- @see #ActionBar_contentInsetEnd
- @see #ActionBar_contentInsetLeft
- @see #ActionBar_contentInsetRight
- @see #ActionBar_contentInsetStart
- @see #ActionBar_customNavigationLayout
- @see #ActionBar_displayOptions
- @see #ActionBar_divider
- @see #ActionBar_elevation
- @see #ActionBar_height
- @see #ActionBar_hideOnContentScroll
- @see #ActionBar_homeAsUpIndicator
- @see #ActionBar_homeLayout
- @see #ActionBar_icon
- @see #ActionBar_indeterminateProgressStyle
- @see #ActionBar_itemPadding
- @see #ActionBar_logo
- @see #ActionBar_navigationMode
- @see #ActionBar_popupTheme
- @see #ActionBar_progressBarPadding
- @see #ActionBar_progressBarStyle
- @see #ActionBar_subtitle
- @see #ActionBar_subtitleTextStyle
- @see #ActionBar_title
- @see #ActionBar_titleTextStyle
- */
- public static final int[] ActionBar = {
- 0x7f010001, 0x7f010003, 0x7f010004, 0x7f010005,
- 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009,
- 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d,
- 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011,
- 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015,
- 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019,
- 0x7f01001a, 0x7f01001b, 0x7f01007c
- };
- /**
- This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#background}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:background
- */
- public static final int ActionBar_background = 10;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#backgroundSplit}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- @attr name com.example.julian.endlessroll:backgroundSplit
- */
- public static final int ActionBar_backgroundSplit = 12;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#backgroundStacked}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- @attr name com.example.julian.endlessroll:backgroundStacked
- */
- public static final int ActionBar_backgroundStacked = 11;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#contentInsetEnd}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:contentInsetEnd
- */
- public static final int ActionBar_contentInsetEnd = 21;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#contentInsetLeft}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:contentInsetLeft
- */
- public static final int ActionBar_contentInsetLeft = 22;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#contentInsetRight}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:contentInsetRight
- */
- public static final int ActionBar_contentInsetRight = 23;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#contentInsetStart}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:contentInsetStart
- */
- public static final int ActionBar_contentInsetStart = 20;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#customNavigationLayout}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:customNavigationLayout
- */
- public static final int ActionBar_customNavigationLayout = 13;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#displayOptions}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be one or more (separated by '|') of the following constant values.
-
-
-
-
-Constant | Value | Description |
-none | 0 | |
-useLogo | 0x1 | |
-showHome | 0x2 | |
-homeAsUp | 0x4 | |
-showTitle | 0x8 | |
-showCustom | 0x10 | |
-disableHome | 0x20 | |
-
- @attr name com.example.julian.endlessroll:displayOptions
- */
- public static final int ActionBar_displayOptions = 3;
- /**
- This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#divider}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:divider
- */
- public static final int ActionBar_divider = 9;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#elevation}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:elevation
- */
- public static final int ActionBar_elevation = 24;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#height}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:height
- */
- public static final int ActionBar_height = 0;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#hideOnContentScroll}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:hideOnContentScroll
- */
- public static final int ActionBar_hideOnContentScroll = 19;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#homeAsUpIndicator}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:homeAsUpIndicator
- */
- public static final int ActionBar_homeAsUpIndicator = 26;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#homeLayout}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:homeLayout
- */
- public static final int ActionBar_homeLayout = 14;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#icon}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:icon
- */
- public static final int ActionBar_icon = 7;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#indeterminateProgressStyle}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:indeterminateProgressStyle
- */
- public static final int ActionBar_indeterminateProgressStyle = 16;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#itemPadding}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:itemPadding
- */
- public static final int ActionBar_itemPadding = 18;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#logo}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:logo
- */
- public static final int ActionBar_logo = 8;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#navigationMode}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be one of the following constant values.
-
-
-
-
-Constant | Value | Description |
-normal | 0 | |
-listMode | 1 | |
-tabMode | 2 | |
-
- @attr name com.example.julian.endlessroll:navigationMode
- */
- public static final int ActionBar_navigationMode = 2;
- /**
- This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#popupTheme}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:popupTheme
- */
- public static final int ActionBar_popupTheme = 25;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#progressBarPadding}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:progressBarPadding
- */
- public static final int ActionBar_progressBarPadding = 17;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#progressBarStyle}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:progressBarStyle
- */
- public static final int ActionBar_progressBarStyle = 15;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#subtitle}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:subtitle
- */
- public static final int ActionBar_subtitle = 4;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#subtitleTextStyle}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:subtitleTextStyle
- */
- public static final int ActionBar_subtitleTextStyle = 6;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#title}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:title
- */
- public static final int ActionBar_title = 1;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#titleTextStyle}
- attribute's value can be found in the {@link #ActionBar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:titleTextStyle
- */
- public static final int ActionBar_titleTextStyle = 5;
- /** Attributes that can be used with a ActionBarLayout.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #ActionBarLayout_android_layout_gravity android:layout_gravity} | |
-
- @see #ActionBarLayout_android_layout_gravity
- */
- public static final int[] ActionBarLayout = {
- 0x010100b3
- };
- /**
- This symbol is the offset where the {@link android.R.attr#layout_gravity}
- attribute's value can be found in the {@link #ActionBarLayout} array.
- @attr name android:layout_gravity
- */
- public static final int ActionBarLayout_android_layout_gravity = 0;
- /** Attributes that can be used with a ActionMenuItemView.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #ActionMenuItemView_android_minWidth android:minWidth} | |
-
- @see #ActionMenuItemView_android_minWidth
- */
- public static final int[] ActionMenuItemView = {
- 0x0101013f
- };
- /**
- This symbol is the offset where the {@link android.R.attr#minWidth}
- attribute's value can be found in the {@link #ActionMenuItemView} array.
- @attr name android:minWidth
- */
- public static final int ActionMenuItemView_android_minWidth = 0;
- /** Attributes that can be used with a ActionMenuView.
- */
- public static final int[] ActionMenuView = {
-
- };
- /** Attributes that can be used with a ActionMode.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #ActionMode_background com.example.julian.endlessroll:background} | |
- {@link #ActionMode_backgroundSplit com.example.julian.endlessroll:backgroundSplit} | |
- {@link #ActionMode_closeItemLayout com.example.julian.endlessroll:closeItemLayout} | |
- {@link #ActionMode_height com.example.julian.endlessroll:height} | |
- {@link #ActionMode_subtitleTextStyle com.example.julian.endlessroll:subtitleTextStyle} | |
- {@link #ActionMode_titleTextStyle com.example.julian.endlessroll:titleTextStyle} | |
-
- @see #ActionMode_background
- @see #ActionMode_backgroundSplit
- @see #ActionMode_closeItemLayout
- @see #ActionMode_height
- @see #ActionMode_subtitleTextStyle
- @see #ActionMode_titleTextStyle
- */
- public static final int[] ActionMode = {
- 0x7f010001, 0x7f010007, 0x7f010008, 0x7f01000c,
- 0x7f01000e, 0x7f01001c
- };
- /**
- This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#background}
- attribute's value can be found in the {@link #ActionMode} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:background
- */
- public static final int ActionMode_background = 3;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#backgroundSplit}
- attribute's value can be found in the {@link #ActionMode} array.
-
-
-
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- @attr name com.example.julian.endlessroll:backgroundSplit
- */
- public static final int ActionMode_backgroundSplit = 4;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#closeItemLayout}
- attribute's value can be found in the {@link #ActionMode} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:closeItemLayout
- */
- public static final int ActionMode_closeItemLayout = 5;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#height}
- attribute's value can be found in the {@link #ActionMode} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:height
- */
- public static final int ActionMode_height = 0;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#subtitleTextStyle}
- attribute's value can be found in the {@link #ActionMode} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:subtitleTextStyle
- */
- public static final int ActionMode_subtitleTextStyle = 2;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#titleTextStyle}
- attribute's value can be found in the {@link #ActionMode} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:titleTextStyle
- */
- public static final int ActionMode_titleTextStyle = 1;
- /** Attributes that can be used with a ActivityChooserView.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #ActivityChooserView_expandActivityOverflowButtonDrawable com.example.julian.endlessroll:expandActivityOverflowButtonDrawable} | |
- {@link #ActivityChooserView_initialActivityCount com.example.julian.endlessroll:initialActivityCount} | |
-
- @see #ActivityChooserView_expandActivityOverflowButtonDrawable
- @see #ActivityChooserView_initialActivityCount
- */
- public static final int[] ActivityChooserView = {
- 0x7f01001d, 0x7f01001e
- };
- /**
- This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#expandActivityOverflowButtonDrawable}
- attribute's value can be found in the {@link #ActivityChooserView} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:expandActivityOverflowButtonDrawable
- */
- public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#initialActivityCount}
- attribute's value can be found in the {@link #ActivityChooserView} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:initialActivityCount
- */
- public static final int ActivityChooserView_initialActivityCount = 0;
- /** Attributes that can be used with a AlertDialog.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #AlertDialog_android_layout android:layout} | |
- {@link #AlertDialog_buttonPanelSideLayout com.example.julian.endlessroll:buttonPanelSideLayout} | |
- {@link #AlertDialog_listItemLayout com.example.julian.endlessroll:listItemLayout} | |
- {@link #AlertDialog_listLayout com.example.julian.endlessroll:listLayout} | |
- {@link #AlertDialog_multiChoiceItemLayout com.example.julian.endlessroll:multiChoiceItemLayout} | |
- {@link #AlertDialog_singleChoiceItemLayout com.example.julian.endlessroll:singleChoiceItemLayout} | |
-
- @see #AlertDialog_android_layout
- @see #AlertDialog_buttonPanelSideLayout
- @see #AlertDialog_listItemLayout
- @see #AlertDialog_listLayout
- @see #AlertDialog_multiChoiceItemLayout
- @see #AlertDialog_singleChoiceItemLayout
- */
- public static final int[] AlertDialog = {
- 0x010100f2, 0x7f01001f, 0x7f010020, 0x7f010021,
- 0x7f010022, 0x7f010023
- };
- /**
- This symbol is the offset where the {@link android.R.attr#layout}
- attribute's value can be found in the {@link #AlertDialog} array.
- @attr name android:layout
- */
- public static final int AlertDialog_android_layout = 0;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#buttonPanelSideLayout}
- attribute's value can be found in the {@link #AlertDialog} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:buttonPanelSideLayout
- */
- public static final int AlertDialog_buttonPanelSideLayout = 1;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#listItemLayout}
- attribute's value can be found in the {@link #AlertDialog} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:listItemLayout
- */
- public static final int AlertDialog_listItemLayout = 5;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#listLayout}
- attribute's value can be found in the {@link #AlertDialog} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:listLayout
- */
- public static final int AlertDialog_listLayout = 2;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#multiChoiceItemLayout}
- attribute's value can be found in the {@link #AlertDialog} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:multiChoiceItemLayout
- */
- public static final int AlertDialog_multiChoiceItemLayout = 3;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#singleChoiceItemLayout}
- attribute's value can be found in the {@link #AlertDialog} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:singleChoiceItemLayout
- */
- public static final int AlertDialog_singleChoiceItemLayout = 4;
- /** Attributes that can be used with a AppCompatTextView.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #AppCompatTextView_android_textAppearance android:textAppearance} | |
- {@link #AppCompatTextView_textAllCaps com.example.julian.endlessroll:textAllCaps} | |
-
- @see #AppCompatTextView_android_textAppearance
- @see #AppCompatTextView_textAllCaps
- */
- public static final int[] AppCompatTextView = {
- 0x01010034, 0x7f010024
- };
- /**
- This symbol is the offset where the {@link android.R.attr#textAppearance}
- attribute's value can be found in the {@link #AppCompatTextView} array.
- @attr name android:textAppearance
- */
- public static final int AppCompatTextView_android_textAppearance = 0;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#textAllCaps}
- attribute's value can be found in the {@link #AppCompatTextView} array.
-
-
-
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a boolean value, either "true
" or "false
".
- @attr name com.example.julian.endlessroll:textAllCaps
- */
- public static final int AppCompatTextView_textAllCaps = 1;
- /** Attributes that can be used with a ButtonBarLayout.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #ButtonBarLayout_allowStacking com.example.julian.endlessroll:allowStacking} | |
-
- @see #ButtonBarLayout_allowStacking
- */
- public static final int[] ButtonBarLayout = {
- 0x7f010025
- };
- /**
- This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#allowStacking}
- attribute's value can be found in the {@link #ButtonBarLayout} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:allowStacking
- */
- public static final int ButtonBarLayout_allowStacking = 0;
- /** Attributes that can be used with a CompoundButton.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #CompoundButton_android_button android:button} | |
- {@link #CompoundButton_buttonTint com.example.julian.endlessroll:buttonTint} | |
- {@link #CompoundButton_buttonTintMode com.example.julian.endlessroll:buttonTintMode} | |
-
- @see #CompoundButton_android_button
- @see #CompoundButton_buttonTint
- @see #CompoundButton_buttonTintMode
- */
- public static final int[] CompoundButton = {
- 0x01010107, 0x7f010026, 0x7f010027
- };
- /**
- This symbol is the offset where the {@link android.R.attr#button}
- attribute's value can be found in the {@link #CompoundButton} array.
- @attr name android:button
- */
- public static final int CompoundButton_android_button = 0;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#buttonTint}
- attribute's value can be found in the {@link #CompoundButton} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:buttonTint
- */
- public static final int CompoundButton_buttonTint = 1;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#buttonTintMode}
- attribute's value can be found in the {@link #CompoundButton} array.
-
-
-
Must be one of the following constant values.
-
-
-
-
-Constant | Value | Description |
-src_over | 3 | |
-src_in | 5 | |
-src_atop | 9 | |
-multiply | 14 | |
-screen | 15 | |
-
- @attr name com.example.julian.endlessroll:buttonTintMode
- */
- public static final int CompoundButton_buttonTintMode = 2;
- /** Attributes that can be used with a DrawerArrowToggle.
- Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #DrawerArrowToggle_arrowHeadLength com.example.julian.endlessroll:arrowHeadLength} | |
- {@link #DrawerArrowToggle_arrowShaftLength com.example.julian.endlessroll:arrowShaftLength} | |
- {@link #DrawerArrowToggle_barLength com.example.julian.endlessroll:barLength} | |
- {@link #DrawerArrowToggle_color com.example.julian.endlessroll:color} | |
- {@link #DrawerArrowToggle_drawableSize com.example.julian.endlessroll:drawableSize} | |
- {@link #DrawerArrowToggle_gapBetweenBars com.example.julian.endlessroll:gapBetweenBars} | |
- {@link #DrawerArrowToggle_spinBars com.example.julian.endlessroll:spinBars} | |
- {@link #DrawerArrowToggle_thickness com.example.julian.endlessroll:thickness} | |
-
- @see #DrawerArrowToggle_arrowHeadLength
- @see #DrawerArrowToggle_arrowShaftLength
- @see #DrawerArrowToggle_barLength
- @see #DrawerArrowToggle_color
- @see #DrawerArrowToggle_drawableSize
- @see #DrawerArrowToggle_gapBetweenBars
- @see #DrawerArrowToggle_spinBars
- @see #DrawerArrowToggle_thickness
- */
- public static final int[] DrawerArrowToggle = {
- 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b,
- 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f
- };
- /**
- This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#arrowHeadLength}
- attribute's value can be found in the {@link #DrawerArrowToggle} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:arrowHeadLength
- */
- public static final int DrawerArrowToggle_arrowHeadLength = 4;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#arrowShaftLength}
- attribute's value can be found in the {@link #DrawerArrowToggle} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:arrowShaftLength
- */
- public static final int DrawerArrowToggle_arrowShaftLength = 5;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#barLength}
- attribute's value can be found in the {@link #DrawerArrowToggle} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:barLength
- */
- public static final int DrawerArrowToggle_barLength = 6;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#color}
- attribute's value can be found in the {@link #DrawerArrowToggle} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:color
- */
- public static final int DrawerArrowToggle_color = 0;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#drawableSize}
- attribute's value can be found in the {@link #DrawerArrowToggle} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:drawableSize
- */
- public static final int DrawerArrowToggle_drawableSize = 2;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#gapBetweenBars}
- attribute's value can be found in the {@link #DrawerArrowToggle} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:gapBetweenBars
- */
- public static final int DrawerArrowToggle_gapBetweenBars = 3;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#spinBars}
- attribute's value can be found in the {@link #DrawerArrowToggle} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:spinBars
- */
- public static final int DrawerArrowToggle_spinBars = 1;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#thickness}
- attribute's value can be found in the {@link #DrawerArrowToggle} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:thickness
- */
- public static final int DrawerArrowToggle_thickness = 7;
- /** Attributes that can be used with a LinearLayoutCompat.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #LinearLayoutCompat_android_baselineAligned android:baselineAligned} | |
- {@link #LinearLayoutCompat_android_baselineAlignedChildIndex android:baselineAlignedChildIndex} | |
- {@link #LinearLayoutCompat_android_gravity android:gravity} | |
- {@link #LinearLayoutCompat_android_orientation android:orientation} | |
- {@link #LinearLayoutCompat_android_weightSum android:weightSum} | |
- {@link #LinearLayoutCompat_divider com.example.julian.endlessroll:divider} | |
- {@link #LinearLayoutCompat_dividerPadding com.example.julian.endlessroll:dividerPadding} | |
- {@link #LinearLayoutCompat_measureWithLargestChild com.example.julian.endlessroll:measureWithLargestChild} | |
- {@link #LinearLayoutCompat_showDividers com.example.julian.endlessroll:showDividers} | |
-
- @see #LinearLayoutCompat_android_baselineAligned
- @see #LinearLayoutCompat_android_baselineAlignedChildIndex
- @see #LinearLayoutCompat_android_gravity
- @see #LinearLayoutCompat_android_orientation
- @see #LinearLayoutCompat_android_weightSum
- @see #LinearLayoutCompat_divider
- @see #LinearLayoutCompat_dividerPadding
- @see #LinearLayoutCompat_measureWithLargestChild
- @see #LinearLayoutCompat_showDividers
- */
- public static final int[] LinearLayoutCompat = {
- 0x010100af, 0x010100c4, 0x01010126, 0x01010127,
- 0x01010128, 0x7f01000b, 0x7f010030, 0x7f010031,
- 0x7f010032
- };
- /**
- This symbol is the offset where the {@link android.R.attr#baselineAligned}
- attribute's value can be found in the {@link #LinearLayoutCompat} array.
- @attr name android:baselineAligned
- */
- public static final int LinearLayoutCompat_android_baselineAligned = 2;
- /**
-
This symbol is the offset where the {@link android.R.attr#baselineAlignedChildIndex}
- attribute's value can be found in the {@link #LinearLayoutCompat} array.
- @attr name android:baselineAlignedChildIndex
- */
- public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
- /**
-
This symbol is the offset where the {@link android.R.attr#gravity}
- attribute's value can be found in the {@link #LinearLayoutCompat} array.
- @attr name android:gravity
- */
- public static final int LinearLayoutCompat_android_gravity = 0;
- /**
-
This symbol is the offset where the {@link android.R.attr#orientation}
- attribute's value can be found in the {@link #LinearLayoutCompat} array.
- @attr name android:orientation
- */
- public static final int LinearLayoutCompat_android_orientation = 1;
- /**
-
This symbol is the offset where the {@link android.R.attr#weightSum}
- attribute's value can be found in the {@link #LinearLayoutCompat} array.
- @attr name android:weightSum
- */
- public static final int LinearLayoutCompat_android_weightSum = 4;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#divider}
- attribute's value can be found in the {@link #LinearLayoutCompat} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:divider
- */
- public static final int LinearLayoutCompat_divider = 5;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#dividerPadding}
- attribute's value can be found in the {@link #LinearLayoutCompat} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:dividerPadding
- */
- public static final int LinearLayoutCompat_dividerPadding = 8;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#measureWithLargestChild}
- attribute's value can be found in the {@link #LinearLayoutCompat} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:measureWithLargestChild
- */
- public static final int LinearLayoutCompat_measureWithLargestChild = 6;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#showDividers}
- attribute's value can be found in the {@link #LinearLayoutCompat} array.
-
-
-
Must be one or more (separated by '|') of the following constant values.
-
-
-
-
-Constant | Value | Description |
-none | 0 | |
-beginning | 1 | |
-middle | 2 | |
-end | 4 | |
-
- @attr name com.example.julian.endlessroll:showDividers
- */
- public static final int LinearLayoutCompat_showDividers = 7;
- /** Attributes that can be used with a LinearLayoutCompat_Layout.
- Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #LinearLayoutCompat_Layout_android_layout_gravity android:layout_gravity} | |
- {@link #LinearLayoutCompat_Layout_android_layout_height android:layout_height} | |
- {@link #LinearLayoutCompat_Layout_android_layout_weight android:layout_weight} | |
- {@link #LinearLayoutCompat_Layout_android_layout_width android:layout_width} | |
-
- @see #LinearLayoutCompat_Layout_android_layout_gravity
- @see #LinearLayoutCompat_Layout_android_layout_height
- @see #LinearLayoutCompat_Layout_android_layout_weight
- @see #LinearLayoutCompat_Layout_android_layout_width
- */
- public static final int[] LinearLayoutCompat_Layout = {
- 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181
- };
- /**
- This symbol is the offset where the {@link android.R.attr#layout_gravity}
- attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
- @attr name android:layout_gravity
- */
- public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
- /**
-
This symbol is the offset where the {@link android.R.attr#layout_height}
- attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
- @attr name android:layout_height
- */
- public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
- /**
-
This symbol is the offset where the {@link android.R.attr#layout_weight}
- attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
- @attr name android:layout_weight
- */
- public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
- /**
-
This symbol is the offset where the {@link android.R.attr#layout_width}
- attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
- @attr name android:layout_width
- */
- public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
- /** Attributes that can be used with a ListPopupWindow.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #ListPopupWindow_android_dropDownHorizontalOffset android:dropDownHorizontalOffset} | |
- {@link #ListPopupWindow_android_dropDownVerticalOffset android:dropDownVerticalOffset} | |
-
- @see #ListPopupWindow_android_dropDownHorizontalOffset
- @see #ListPopupWindow_android_dropDownVerticalOffset
- */
- public static final int[] ListPopupWindow = {
- 0x010102ac, 0x010102ad
- };
- /**
- This symbol is the offset where the {@link android.R.attr#dropDownHorizontalOffset}
- attribute's value can be found in the {@link #ListPopupWindow} array.
- @attr name android:dropDownHorizontalOffset
- */
- public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
- /**
-
This symbol is the offset where the {@link android.R.attr#dropDownVerticalOffset}
- attribute's value can be found in the {@link #ListPopupWindow} array.
- @attr name android:dropDownVerticalOffset
- */
- public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
- /** Attributes that can be used with a MenuGroup.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #MenuGroup_android_checkableBehavior android:checkableBehavior} | |
- {@link #MenuGroup_android_enabled android:enabled} | |
- {@link #MenuGroup_android_id android:id} | |
- {@link #MenuGroup_android_menuCategory android:menuCategory} | |
- {@link #MenuGroup_android_orderInCategory android:orderInCategory} | |
- {@link #MenuGroup_android_visible android:visible} | |
-
- @see #MenuGroup_android_checkableBehavior
- @see #MenuGroup_android_enabled
- @see #MenuGroup_android_id
- @see #MenuGroup_android_menuCategory
- @see #MenuGroup_android_orderInCategory
- @see #MenuGroup_android_visible
- */
- public static final int[] MenuGroup = {
- 0x0101000e, 0x010100d0, 0x01010194, 0x010101de,
- 0x010101df, 0x010101e0
- };
- /**
- This symbol is the offset where the {@link android.R.attr#checkableBehavior}
- attribute's value can be found in the {@link #MenuGroup} array.
- @attr name android:checkableBehavior
- */
- public static final int MenuGroup_android_checkableBehavior = 5;
- /**
-
This symbol is the offset where the {@link android.R.attr#enabled}
- attribute's value can be found in the {@link #MenuGroup} array.
- @attr name android:enabled
- */
- public static final int MenuGroup_android_enabled = 0;
- /**
-
This symbol is the offset where the {@link android.R.attr#id}
- attribute's value can be found in the {@link #MenuGroup} array.
- @attr name android:id
- */
- public static final int MenuGroup_android_id = 1;
- /**
-
This symbol is the offset where the {@link android.R.attr#menuCategory}
- attribute's value can be found in the {@link #MenuGroup} array.
- @attr name android:menuCategory
- */
- public static final int MenuGroup_android_menuCategory = 3;
- /**
-
This symbol is the offset where the {@link android.R.attr#orderInCategory}
- attribute's value can be found in the {@link #MenuGroup} array.
- @attr name android:orderInCategory
- */
- public static final int MenuGroup_android_orderInCategory = 4;
- /**
-
This symbol is the offset where the {@link android.R.attr#visible}
- attribute's value can be found in the {@link #MenuGroup} array.
- @attr name android:visible
- */
- public static final int MenuGroup_android_visible = 2;
- /** Attributes that can be used with a MenuItem.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #MenuItem_actionLayout com.example.julian.endlessroll:actionLayout} | |
- {@link #MenuItem_actionProviderClass com.example.julian.endlessroll:actionProviderClass} | |
- {@link #MenuItem_actionViewClass com.example.julian.endlessroll:actionViewClass} | |
- {@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut} | |
- {@link #MenuItem_android_checkable android:checkable} | |
- {@link #MenuItem_android_checked android:checked} | |
- {@link #MenuItem_android_enabled android:enabled} | |
- {@link #MenuItem_android_icon android:icon} | |
- {@link #MenuItem_android_id android:id} | |
- {@link #MenuItem_android_menuCategory android:menuCategory} | |
- {@link #MenuItem_android_numericShortcut android:numericShortcut} | |
- {@link #MenuItem_android_onClick android:onClick} | |
- {@link #MenuItem_android_orderInCategory android:orderInCategory} | |
- {@link #MenuItem_android_title android:title} | |
- {@link #MenuItem_android_titleCondensed android:titleCondensed} | |
- {@link #MenuItem_android_visible android:visible} | |
- {@link #MenuItem_showAsAction com.example.julian.endlessroll:showAsAction} | |
-
- @see #MenuItem_actionLayout
- @see #MenuItem_actionProviderClass
- @see #MenuItem_actionViewClass
- @see #MenuItem_android_alphabeticShortcut
- @see #MenuItem_android_checkable
- @see #MenuItem_android_checked
- @see #MenuItem_android_enabled
- @see #MenuItem_android_icon
- @see #MenuItem_android_id
- @see #MenuItem_android_menuCategory
- @see #MenuItem_android_numericShortcut
- @see #MenuItem_android_onClick
- @see #MenuItem_android_orderInCategory
- @see #MenuItem_android_title
- @see #MenuItem_android_titleCondensed
- @see #MenuItem_android_visible
- @see #MenuItem_showAsAction
- */
- public static final int[] MenuItem = {
- 0x01010002, 0x0101000e, 0x010100d0, 0x01010106,
- 0x01010194, 0x010101de, 0x010101df, 0x010101e1,
- 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5,
- 0x0101026f, 0x7f010033, 0x7f010034, 0x7f010035,
- 0x7f010036
- };
- /**
- This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionLayout}
- attribute's value can be found in the {@link #MenuItem} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionLayout
- */
- public static final int MenuItem_actionLayout = 14;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionProviderClass}
- attribute's value can be found in the {@link #MenuItem} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:actionProviderClass
- */
- public static final int MenuItem_actionProviderClass = 16;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionViewClass}
- attribute's value can be found in the {@link #MenuItem} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:actionViewClass
- */
- public static final int MenuItem_actionViewClass = 15;
- /**
-
This symbol is the offset where the {@link android.R.attr#alphabeticShortcut}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:alphabeticShortcut
- */
- public static final int MenuItem_android_alphabeticShortcut = 9;
- /**
-
This symbol is the offset where the {@link android.R.attr#checkable}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:checkable
- */
- public static final int MenuItem_android_checkable = 11;
- /**
-
This symbol is the offset where the {@link android.R.attr#checked}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:checked
- */
- public static final int MenuItem_android_checked = 3;
- /**
-
This symbol is the offset where the {@link android.R.attr#enabled}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:enabled
- */
- public static final int MenuItem_android_enabled = 1;
- /**
-
This symbol is the offset where the {@link android.R.attr#icon}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:icon
- */
- public static final int MenuItem_android_icon = 0;
- /**
-
This symbol is the offset where the {@link android.R.attr#id}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:id
- */
- public static final int MenuItem_android_id = 2;
- /**
-
This symbol is the offset where the {@link android.R.attr#menuCategory}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:menuCategory
- */
- public static final int MenuItem_android_menuCategory = 5;
- /**
-
This symbol is the offset where the {@link android.R.attr#numericShortcut}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:numericShortcut
- */
- public static final int MenuItem_android_numericShortcut = 10;
- /**
-
This symbol is the offset where the {@link android.R.attr#onClick}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:onClick
- */
- public static final int MenuItem_android_onClick = 12;
- /**
-
This symbol is the offset where the {@link android.R.attr#orderInCategory}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:orderInCategory
- */
- public static final int MenuItem_android_orderInCategory = 6;
- /**
-
This symbol is the offset where the {@link android.R.attr#title}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:title
- */
- public static final int MenuItem_android_title = 7;
- /**
-
This symbol is the offset where the {@link android.R.attr#titleCondensed}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:titleCondensed
- */
- public static final int MenuItem_android_titleCondensed = 8;
- /**
-
This symbol is the offset where the {@link android.R.attr#visible}
- attribute's value can be found in the {@link #MenuItem} array.
- @attr name android:visible
- */
- public static final int MenuItem_android_visible = 4;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#showAsAction}
- attribute's value can be found in the {@link #MenuItem} array.
-
-
-
Must be one or more (separated by '|') of the following constant values.
-
-
-
-
-Constant | Value | Description |
-never | 0 | |
-ifRoom | 1 | |
-always | 2 | |
-withText | 4 | |
-collapseActionView | 8 | |
-
- @attr name com.example.julian.endlessroll:showAsAction
- */
- public static final int MenuItem_showAsAction = 13;
- /** Attributes that can be used with a MenuView.
- Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #MenuView_android_headerBackground android:headerBackground} | |
- {@link #MenuView_android_horizontalDivider android:horizontalDivider} | |
- {@link #MenuView_android_itemBackground android:itemBackground} | |
- {@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha} | |
- {@link #MenuView_android_itemTextAppearance android:itemTextAppearance} | |
- {@link #MenuView_android_verticalDivider android:verticalDivider} | |
- {@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle} | |
- {@link #MenuView_preserveIconSpacing com.example.julian.endlessroll:preserveIconSpacing} | |
-
- @see #MenuView_android_headerBackground
- @see #MenuView_android_horizontalDivider
- @see #MenuView_android_itemBackground
- @see #MenuView_android_itemIconDisabledAlpha
- @see #MenuView_android_itemTextAppearance
- @see #MenuView_android_verticalDivider
- @see #MenuView_android_windowAnimationStyle
- @see #MenuView_preserveIconSpacing
- */
- public static final int[] MenuView = {
- 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e,
- 0x0101012f, 0x01010130, 0x01010131, 0x7f010037
- };
- /**
- This symbol is the offset where the {@link android.R.attr#headerBackground}
- attribute's value can be found in the {@link #MenuView} array.
- @attr name android:headerBackground
- */
- public static final int MenuView_android_headerBackground = 4;
- /**
-
This symbol is the offset where the {@link android.R.attr#horizontalDivider}
- attribute's value can be found in the {@link #MenuView} array.
- @attr name android:horizontalDivider
- */
- public static final int MenuView_android_horizontalDivider = 2;
- /**
-
This symbol is the offset where the {@link android.R.attr#itemBackground}
- attribute's value can be found in the {@link #MenuView} array.
- @attr name android:itemBackground
- */
- public static final int MenuView_android_itemBackground = 5;
- /**
-
This symbol is the offset where the {@link android.R.attr#itemIconDisabledAlpha}
- attribute's value can be found in the {@link #MenuView} array.
- @attr name android:itemIconDisabledAlpha
- */
- public static final int MenuView_android_itemIconDisabledAlpha = 6;
- /**
-
This symbol is the offset where the {@link android.R.attr#itemTextAppearance}
- attribute's value can be found in the {@link #MenuView} array.
- @attr name android:itemTextAppearance
- */
- public static final int MenuView_android_itemTextAppearance = 1;
- /**
-
This symbol is the offset where the {@link android.R.attr#verticalDivider}
- attribute's value can be found in the {@link #MenuView} array.
- @attr name android:verticalDivider
- */
- public static final int MenuView_android_verticalDivider = 3;
- /**
-
This symbol is the offset where the {@link android.R.attr#windowAnimationStyle}
- attribute's value can be found in the {@link #MenuView} array.
- @attr name android:windowAnimationStyle
- */
- public static final int MenuView_android_windowAnimationStyle = 0;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#preserveIconSpacing}
- attribute's value can be found in the {@link #MenuView} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:preserveIconSpacing
- */
- public static final int MenuView_preserveIconSpacing = 7;
- /** Attributes that can be used with a PopupWindow.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #PopupWindow_android_popupBackground android:popupBackground} | |
- {@link #PopupWindow_overlapAnchor com.example.julian.endlessroll:overlapAnchor} | |
-
- @see #PopupWindow_android_popupBackground
- @see #PopupWindow_overlapAnchor
- */
- public static final int[] PopupWindow = {
- 0x01010176, 0x7f010038
- };
- /**
- This symbol is the offset where the {@link android.R.attr#popupBackground}
- attribute's value can be found in the {@link #PopupWindow} array.
- @attr name android:popupBackground
- */
- public static final int PopupWindow_android_popupBackground = 0;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#overlapAnchor}
- attribute's value can be found in the {@link #PopupWindow} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:overlapAnchor
- */
- public static final int PopupWindow_overlapAnchor = 1;
- /** Attributes that can be used with a PopupWindowBackgroundState.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #PopupWindowBackgroundState_state_above_anchor com.example.julian.endlessroll:state_above_anchor} | |
-
- @see #PopupWindowBackgroundState_state_above_anchor
- */
- public static final int[] PopupWindowBackgroundState = {
- 0x7f010039
- };
- /**
- This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#state_above_anchor}
- attribute's value can be found in the {@link #PopupWindowBackgroundState} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:state_above_anchor
- */
- public static final int PopupWindowBackgroundState_state_above_anchor = 0;
- /** Attributes that can be used with a SearchView.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #SearchView_android_focusable android:focusable} | |
- {@link #SearchView_android_imeOptions android:imeOptions} | |
- {@link #SearchView_android_inputType android:inputType} | |
- {@link #SearchView_android_maxWidth android:maxWidth} | |
- {@link #SearchView_closeIcon com.example.julian.endlessroll:closeIcon} | |
- {@link #SearchView_commitIcon com.example.julian.endlessroll:commitIcon} | |
- {@link #SearchView_defaultQueryHint com.example.julian.endlessroll:defaultQueryHint} | |
- {@link #SearchView_goIcon com.example.julian.endlessroll:goIcon} | |
- {@link #SearchView_iconifiedByDefault com.example.julian.endlessroll:iconifiedByDefault} | |
- {@link #SearchView_layout com.example.julian.endlessroll:layout} | |
- {@link #SearchView_queryBackground com.example.julian.endlessroll:queryBackground} | |
- {@link #SearchView_queryHint com.example.julian.endlessroll:queryHint} | |
- {@link #SearchView_searchHintIcon com.example.julian.endlessroll:searchHintIcon} | |
- {@link #SearchView_searchIcon com.example.julian.endlessroll:searchIcon} | |
- {@link #SearchView_submitBackground com.example.julian.endlessroll:submitBackground} | |
- {@link #SearchView_suggestionRowLayout com.example.julian.endlessroll:suggestionRowLayout} | |
- {@link #SearchView_voiceIcon com.example.julian.endlessroll:voiceIcon} | |
-
- @see #SearchView_android_focusable
- @see #SearchView_android_imeOptions
- @see #SearchView_android_inputType
- @see #SearchView_android_maxWidth
- @see #SearchView_closeIcon
- @see #SearchView_commitIcon
- @see #SearchView_defaultQueryHint
- @see #SearchView_goIcon
- @see #SearchView_iconifiedByDefault
- @see #SearchView_layout
- @see #SearchView_queryBackground
- @see #SearchView_queryHint
- @see #SearchView_searchHintIcon
- @see #SearchView_searchIcon
- @see #SearchView_submitBackground
- @see #SearchView_suggestionRowLayout
- @see #SearchView_voiceIcon
- */
- public static final int[] SearchView = {
- 0x010100da, 0x0101011f, 0x01010220, 0x01010264,
- 0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d,
- 0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041,
- 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045,
- 0x7f010046
- };
- /**
- This symbol is the offset where the {@link android.R.attr#focusable}
- attribute's value can be found in the {@link #SearchView} array.
- @attr name android:focusable
- */
- public static final int SearchView_android_focusable = 0;
- /**
-
This symbol is the offset where the {@link android.R.attr#imeOptions}
- attribute's value can be found in the {@link #SearchView} array.
- @attr name android:imeOptions
- */
- public static final int SearchView_android_imeOptions = 3;
- /**
-
This symbol is the offset where the {@link android.R.attr#inputType}
- attribute's value can be found in the {@link #SearchView} array.
- @attr name android:inputType
- */
- public static final int SearchView_android_inputType = 2;
- /**
-
This symbol is the offset where the {@link android.R.attr#maxWidth}
- attribute's value can be found in the {@link #SearchView} array.
- @attr name android:maxWidth
- */
- public static final int SearchView_android_maxWidth = 1;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#closeIcon}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:closeIcon
- */
- public static final int SearchView_closeIcon = 8;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#commitIcon}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:commitIcon
- */
- public static final int SearchView_commitIcon = 13;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#defaultQueryHint}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:defaultQueryHint
- */
- public static final int SearchView_defaultQueryHint = 7;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#goIcon}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:goIcon
- */
- public static final int SearchView_goIcon = 9;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#iconifiedByDefault}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:iconifiedByDefault
- */
- public static final int SearchView_iconifiedByDefault = 5;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#layout}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:layout
- */
- public static final int SearchView_layout = 4;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#queryBackground}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:queryBackground
- */
- public static final int SearchView_queryBackground = 15;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#queryHint}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:queryHint
- */
- public static final int SearchView_queryHint = 6;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#searchHintIcon}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:searchHintIcon
- */
- public static final int SearchView_searchHintIcon = 11;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#searchIcon}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:searchIcon
- */
- public static final int SearchView_searchIcon = 10;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#submitBackground}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:submitBackground
- */
- public static final int SearchView_submitBackground = 16;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#suggestionRowLayout}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:suggestionRowLayout
- */
- public static final int SearchView_suggestionRowLayout = 14;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#voiceIcon}
- attribute's value can be found in the {@link #SearchView} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:voiceIcon
- */
- public static final int SearchView_voiceIcon = 12;
- /** Attributes that can be used with a Spinner.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #Spinner_android_dropDownWidth android:dropDownWidth} | |
- {@link #Spinner_android_popupBackground android:popupBackground} | |
- {@link #Spinner_android_prompt android:prompt} | |
- {@link #Spinner_popupTheme com.example.julian.endlessroll:popupTheme} | |
-
- @see #Spinner_android_dropDownWidth
- @see #Spinner_android_popupBackground
- @see #Spinner_android_prompt
- @see #Spinner_popupTheme
- */
- public static final int[] Spinner = {
- 0x01010176, 0x0101017b, 0x01010262, 0x7f01001b
- };
- /**
- This symbol is the offset where the {@link android.R.attr#dropDownWidth}
- attribute's value can be found in the {@link #Spinner} array.
- @attr name android:dropDownWidth
- */
- public static final int Spinner_android_dropDownWidth = 2;
- /**
-
This symbol is the offset where the {@link android.R.attr#popupBackground}
- attribute's value can be found in the {@link #Spinner} array.
- @attr name android:popupBackground
- */
- public static final int Spinner_android_popupBackground = 0;
- /**
-
This symbol is the offset where the {@link android.R.attr#prompt}
- attribute's value can be found in the {@link #Spinner} array.
- @attr name android:prompt
- */
- public static final int Spinner_android_prompt = 1;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#popupTheme}
- attribute's value can be found in the {@link #Spinner} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:popupTheme
- */
- public static final int Spinner_popupTheme = 3;
- /** Attributes that can be used with a SwitchCompat.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #SwitchCompat_android_textOff android:textOff} | |
- {@link #SwitchCompat_android_textOn android:textOn} | |
- {@link #SwitchCompat_android_thumb android:thumb} | |
- {@link #SwitchCompat_showText com.example.julian.endlessroll:showText} | |
- {@link #SwitchCompat_splitTrack com.example.julian.endlessroll:splitTrack} | |
- {@link #SwitchCompat_switchMinWidth com.example.julian.endlessroll:switchMinWidth} | |
- {@link #SwitchCompat_switchPadding com.example.julian.endlessroll:switchPadding} | |
- {@link #SwitchCompat_switchTextAppearance com.example.julian.endlessroll:switchTextAppearance} | |
- {@link #SwitchCompat_thumbTextPadding com.example.julian.endlessroll:thumbTextPadding} | |
- {@link #SwitchCompat_track com.example.julian.endlessroll:track} | |
-
- @see #SwitchCompat_android_textOff
- @see #SwitchCompat_android_textOn
- @see #SwitchCompat_android_thumb
- @see #SwitchCompat_showText
- @see #SwitchCompat_splitTrack
- @see #SwitchCompat_switchMinWidth
- @see #SwitchCompat_switchPadding
- @see #SwitchCompat_switchTextAppearance
- @see #SwitchCompat_thumbTextPadding
- @see #SwitchCompat_track
- */
- public static final int[] SwitchCompat = {
- 0x01010124, 0x01010125, 0x01010142, 0x7f010047,
- 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b,
- 0x7f01004c, 0x7f01004d
- };
- /**
- This symbol is the offset where the {@link android.R.attr#textOff}
- attribute's value can be found in the {@link #SwitchCompat} array.
- @attr name android:textOff
- */
- public static final int SwitchCompat_android_textOff = 1;
- /**
-
This symbol is the offset where the {@link android.R.attr#textOn}
- attribute's value can be found in the {@link #SwitchCompat} array.
- @attr name android:textOn
- */
- public static final int SwitchCompat_android_textOn = 0;
- /**
-
This symbol is the offset where the {@link android.R.attr#thumb}
- attribute's value can be found in the {@link #SwitchCompat} array.
- @attr name android:thumb
- */
- public static final int SwitchCompat_android_thumb = 2;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#showText}
- attribute's value can be found in the {@link #SwitchCompat} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:showText
- */
- public static final int SwitchCompat_showText = 9;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#splitTrack}
- attribute's value can be found in the {@link #SwitchCompat} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:splitTrack
- */
- public static final int SwitchCompat_splitTrack = 8;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#switchMinWidth}
- attribute's value can be found in the {@link #SwitchCompat} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:switchMinWidth
- */
- public static final int SwitchCompat_switchMinWidth = 6;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#switchPadding}
- attribute's value can be found in the {@link #SwitchCompat} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:switchPadding
- */
- public static final int SwitchCompat_switchPadding = 7;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#switchTextAppearance}
- attribute's value can be found in the {@link #SwitchCompat} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:switchTextAppearance
- */
- public static final int SwitchCompat_switchTextAppearance = 5;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#thumbTextPadding}
- attribute's value can be found in the {@link #SwitchCompat} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:thumbTextPadding
- */
- public static final int SwitchCompat_thumbTextPadding = 4;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#track}
- attribute's value can be found in the {@link #SwitchCompat} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:track
- */
- public static final int SwitchCompat_track = 3;
- /** Attributes that can be used with a TextAppearance.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #TextAppearance_android_shadowColor android:shadowColor} | |
- {@link #TextAppearance_android_shadowDx android:shadowDx} | |
- {@link #TextAppearance_android_shadowDy android:shadowDy} | |
- {@link #TextAppearance_android_shadowRadius android:shadowRadius} | |
- {@link #TextAppearance_android_textColor android:textColor} | |
- {@link #TextAppearance_android_textSize android:textSize} | |
- {@link #TextAppearance_android_textStyle android:textStyle} | |
- {@link #TextAppearance_android_typeface android:typeface} | |
- {@link #TextAppearance_textAllCaps com.example.julian.endlessroll:textAllCaps} | |
-
- @see #TextAppearance_android_shadowColor
- @see #TextAppearance_android_shadowDx
- @see #TextAppearance_android_shadowDy
- @see #TextAppearance_android_shadowRadius
- @see #TextAppearance_android_textColor
- @see #TextAppearance_android_textSize
- @see #TextAppearance_android_textStyle
- @see #TextAppearance_android_typeface
- @see #TextAppearance_textAllCaps
- */
- public static final int[] TextAppearance = {
- 0x01010095, 0x01010096, 0x01010097, 0x01010098,
- 0x01010161, 0x01010162, 0x01010163, 0x01010164,
- 0x7f010024
- };
- /**
- This symbol is the offset where the {@link android.R.attr#shadowColor}
- attribute's value can be found in the {@link #TextAppearance} array.
- @attr name android:shadowColor
- */
- public static final int TextAppearance_android_shadowColor = 4;
- /**
-
This symbol is the offset where the {@link android.R.attr#shadowDx}
- attribute's value can be found in the {@link #TextAppearance} array.
- @attr name android:shadowDx
- */
- public static final int TextAppearance_android_shadowDx = 5;
- /**
-
This symbol is the offset where the {@link android.R.attr#shadowDy}
- attribute's value can be found in the {@link #TextAppearance} array.
- @attr name android:shadowDy
- */
- public static final int TextAppearance_android_shadowDy = 6;
- /**
-
This symbol is the offset where the {@link android.R.attr#shadowRadius}
- attribute's value can be found in the {@link #TextAppearance} array.
- @attr name android:shadowRadius
- */
- public static final int TextAppearance_android_shadowRadius = 7;
- /**
-
This symbol is the offset where the {@link android.R.attr#textColor}
- attribute's value can be found in the {@link #TextAppearance} array.
- @attr name android:textColor
- */
- public static final int TextAppearance_android_textColor = 3;
- /**
-
This symbol is the offset where the {@link android.R.attr#textSize}
- attribute's value can be found in the {@link #TextAppearance} array.
- @attr name android:textSize
- */
- public static final int TextAppearance_android_textSize = 0;
- /**
-
This symbol is the offset where the {@link android.R.attr#textStyle}
- attribute's value can be found in the {@link #TextAppearance} array.
- @attr name android:textStyle
- */
- public static final int TextAppearance_android_textStyle = 2;
- /**
-
This symbol is the offset where the {@link android.R.attr#typeface}
- attribute's value can be found in the {@link #TextAppearance} array.
- @attr name android:typeface
- */
- public static final int TextAppearance_android_typeface = 1;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#textAllCaps}
- attribute's value can be found in the {@link #TextAppearance} array.
-
-
-
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a boolean value, either "true
" or "false
".
- @attr name com.example.julian.endlessroll:textAllCaps
- */
- public static final int TextAppearance_textAllCaps = 8;
- /** Attributes that can be used with a Theme.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #Theme_actionBarDivider com.example.julian.endlessroll:actionBarDivider} | |
- {@link #Theme_actionBarItemBackground com.example.julian.endlessroll:actionBarItemBackground} | |
- {@link #Theme_actionBarPopupTheme com.example.julian.endlessroll:actionBarPopupTheme} | |
- {@link #Theme_actionBarSize com.example.julian.endlessroll:actionBarSize} | |
- {@link #Theme_actionBarSplitStyle com.example.julian.endlessroll:actionBarSplitStyle} | |
- {@link #Theme_actionBarStyle com.example.julian.endlessroll:actionBarStyle} | |
- {@link #Theme_actionBarTabBarStyle com.example.julian.endlessroll:actionBarTabBarStyle} | |
- {@link #Theme_actionBarTabStyle com.example.julian.endlessroll:actionBarTabStyle} | |
- {@link #Theme_actionBarTabTextStyle com.example.julian.endlessroll:actionBarTabTextStyle} | |
- {@link #Theme_actionBarTheme com.example.julian.endlessroll:actionBarTheme} | |
- {@link #Theme_actionBarWidgetTheme com.example.julian.endlessroll:actionBarWidgetTheme} | |
- {@link #Theme_actionButtonStyle com.example.julian.endlessroll:actionButtonStyle} | |
- {@link #Theme_actionDropDownStyle com.example.julian.endlessroll:actionDropDownStyle} | |
- {@link #Theme_actionMenuTextAppearance com.example.julian.endlessroll:actionMenuTextAppearance} | |
- {@link #Theme_actionMenuTextColor com.example.julian.endlessroll:actionMenuTextColor} | |
- {@link #Theme_actionModeBackground com.example.julian.endlessroll:actionModeBackground} | |
- {@link #Theme_actionModeCloseButtonStyle com.example.julian.endlessroll:actionModeCloseButtonStyle} | |
- {@link #Theme_actionModeCloseDrawable com.example.julian.endlessroll:actionModeCloseDrawable} | |
- {@link #Theme_actionModeCopyDrawable com.example.julian.endlessroll:actionModeCopyDrawable} | |
- {@link #Theme_actionModeCutDrawable com.example.julian.endlessroll:actionModeCutDrawable} | |
- {@link #Theme_actionModeFindDrawable com.example.julian.endlessroll:actionModeFindDrawable} | |
- {@link #Theme_actionModePasteDrawable com.example.julian.endlessroll:actionModePasteDrawable} | |
- {@link #Theme_actionModePopupWindowStyle com.example.julian.endlessroll:actionModePopupWindowStyle} | |
- {@link #Theme_actionModeSelectAllDrawable com.example.julian.endlessroll:actionModeSelectAllDrawable} | |
- {@link #Theme_actionModeShareDrawable com.example.julian.endlessroll:actionModeShareDrawable} | |
- {@link #Theme_actionModeSplitBackground com.example.julian.endlessroll:actionModeSplitBackground} | |
- {@link #Theme_actionModeStyle com.example.julian.endlessroll:actionModeStyle} | |
- {@link #Theme_actionModeWebSearchDrawable com.example.julian.endlessroll:actionModeWebSearchDrawable} | |
- {@link #Theme_actionOverflowButtonStyle com.example.julian.endlessroll:actionOverflowButtonStyle} | |
- {@link #Theme_actionOverflowMenuStyle com.example.julian.endlessroll:actionOverflowMenuStyle} | |
- {@link #Theme_activityChooserViewStyle com.example.julian.endlessroll:activityChooserViewStyle} | |
- {@link #Theme_alertDialogButtonGroupStyle com.example.julian.endlessroll:alertDialogButtonGroupStyle} | |
- {@link #Theme_alertDialogCenterButtons com.example.julian.endlessroll:alertDialogCenterButtons} | |
- {@link #Theme_alertDialogStyle com.example.julian.endlessroll:alertDialogStyle} | |
- {@link #Theme_alertDialogTheme com.example.julian.endlessroll:alertDialogTheme} | |
- {@link #Theme_android_windowAnimationStyle android:windowAnimationStyle} | |
- {@link #Theme_android_windowIsFloating android:windowIsFloating} | |
- {@link #Theme_autoCompleteTextViewStyle com.example.julian.endlessroll:autoCompleteTextViewStyle} | |
- {@link #Theme_borderlessButtonStyle com.example.julian.endlessroll:borderlessButtonStyle} | |
- {@link #Theme_buttonBarButtonStyle com.example.julian.endlessroll:buttonBarButtonStyle} | |
- {@link #Theme_buttonBarNegativeButtonStyle com.example.julian.endlessroll:buttonBarNegativeButtonStyle} | |
- {@link #Theme_buttonBarNeutralButtonStyle com.example.julian.endlessroll:buttonBarNeutralButtonStyle} | |
- {@link #Theme_buttonBarPositiveButtonStyle com.example.julian.endlessroll:buttonBarPositiveButtonStyle} | |
- {@link #Theme_buttonBarStyle com.example.julian.endlessroll:buttonBarStyle} | |
- {@link #Theme_buttonStyle com.example.julian.endlessroll:buttonStyle} | |
- {@link #Theme_buttonStyleSmall com.example.julian.endlessroll:buttonStyleSmall} | |
- {@link #Theme_checkboxStyle com.example.julian.endlessroll:checkboxStyle} | |
- {@link #Theme_checkedTextViewStyle com.example.julian.endlessroll:checkedTextViewStyle} | |
- {@link #Theme_colorAccent com.example.julian.endlessroll:colorAccent} | |
- {@link #Theme_colorButtonNormal com.example.julian.endlessroll:colorButtonNormal} | |
- {@link #Theme_colorControlActivated com.example.julian.endlessroll:colorControlActivated} | |
- {@link #Theme_colorControlHighlight com.example.julian.endlessroll:colorControlHighlight} | |
- {@link #Theme_colorControlNormal com.example.julian.endlessroll:colorControlNormal} | |
- {@link #Theme_colorPrimary com.example.julian.endlessroll:colorPrimary} | |
- {@link #Theme_colorPrimaryDark com.example.julian.endlessroll:colorPrimaryDark} | |
- {@link #Theme_colorSwitchThumbNormal com.example.julian.endlessroll:colorSwitchThumbNormal} | |
- {@link #Theme_controlBackground com.example.julian.endlessroll:controlBackground} | |
- {@link #Theme_dialogPreferredPadding com.example.julian.endlessroll:dialogPreferredPadding} | |
- {@link #Theme_dialogTheme com.example.julian.endlessroll:dialogTheme} | |
- {@link #Theme_dividerHorizontal com.example.julian.endlessroll:dividerHorizontal} | |
- {@link #Theme_dividerVertical com.example.julian.endlessroll:dividerVertical} | |
- {@link #Theme_dropDownListViewStyle com.example.julian.endlessroll:dropDownListViewStyle} | |
- {@link #Theme_dropdownListPreferredItemHeight com.example.julian.endlessroll:dropdownListPreferredItemHeight} | |
- {@link #Theme_editTextBackground com.example.julian.endlessroll:editTextBackground} | |
- {@link #Theme_editTextColor com.example.julian.endlessroll:editTextColor} | |
- {@link #Theme_editTextStyle com.example.julian.endlessroll:editTextStyle} | |
- {@link #Theme_homeAsUpIndicator com.example.julian.endlessroll:homeAsUpIndicator} | |
- {@link #Theme_imageButtonStyle com.example.julian.endlessroll:imageButtonStyle} | |
- {@link #Theme_listChoiceBackgroundIndicator com.example.julian.endlessroll:listChoiceBackgroundIndicator} | |
- {@link #Theme_listDividerAlertDialog com.example.julian.endlessroll:listDividerAlertDialog} | |
- {@link #Theme_listPopupWindowStyle com.example.julian.endlessroll:listPopupWindowStyle} | |
- {@link #Theme_listPreferredItemHeight com.example.julian.endlessroll:listPreferredItemHeight} | |
- {@link #Theme_listPreferredItemHeightLarge com.example.julian.endlessroll:listPreferredItemHeightLarge} | |
- {@link #Theme_listPreferredItemHeightSmall com.example.julian.endlessroll:listPreferredItemHeightSmall} | |
- {@link #Theme_listPreferredItemPaddingLeft com.example.julian.endlessroll:listPreferredItemPaddingLeft} | |
- {@link #Theme_listPreferredItemPaddingRight com.example.julian.endlessroll:listPreferredItemPaddingRight} | |
- {@link #Theme_panelBackground com.example.julian.endlessroll:panelBackground} | |
- {@link #Theme_panelMenuListTheme com.example.julian.endlessroll:panelMenuListTheme} | |
- {@link #Theme_panelMenuListWidth com.example.julian.endlessroll:panelMenuListWidth} | |
- {@link #Theme_popupMenuStyle com.example.julian.endlessroll:popupMenuStyle} | |
- {@link #Theme_popupWindowStyle com.example.julian.endlessroll:popupWindowStyle} | |
- {@link #Theme_radioButtonStyle com.example.julian.endlessroll:radioButtonStyle} | |
- {@link #Theme_ratingBarStyle com.example.julian.endlessroll:ratingBarStyle} | |
- {@link #Theme_searchViewStyle com.example.julian.endlessroll:searchViewStyle} | |
- {@link #Theme_seekBarStyle com.example.julian.endlessroll:seekBarStyle} | |
- {@link #Theme_selectableItemBackground com.example.julian.endlessroll:selectableItemBackground} | |
- {@link #Theme_selectableItemBackgroundBorderless com.example.julian.endlessroll:selectableItemBackgroundBorderless} | |
- {@link #Theme_spinnerDropDownItemStyle com.example.julian.endlessroll:spinnerDropDownItemStyle} | |
- {@link #Theme_spinnerStyle com.example.julian.endlessroll:spinnerStyle} | |
- {@link #Theme_switchStyle com.example.julian.endlessroll:switchStyle} | |
- {@link #Theme_textAppearanceLargePopupMenu com.example.julian.endlessroll:textAppearanceLargePopupMenu} | |
- {@link #Theme_textAppearanceListItem com.example.julian.endlessroll:textAppearanceListItem} | |
- {@link #Theme_textAppearanceListItemSmall com.example.julian.endlessroll:textAppearanceListItemSmall} | |
- {@link #Theme_textAppearanceSearchResultSubtitle com.example.julian.endlessroll:textAppearanceSearchResultSubtitle} | |
- {@link #Theme_textAppearanceSearchResultTitle com.example.julian.endlessroll:textAppearanceSearchResultTitle} | |
- {@link #Theme_textAppearanceSmallPopupMenu com.example.julian.endlessroll:textAppearanceSmallPopupMenu} | |
- {@link #Theme_textColorAlertDialogListItem com.example.julian.endlessroll:textColorAlertDialogListItem} | |
- {@link #Theme_textColorSearchUrl com.example.julian.endlessroll:textColorSearchUrl} | |
- {@link #Theme_toolbarNavigationButtonStyle com.example.julian.endlessroll:toolbarNavigationButtonStyle} | |
- {@link #Theme_toolbarStyle com.example.julian.endlessroll:toolbarStyle} | |
- {@link #Theme_windowActionBar com.example.julian.endlessroll:windowActionBar} | |
- {@link #Theme_windowActionBarOverlay com.example.julian.endlessroll:windowActionBarOverlay} | |
- {@link #Theme_windowActionModeOverlay com.example.julian.endlessroll:windowActionModeOverlay} | |
- {@link #Theme_windowFixedHeightMajor com.example.julian.endlessroll:windowFixedHeightMajor} | |
- {@link #Theme_windowFixedHeightMinor com.example.julian.endlessroll:windowFixedHeightMinor} | |
- {@link #Theme_windowFixedWidthMajor com.example.julian.endlessroll:windowFixedWidthMajor} | |
- {@link #Theme_windowFixedWidthMinor com.example.julian.endlessroll:windowFixedWidthMinor} | |
- {@link #Theme_windowMinWidthMajor com.example.julian.endlessroll:windowMinWidthMajor} | |
- {@link #Theme_windowMinWidthMinor com.example.julian.endlessroll:windowMinWidthMinor} | |
- {@link #Theme_windowNoTitle com.example.julian.endlessroll:windowNoTitle} | |
-
- @see #Theme_actionBarDivider
- @see #Theme_actionBarItemBackground
- @see #Theme_actionBarPopupTheme
- @see #Theme_actionBarSize
- @see #Theme_actionBarSplitStyle
- @see #Theme_actionBarStyle
- @see #Theme_actionBarTabBarStyle
- @see #Theme_actionBarTabStyle
- @see #Theme_actionBarTabTextStyle
- @see #Theme_actionBarTheme
- @see #Theme_actionBarWidgetTheme
- @see #Theme_actionButtonStyle
- @see #Theme_actionDropDownStyle
- @see #Theme_actionMenuTextAppearance
- @see #Theme_actionMenuTextColor
- @see #Theme_actionModeBackground
- @see #Theme_actionModeCloseButtonStyle
- @see #Theme_actionModeCloseDrawable
- @see #Theme_actionModeCopyDrawable
- @see #Theme_actionModeCutDrawable
- @see #Theme_actionModeFindDrawable
- @see #Theme_actionModePasteDrawable
- @see #Theme_actionModePopupWindowStyle
- @see #Theme_actionModeSelectAllDrawable
- @see #Theme_actionModeShareDrawable
- @see #Theme_actionModeSplitBackground
- @see #Theme_actionModeStyle
- @see #Theme_actionModeWebSearchDrawable
- @see #Theme_actionOverflowButtonStyle
- @see #Theme_actionOverflowMenuStyle
- @see #Theme_activityChooserViewStyle
- @see #Theme_alertDialogButtonGroupStyle
- @see #Theme_alertDialogCenterButtons
- @see #Theme_alertDialogStyle
- @see #Theme_alertDialogTheme
- @see #Theme_android_windowAnimationStyle
- @see #Theme_android_windowIsFloating
- @see #Theme_autoCompleteTextViewStyle
- @see #Theme_borderlessButtonStyle
- @see #Theme_buttonBarButtonStyle
- @see #Theme_buttonBarNegativeButtonStyle
- @see #Theme_buttonBarNeutralButtonStyle
- @see #Theme_buttonBarPositiveButtonStyle
- @see #Theme_buttonBarStyle
- @see #Theme_buttonStyle
- @see #Theme_buttonStyleSmall
- @see #Theme_checkboxStyle
- @see #Theme_checkedTextViewStyle
- @see #Theme_colorAccent
- @see #Theme_colorButtonNormal
- @see #Theme_colorControlActivated
- @see #Theme_colorControlHighlight
- @see #Theme_colorControlNormal
- @see #Theme_colorPrimary
- @see #Theme_colorPrimaryDark
- @see #Theme_colorSwitchThumbNormal
- @see #Theme_controlBackground
- @see #Theme_dialogPreferredPadding
- @see #Theme_dialogTheme
- @see #Theme_dividerHorizontal
- @see #Theme_dividerVertical
- @see #Theme_dropDownListViewStyle
- @see #Theme_dropdownListPreferredItemHeight
- @see #Theme_editTextBackground
- @see #Theme_editTextColor
- @see #Theme_editTextStyle
- @see #Theme_homeAsUpIndicator
- @see #Theme_imageButtonStyle
- @see #Theme_listChoiceBackgroundIndicator
- @see #Theme_listDividerAlertDialog
- @see #Theme_listPopupWindowStyle
- @see #Theme_listPreferredItemHeight
- @see #Theme_listPreferredItemHeightLarge
- @see #Theme_listPreferredItemHeightSmall
- @see #Theme_listPreferredItemPaddingLeft
- @see #Theme_listPreferredItemPaddingRight
- @see #Theme_panelBackground
- @see #Theme_panelMenuListTheme
- @see #Theme_panelMenuListWidth
- @see #Theme_popupMenuStyle
- @see #Theme_popupWindowStyle
- @see #Theme_radioButtonStyle
- @see #Theme_ratingBarStyle
- @see #Theme_searchViewStyle
- @see #Theme_seekBarStyle
- @see #Theme_selectableItemBackground
- @see #Theme_selectableItemBackgroundBorderless
- @see #Theme_spinnerDropDownItemStyle
- @see #Theme_spinnerStyle
- @see #Theme_switchStyle
- @see #Theme_textAppearanceLargePopupMenu
- @see #Theme_textAppearanceListItem
- @see #Theme_textAppearanceListItemSmall
- @see #Theme_textAppearanceSearchResultSubtitle
- @see #Theme_textAppearanceSearchResultTitle
- @see #Theme_textAppearanceSmallPopupMenu
- @see #Theme_textColorAlertDialogListItem
- @see #Theme_textColorSearchUrl
- @see #Theme_toolbarNavigationButtonStyle
- @see #Theme_toolbarStyle
- @see #Theme_windowActionBar
- @see #Theme_windowActionBarOverlay
- @see #Theme_windowActionModeOverlay
- @see #Theme_windowFixedHeightMajor
- @see #Theme_windowFixedHeightMinor
- @see #Theme_windowFixedWidthMajor
- @see #Theme_windowFixedWidthMinor
- @see #Theme_windowMinWidthMajor
- @see #Theme_windowMinWidthMinor
- @see #Theme_windowNoTitle
- */
- public static final int[] Theme = {
- 0x01010057, 0x010100ae, 0x7f01004e, 0x7f01004f,
- 0x7f010050, 0x7f010051, 0x7f010052, 0x7f010053,
- 0x7f010054, 0x7f010055, 0x7f010056, 0x7f010057,
- 0x7f010058, 0x7f010059, 0x7f01005a, 0x7f01005b,
- 0x7f01005c, 0x7f01005d, 0x7f01005e, 0x7f01005f,
- 0x7f010060, 0x7f010061, 0x7f010062, 0x7f010063,
- 0x7f010064, 0x7f010065, 0x7f010066, 0x7f010067,
- 0x7f010068, 0x7f010069, 0x7f01006a, 0x7f01006b,
- 0x7f01006c, 0x7f01006d, 0x7f01006e, 0x7f01006f,
- 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073,
- 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077,
- 0x7f010078, 0x7f010079, 0x7f01007a, 0x7f01007b,
- 0x7f01007c, 0x7f01007d, 0x7f01007e, 0x7f01007f,
- 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083,
- 0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087,
- 0x7f010088, 0x7f010089, 0x7f01008a, 0x7f01008b,
- 0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f,
- 0x7f010090, 0x7f010091, 0x7f010092, 0x7f010093,
- 0x7f010094, 0x7f010095, 0x7f010096, 0x7f010097,
- 0x7f010098, 0x7f010099, 0x7f01009a, 0x7f01009b,
- 0x7f01009c, 0x7f01009d, 0x7f01009e, 0x7f01009f,
- 0x7f0100a0, 0x7f0100a1, 0x7f0100a2, 0x7f0100a3,
- 0x7f0100a4, 0x7f0100a5, 0x7f0100a6, 0x7f0100a7,
- 0x7f0100a8, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab,
- 0x7f0100ac, 0x7f0100ad, 0x7f0100ae, 0x7f0100af,
- 0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3,
- 0x7f0100b4, 0x7f0100b5, 0x7f0100b6, 0x7f0100b7,
- 0x7f0100b8, 0x7f0100b9
- };
- /**
- This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionBarDivider}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionBarDivider
- */
- public static final int Theme_actionBarDivider = 23;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionBarItemBackground}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionBarItemBackground
- */
- public static final int Theme_actionBarItemBackground = 24;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionBarPopupTheme}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionBarPopupTheme
- */
- public static final int Theme_actionBarPopupTheme = 17;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionBarSize}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
-
May be one of the following constant values.
-
-
-
-
-Constant | Value | Description |
-wrap_content | 0 | |
-
- @attr name com.example.julian.endlessroll:actionBarSize
- */
- public static final int Theme_actionBarSize = 22;
- /**
- This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionBarSplitStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionBarSplitStyle
- */
- public static final int Theme_actionBarSplitStyle = 19;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionBarStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionBarStyle
- */
- public static final int Theme_actionBarStyle = 18;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionBarTabBarStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionBarTabBarStyle
- */
- public static final int Theme_actionBarTabBarStyle = 13;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionBarTabStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionBarTabStyle
- */
- public static final int Theme_actionBarTabStyle = 12;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionBarTabTextStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionBarTabTextStyle
- */
- public static final int Theme_actionBarTabTextStyle = 14;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionBarTheme}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionBarTheme
- */
- public static final int Theme_actionBarTheme = 20;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionBarWidgetTheme}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionBarWidgetTheme
- */
- public static final int Theme_actionBarWidgetTheme = 21;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionButtonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionButtonStyle
- */
- public static final int Theme_actionButtonStyle = 49;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionDropDownStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionDropDownStyle
- */
- public static final int Theme_actionDropDownStyle = 45;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionMenuTextAppearance}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionMenuTextAppearance
- */
- public static final int Theme_actionMenuTextAppearance = 25;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionMenuTextColor}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- @attr name com.example.julian.endlessroll:actionMenuTextColor
- */
- public static final int Theme_actionMenuTextColor = 26;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModeBackground}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModeBackground
- */
- public static final int Theme_actionModeBackground = 29;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModeCloseButtonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModeCloseButtonStyle
- */
- public static final int Theme_actionModeCloseButtonStyle = 28;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModeCloseDrawable}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModeCloseDrawable
- */
- public static final int Theme_actionModeCloseDrawable = 31;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModeCopyDrawable}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModeCopyDrawable
- */
- public static final int Theme_actionModeCopyDrawable = 33;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModeCutDrawable}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModeCutDrawable
- */
- public static final int Theme_actionModeCutDrawable = 32;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModeFindDrawable}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModeFindDrawable
- */
- public static final int Theme_actionModeFindDrawable = 37;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModePasteDrawable}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModePasteDrawable
- */
- public static final int Theme_actionModePasteDrawable = 34;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModePopupWindowStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModePopupWindowStyle
- */
- public static final int Theme_actionModePopupWindowStyle = 39;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModeSelectAllDrawable}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModeSelectAllDrawable
- */
- public static final int Theme_actionModeSelectAllDrawable = 35;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModeShareDrawable}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModeShareDrawable
- */
- public static final int Theme_actionModeShareDrawable = 36;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModeSplitBackground}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModeSplitBackground
- */
- public static final int Theme_actionModeSplitBackground = 30;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModeStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModeStyle
- */
- public static final int Theme_actionModeStyle = 27;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionModeWebSearchDrawable}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionModeWebSearchDrawable
- */
- public static final int Theme_actionModeWebSearchDrawable = 38;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionOverflowButtonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionOverflowButtonStyle
- */
- public static final int Theme_actionOverflowButtonStyle = 15;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#actionOverflowMenuStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:actionOverflowMenuStyle
- */
- public static final int Theme_actionOverflowMenuStyle = 16;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#activityChooserViewStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:activityChooserViewStyle
- */
- public static final int Theme_activityChooserViewStyle = 57;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#alertDialogButtonGroupStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:alertDialogButtonGroupStyle
- */
- public static final int Theme_alertDialogButtonGroupStyle = 92;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#alertDialogCenterButtons}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:alertDialogCenterButtons
- */
- public static final int Theme_alertDialogCenterButtons = 93;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#alertDialogStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:alertDialogStyle
- */
- public static final int Theme_alertDialogStyle = 91;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#alertDialogTheme}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:alertDialogTheme
- */
- public static final int Theme_alertDialogTheme = 94;
- /**
-
This symbol is the offset where the {@link android.R.attr#windowAnimationStyle}
- attribute's value can be found in the {@link #Theme} array.
- @attr name android:windowAnimationStyle
- */
- public static final int Theme_android_windowAnimationStyle = 1;
- /**
-
This symbol is the offset where the {@link android.R.attr#windowIsFloating}
- attribute's value can be found in the {@link #Theme} array.
- @attr name android:windowIsFloating
- */
- public static final int Theme_android_windowIsFloating = 0;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#autoCompleteTextViewStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:autoCompleteTextViewStyle
- */
- public static final int Theme_autoCompleteTextViewStyle = 99;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#borderlessButtonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:borderlessButtonStyle
- */
- public static final int Theme_borderlessButtonStyle = 54;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#buttonBarButtonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:buttonBarButtonStyle
- */
- public static final int Theme_buttonBarButtonStyle = 51;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#buttonBarNegativeButtonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:buttonBarNegativeButtonStyle
- */
- public static final int Theme_buttonBarNegativeButtonStyle = 97;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#buttonBarNeutralButtonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:buttonBarNeutralButtonStyle
- */
- public static final int Theme_buttonBarNeutralButtonStyle = 98;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#buttonBarPositiveButtonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:buttonBarPositiveButtonStyle
- */
- public static final int Theme_buttonBarPositiveButtonStyle = 96;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#buttonBarStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:buttonBarStyle
- */
- public static final int Theme_buttonBarStyle = 50;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#buttonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:buttonStyle
- */
- public static final int Theme_buttonStyle = 100;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#buttonStyleSmall}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:buttonStyleSmall
- */
- public static final int Theme_buttonStyleSmall = 101;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#checkboxStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:checkboxStyle
- */
- public static final int Theme_checkboxStyle = 102;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#checkedTextViewStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:checkedTextViewStyle
- */
- public static final int Theme_checkedTextViewStyle = 103;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#colorAccent}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:colorAccent
- */
- public static final int Theme_colorAccent = 84;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#colorButtonNormal}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:colorButtonNormal
- */
- public static final int Theme_colorButtonNormal = 88;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#colorControlActivated}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:colorControlActivated
- */
- public static final int Theme_colorControlActivated = 86;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#colorControlHighlight}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:colorControlHighlight
- */
- public static final int Theme_colorControlHighlight = 87;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#colorControlNormal}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:colorControlNormal
- */
- public static final int Theme_colorControlNormal = 85;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#colorPrimary}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:colorPrimary
- */
- public static final int Theme_colorPrimary = 82;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#colorPrimaryDark}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:colorPrimaryDark
- */
- public static final int Theme_colorPrimaryDark = 83;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#colorSwitchThumbNormal}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:colorSwitchThumbNormal
- */
- public static final int Theme_colorSwitchThumbNormal = 89;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#controlBackground}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:controlBackground
- */
- public static final int Theme_controlBackground = 90;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#dialogPreferredPadding}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:dialogPreferredPadding
- */
- public static final int Theme_dialogPreferredPadding = 43;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#dialogTheme}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:dialogTheme
- */
- public static final int Theme_dialogTheme = 42;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#dividerHorizontal}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:dividerHorizontal
- */
- public static final int Theme_dividerHorizontal = 56;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#dividerVertical}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:dividerVertical
- */
- public static final int Theme_dividerVertical = 55;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#dropDownListViewStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:dropDownListViewStyle
- */
- public static final int Theme_dropDownListViewStyle = 74;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#dropdownListPreferredItemHeight}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:dropdownListPreferredItemHeight
- */
- public static final int Theme_dropdownListPreferredItemHeight = 46;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#editTextBackground}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:editTextBackground
- */
- public static final int Theme_editTextBackground = 63;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#editTextColor}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- @attr name com.example.julian.endlessroll:editTextColor
- */
- public static final int Theme_editTextColor = 62;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#editTextStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:editTextStyle
- */
- public static final int Theme_editTextStyle = 104;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#homeAsUpIndicator}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:homeAsUpIndicator
- */
- public static final int Theme_homeAsUpIndicator = 48;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#imageButtonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:imageButtonStyle
- */
- public static final int Theme_imageButtonStyle = 64;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#listChoiceBackgroundIndicator}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:listChoiceBackgroundIndicator
- */
- public static final int Theme_listChoiceBackgroundIndicator = 81;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#listDividerAlertDialog}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:listDividerAlertDialog
- */
- public static final int Theme_listDividerAlertDialog = 44;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#listPopupWindowStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:listPopupWindowStyle
- */
- public static final int Theme_listPopupWindowStyle = 75;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#listPreferredItemHeight}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:listPreferredItemHeight
- */
- public static final int Theme_listPreferredItemHeight = 69;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#listPreferredItemHeightLarge}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:listPreferredItemHeightLarge
- */
- public static final int Theme_listPreferredItemHeightLarge = 71;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#listPreferredItemHeightSmall}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:listPreferredItemHeightSmall
- */
- public static final int Theme_listPreferredItemHeightSmall = 70;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#listPreferredItemPaddingLeft}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:listPreferredItemPaddingLeft
- */
- public static final int Theme_listPreferredItemPaddingLeft = 72;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#listPreferredItemPaddingRight}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:listPreferredItemPaddingRight
- */
- public static final int Theme_listPreferredItemPaddingRight = 73;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#panelBackground}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:panelBackground
- */
- public static final int Theme_panelBackground = 78;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#panelMenuListTheme}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:panelMenuListTheme
- */
- public static final int Theme_panelMenuListTheme = 80;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#panelMenuListWidth}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:panelMenuListWidth
- */
- public static final int Theme_panelMenuListWidth = 79;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#popupMenuStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:popupMenuStyle
- */
- public static final int Theme_popupMenuStyle = 60;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#popupWindowStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:popupWindowStyle
- */
- public static final int Theme_popupWindowStyle = 61;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#radioButtonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:radioButtonStyle
- */
- public static final int Theme_radioButtonStyle = 105;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#ratingBarStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:ratingBarStyle
- */
- public static final int Theme_ratingBarStyle = 106;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#searchViewStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:searchViewStyle
- */
- public static final int Theme_searchViewStyle = 68;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#seekBarStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:seekBarStyle
- */
- public static final int Theme_seekBarStyle = 107;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#selectableItemBackground}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:selectableItemBackground
- */
- public static final int Theme_selectableItemBackground = 52;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#selectableItemBackgroundBorderless}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:selectableItemBackgroundBorderless
- */
- public static final int Theme_selectableItemBackgroundBorderless = 53;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#spinnerDropDownItemStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:spinnerDropDownItemStyle
- */
- public static final int Theme_spinnerDropDownItemStyle = 47;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#spinnerStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:spinnerStyle
- */
- public static final int Theme_spinnerStyle = 108;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#switchStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:switchStyle
- */
- public static final int Theme_switchStyle = 109;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#textAppearanceLargePopupMenu}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:textAppearanceLargePopupMenu
- */
- public static final int Theme_textAppearanceLargePopupMenu = 40;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#textAppearanceListItem}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:textAppearanceListItem
- */
- public static final int Theme_textAppearanceListItem = 76;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#textAppearanceListItemSmall}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:textAppearanceListItemSmall
- */
- public static final int Theme_textAppearanceListItemSmall = 77;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#textAppearanceSearchResultSubtitle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:textAppearanceSearchResultSubtitle
- */
- public static final int Theme_textAppearanceSearchResultSubtitle = 66;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#textAppearanceSearchResultTitle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:textAppearanceSearchResultTitle
- */
- public static final int Theme_textAppearanceSearchResultTitle = 65;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#textAppearanceSmallPopupMenu}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:textAppearanceSmallPopupMenu
- */
- public static final int Theme_textAppearanceSmallPopupMenu = 41;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#textColorAlertDialogListItem}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- @attr name com.example.julian.endlessroll:textColorAlertDialogListItem
- */
- public static final int Theme_textColorAlertDialogListItem = 95;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#textColorSearchUrl}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
May be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
-
May be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
- @attr name com.example.julian.endlessroll:textColorSearchUrl
- */
- public static final int Theme_textColorSearchUrl = 67;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#toolbarNavigationButtonStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:toolbarNavigationButtonStyle
- */
- public static final int Theme_toolbarNavigationButtonStyle = 59;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#toolbarStyle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:toolbarStyle
- */
- public static final int Theme_toolbarStyle = 58;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#windowActionBar}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:windowActionBar
- */
- public static final int Theme_windowActionBar = 2;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#windowActionBarOverlay}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:windowActionBarOverlay
- */
- public static final int Theme_windowActionBarOverlay = 4;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#windowActionModeOverlay}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:windowActionModeOverlay
- */
- public static final int Theme_windowActionModeOverlay = 5;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#windowFixedHeightMajor}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:windowFixedHeightMajor
- */
- public static final int Theme_windowFixedHeightMajor = 9;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#windowFixedHeightMinor}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:windowFixedHeightMinor
- */
- public static final int Theme_windowFixedHeightMinor = 7;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#windowFixedWidthMajor}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:windowFixedWidthMajor
- */
- public static final int Theme_windowFixedWidthMajor = 6;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#windowFixedWidthMinor}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:windowFixedWidthMinor
- */
- public static final int Theme_windowFixedWidthMinor = 8;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#windowMinWidthMajor}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:windowMinWidthMajor
- */
- public static final int Theme_windowMinWidthMajor = 10;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#windowMinWidthMinor}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
-The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
-some parent container.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:windowMinWidthMinor
- */
- public static final int Theme_windowMinWidthMinor = 11;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#windowNoTitle}
- attribute's value can be found in the {@link #Theme} array.
-
-
-
Must be a boolean value, either "true
" or "false
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:windowNoTitle
- */
- public static final int Theme_windowNoTitle = 3;
- /** Attributes that can be used with a Toolbar.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #Toolbar_android_gravity android:gravity} | |
- {@link #Toolbar_android_minHeight android:minHeight} | |
- {@link #Toolbar_collapseContentDescription com.example.julian.endlessroll:collapseContentDescription} | |
- {@link #Toolbar_collapseIcon com.example.julian.endlessroll:collapseIcon} | |
- {@link #Toolbar_contentInsetEnd com.example.julian.endlessroll:contentInsetEnd} | |
- {@link #Toolbar_contentInsetLeft com.example.julian.endlessroll:contentInsetLeft} | |
- {@link #Toolbar_contentInsetRight com.example.julian.endlessroll:contentInsetRight} | |
- {@link #Toolbar_contentInsetStart com.example.julian.endlessroll:contentInsetStart} | |
- {@link #Toolbar_logo com.example.julian.endlessroll:logo} | |
- {@link #Toolbar_logoDescription com.example.julian.endlessroll:logoDescription} | |
- {@link #Toolbar_maxButtonHeight com.example.julian.endlessroll:maxButtonHeight} | |
- {@link #Toolbar_navigationContentDescription com.example.julian.endlessroll:navigationContentDescription} | |
- {@link #Toolbar_navigationIcon com.example.julian.endlessroll:navigationIcon} | |
- {@link #Toolbar_popupTheme com.example.julian.endlessroll:popupTheme} | |
- {@link #Toolbar_subtitle com.example.julian.endlessroll:subtitle} | |
- {@link #Toolbar_subtitleTextAppearance com.example.julian.endlessroll:subtitleTextAppearance} | |
- {@link #Toolbar_subtitleTextColor com.example.julian.endlessroll:subtitleTextColor} | |
- {@link #Toolbar_title com.example.julian.endlessroll:title} | |
- {@link #Toolbar_titleMarginBottom com.example.julian.endlessroll:titleMarginBottom} | |
- {@link #Toolbar_titleMarginEnd com.example.julian.endlessroll:titleMarginEnd} | |
- {@link #Toolbar_titleMarginStart com.example.julian.endlessroll:titleMarginStart} | |
- {@link #Toolbar_titleMarginTop com.example.julian.endlessroll:titleMarginTop} | |
- {@link #Toolbar_titleMargins com.example.julian.endlessroll:titleMargins} | |
- {@link #Toolbar_titleTextAppearance com.example.julian.endlessroll:titleTextAppearance} | |
- {@link #Toolbar_titleTextColor com.example.julian.endlessroll:titleTextColor} | |
-
- @see #Toolbar_android_gravity
- @see #Toolbar_android_minHeight
- @see #Toolbar_collapseContentDescription
- @see #Toolbar_collapseIcon
- @see #Toolbar_contentInsetEnd
- @see #Toolbar_contentInsetLeft
- @see #Toolbar_contentInsetRight
- @see #Toolbar_contentInsetStart
- @see #Toolbar_logo
- @see #Toolbar_logoDescription
- @see #Toolbar_maxButtonHeight
- @see #Toolbar_navigationContentDescription
- @see #Toolbar_navigationIcon
- @see #Toolbar_popupTheme
- @see #Toolbar_subtitle
- @see #Toolbar_subtitleTextAppearance
- @see #Toolbar_subtitleTextColor
- @see #Toolbar_title
- @see #Toolbar_titleMarginBottom
- @see #Toolbar_titleMarginEnd
- @see #Toolbar_titleMarginStart
- @see #Toolbar_titleMarginTop
- @see #Toolbar_titleMargins
- @see #Toolbar_titleTextAppearance
- @see #Toolbar_titleTextColor
- */
- public static final int[] Toolbar = {
- 0x010100af, 0x01010140, 0x7f010003, 0x7f010006,
- 0x7f01000a, 0x7f010016, 0x7f010017, 0x7f010018,
- 0x7f010019, 0x7f01001b, 0x7f0100ba, 0x7f0100bb,
- 0x7f0100bc, 0x7f0100bd, 0x7f0100be, 0x7f0100bf,
- 0x7f0100c0, 0x7f0100c1, 0x7f0100c2, 0x7f0100c3,
- 0x7f0100c4, 0x7f0100c5, 0x7f0100c6, 0x7f0100c7,
- 0x7f0100c8
- };
- /**
- This symbol is the offset where the {@link android.R.attr#gravity}
- attribute's value can be found in the {@link #Toolbar} array.
- @attr name android:gravity
- */
- public static final int Toolbar_android_gravity = 0;
- /**
-
This symbol is the offset where the {@link android.R.attr#minHeight}
- attribute's value can be found in the {@link #Toolbar} array.
- @attr name android:minHeight
- */
- public static final int Toolbar_android_minHeight = 1;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#collapseContentDescription}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:collapseContentDescription
- */
- public static final int Toolbar_collapseContentDescription = 19;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#collapseIcon}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:collapseIcon
- */
- public static final int Toolbar_collapseIcon = 18;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#contentInsetEnd}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:contentInsetEnd
- */
- public static final int Toolbar_contentInsetEnd = 6;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#contentInsetLeft}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:contentInsetLeft
- */
- public static final int Toolbar_contentInsetLeft = 7;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#contentInsetRight}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:contentInsetRight
- */
- public static final int Toolbar_contentInsetRight = 8;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#contentInsetStart}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:contentInsetStart
- */
- public static final int Toolbar_contentInsetStart = 5;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#logo}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:logo
- */
- public static final int Toolbar_logo = 4;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#logoDescription}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:logoDescription
- */
- public static final int Toolbar_logoDescription = 22;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#maxButtonHeight}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:maxButtonHeight
- */
- public static final int Toolbar_maxButtonHeight = 17;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#navigationContentDescription}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:navigationContentDescription
- */
- public static final int Toolbar_navigationContentDescription = 21;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#navigationIcon}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:navigationIcon
- */
- public static final int Toolbar_navigationIcon = 20;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#popupTheme}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:popupTheme
- */
- public static final int Toolbar_popupTheme = 9;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#subtitle}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:subtitle
- */
- public static final int Toolbar_subtitle = 3;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#subtitleTextAppearance}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:subtitleTextAppearance
- */
- public static final int Toolbar_subtitleTextAppearance = 11;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#subtitleTextColor}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:subtitleTextColor
- */
- public static final int Toolbar_subtitleTextColor = 24;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#title}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:title
- */
- public static final int Toolbar_title = 2;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#titleMarginBottom}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:titleMarginBottom
- */
- public static final int Toolbar_titleMarginBottom = 16;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#titleMarginEnd}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:titleMarginEnd
- */
- public static final int Toolbar_titleMarginEnd = 14;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#titleMarginStart}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:titleMarginStart
- */
- public static final int Toolbar_titleMarginStart = 13;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#titleMarginTop}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:titleMarginTop
- */
- public static final int Toolbar_titleMarginTop = 15;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#titleMargins}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:titleMargins
- */
- public static final int Toolbar_titleMargins = 12;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#titleTextAppearance}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:titleTextAppearance
- */
- public static final int Toolbar_titleTextAppearance = 10;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#titleTextColor}
- attribute's value can be found in the {@link #Toolbar} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:titleTextColor
- */
- public static final int Toolbar_titleTextColor = 23;
- /** Attributes that can be used with a View.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #View_android_focusable android:focusable} | |
- {@link #View_android_theme android:theme} | |
- {@link #View_paddingEnd com.example.julian.endlessroll:paddingEnd} | |
- {@link #View_paddingStart com.example.julian.endlessroll:paddingStart} | |
- {@link #View_theme com.example.julian.endlessroll:theme} | |
-
- @see #View_android_focusable
- @see #View_android_theme
- @see #View_paddingEnd
- @see #View_paddingStart
- @see #View_theme
- */
- public static final int[] View = {
- 0x01010000, 0x010100da, 0x7f0100c9, 0x7f0100ca,
- 0x7f0100cb
- };
- /**
- This symbol is the offset where the {@link android.R.attr#focusable}
- attribute's value can be found in the {@link #View} array.
- @attr name android:focusable
- */
- public static final int View_android_focusable = 1;
- /**
-
This symbol is the offset where the {@link android.R.attr#theme}
- attribute's value can be found in the {@link #View} array.
- @attr name android:theme
- */
- public static final int View_android_theme = 0;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#paddingEnd}
- attribute's value can be found in the {@link #View} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:paddingEnd
- */
- public static final int View_paddingEnd = 3;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#paddingStart}
- attribute's value can be found in the {@link #View} array.
-
-
-
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
-Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
-in (inches), mm (millimeters).
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:paddingStart
- */
- public static final int View_paddingStart = 2;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#theme}
- attribute's value can be found in the {@link #View} array.
-
-
-
Must be a reference to another resource, in the form "@[+][package:]type:name
"
-or to a theme attribute in the form "?[package:][type:]name
".
- @attr name com.example.julian.endlessroll:theme
- */
- public static final int View_theme = 4;
- /** Attributes that can be used with a ViewBackgroundHelper.
-
Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #ViewBackgroundHelper_android_background android:background} | |
- {@link #ViewBackgroundHelper_backgroundTint com.example.julian.endlessroll:backgroundTint} | |
- {@link #ViewBackgroundHelper_backgroundTintMode com.example.julian.endlessroll:backgroundTintMode} | |
-
- @see #ViewBackgroundHelper_android_background
- @see #ViewBackgroundHelper_backgroundTint
- @see #ViewBackgroundHelper_backgroundTintMode
- */
- public static final int[] ViewBackgroundHelper = {
- 0x010100d4, 0x7f0100cc, 0x7f0100cd
- };
- /**
- This symbol is the offset where the {@link android.R.attr#background}
- attribute's value can be found in the {@link #ViewBackgroundHelper} array.
- @attr name android:background
- */
- public static final int ViewBackgroundHelper_android_background = 0;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#backgroundTint}
- attribute's value can be found in the {@link #ViewBackgroundHelper} array.
-
-
-
Must be a color value, in the form of "#rgb
", "#argb
",
-"#rrggbb
", or "#aarrggbb
".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name
") or
-theme attribute (in the form
-"?[package:][type:]name
")
-containing a value of this type.
- @attr name com.example.julian.endlessroll:backgroundTint
- */
- public static final int ViewBackgroundHelper_backgroundTint = 1;
- /**
-
This symbol is the offset where the {@link com.example.julian.endlessroll.R.attr#backgroundTintMode}
- attribute's value can be found in the {@link #ViewBackgroundHelper} array.
-
-
-
Must be one of the following constant values.
-
-
-
-
-Constant | Value | Description |
-src_over | 3 | |
-src_in | 5 | |
-src_atop | 9 | |
-multiply | 14 | |
-screen | 15 | |
-
- @attr name com.example.julian.endlessroll:backgroundTintMode
- */
- public static final int ViewBackgroundHelper_backgroundTintMode = 2;
- /** Attributes that can be used with a ViewStubCompat.
- Includes the following attributes:
-
-
-
- Attribute | Description |
- {@link #ViewStubCompat_android_id android:id} | |
- {@link #ViewStubCompat_android_inflatedId android:inflatedId} | |
- {@link #ViewStubCompat_android_layout android:layout} | |
-
- @see #ViewStubCompat_android_id
- @see #ViewStubCompat_android_inflatedId
- @see #ViewStubCompat_android_layout
- */
- public static final int[] ViewStubCompat = {
- 0x010100d0, 0x010100f2, 0x010100f3
- };
- /**
- This symbol is the offset where the {@link android.R.attr#id}
- attribute's value can be found in the {@link #ViewStubCompat} array.
- @attr name android:id
- */
- public static final int ViewStubCompat_android_id = 0;
- /**
-
This symbol is the offset where the {@link android.R.attr#inflatedId}
- attribute's value can be found in the {@link #ViewStubCompat} array.
- @attr name android:inflatedId
- */
- public static final int ViewStubCompat_android_inflatedId = 2;
- /**
-
This symbol is the offset where the {@link android.R.attr#layout}
- attribute's value can be found in the {@link #ViewStubCompat} array.
- @attr name android:layout
- */
- public static final int ViewStubCompat_android_layout = 1;
- };
-}
diff --git a/app/build/intermediates/manifest/androidTest/debug/AndroidManifest.xml b/app/build/intermediates/manifest/androidTest/debug/AndroidManifest.xml
index 8478311..53a65c4 100644
--- a/app/build/intermediates/manifest/androidTest/debug/AndroidManifest.xml
+++ b/app/build/intermediates/manifest/androidTest/debug/AndroidManifest.xml
@@ -1,6 +1,6 @@
+ package="de.frajul.endlessroll.test">
@@ -9,8 +9,8 @@
+ android:label="Tests for de.frajul.endlessroll"/>
diff --git a/app/build/intermediates/manifests/full/debug/AndroidManifest.xml b/app/build/intermediates/manifests/full/debug/AndroidManifest.xml
index e60a914..593b9b5 100644
--- a/app/build/intermediates/manifests/full/debug/AndroidManifest.xml
+++ b/app/build/intermediates/manifests/full/debug/AndroidManifest.xml
@@ -1,6 +1,6 @@
@@ -19,7 +19,7 @@
android:supportsRtl="true" >
android:theme="@style/AppTheme">
diff --git a/app/build/intermediates/res/resources-debug-androidTest.ap_ b/app/build/intermediates/res/resources-debug-androidTest.ap_
index af9d336..b3c5d50 100644
Binary files a/app/build/intermediates/res/resources-debug-androidTest.ap_ and b/app/build/intermediates/res/resources-debug-androidTest.ap_ differ
diff --git a/app/build/intermediates/res/resources-debug.ap_ b/app/build/intermediates/res/resources-debug.ap_
index af456c7..691e50f 100644
Binary files a/app/build/intermediates/res/resources-debug.ap_ and b/app/build/intermediates/res/resources-debug.ap_ differ
diff --git a/app/build/outputs/logs/manifest-merger-debug-report.txt b/app/build/outputs/logs/manifest-merger-debug-report.txt
index b3d84b2..3f794a5 100644
--- a/app/build/outputs/logs/manifest-merger-debug-report.txt
+++ b/app/build/outputs/logs/manifest-merger-debug-report.txt
@@ -2,7 +2,7 @@
manifest
ADDED from C:\Users\Julian\AndroidStudioProjects\EndlessRoll\app\src\main\AndroidManifest.xml:2:1-28:12
package
- ADDED from C:\Users\Julian\AndroidStudioProjects\EndlessRoll\app\src\main\AndroidManifest.xml:3:5-45
+ ADDED from C:\Users\Julian\AndroidStudioProjects\EndlessRoll\app\src\main\AndroidManifest.xml:3:5-36
INJECTED from C:\Users\Julian\AndroidStudioProjects\EndlessRoll\app\src\main\AndroidManifest.xml
INJECTED from C:\Users\Julian\AndroidStudioProjects\EndlessRoll\app\src\main\AndroidManifest.xml
android:versionName
@@ -31,7 +31,7 @@ MERGED from [com.android.support:support-v4:23.1.1] C:\Users\Julian\.android\bui
ADDED from C:\Users\Julian\AndroidStudioProjects\EndlessRoll\app\src\main\AndroidManifest.xml:10:9-35
android:icon
ADDED from C:\Users\Julian\AndroidStudioProjects\EndlessRoll\app\src\main\AndroidManifest.xml:11:9-43
-activity#com.example.julian.endlessroll.main.GameActivity
+activity#de.frajul.endlessroll.main.GameActivity
ADDED from C:\Users\Julian\AndroidStudioProjects\EndlessRoll\app\src\main\AndroidManifest.xml:16:9-25:20
android:screenOrientation
ADDED from C:\Users\Julian\AndroidStudioProjects\EndlessRoll\app\src\main\AndroidManifest.xml:19:13-50
diff --git a/app/src/androidTest/java/com/example/julian/endlessroll/ApplicationTest.java b/app/src/androidTest/java/com/example/julian/endlessroll/ApplicationTest.java
deleted file mode 100644
index b8f12a6..0000000
--- a/app/src/androidTest/java/com/example/julian/endlessroll/ApplicationTest.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.example.julian.endlessroll;
-
-import android.app.Application;
-import android.test.ApplicationTestCase;
-
-/**
- * Testing Fundamentals
- */
-public class ApplicationTest extends ApplicationTestCase {
- public ApplicationTest() {
- super(Application.class);
- }
-}
\ No newline at end of file
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 1ff1106..dad7393 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -1,6 +1,6 @@
+ package="de.frajul.endlessroll">
extends ArrayList {
-
- @Override
- public synchronized String toString() {
- return super.toString();
- }
-
- @Override
- public synchronized boolean add(E object) {
- return super.add(object);
- }
-
- @Override
- public synchronized void add(int index, E object) {
- super.add(index, object);
- }
-
- @Override
- public synchronized boolean addAll(Collection extends E> collection) {
- return super.addAll(collection);
- }
-
- @Override
- public synchronized boolean addAll(int index, Collection extends E> collection) {
- return super.addAll(index, collection);
- }
-
- @Override
- public synchronized void clear() {
- super.clear();
- }
-
- @Override
- public synchronized Object clone() {
- return super.clone();
- }
-
- @Override
- public synchronized void ensureCapacity(int minimumCapacity) {
- super.ensureCapacity(minimumCapacity);
- }
-
- @Override
- public synchronized E get(int index) {
- return super.get(index);
- }
-
- @Override
- public synchronized int size() {
- return super.size();
- }
-
- @Override
- public synchronized boolean isEmpty() {
- return super.isEmpty();
- }
-
- @Override
- public synchronized boolean contains(Object object) {
- return super.contains(object);
- }
-
- @Override
- public synchronized int indexOf(Object object) {
- return super.indexOf(object);
- }
-
- @Override
- public synchronized int lastIndexOf(Object object) {
- return super.lastIndexOf(object);
- }
-
- @Override
- public synchronized E remove(int index) {
- return super.remove(index);
- }
-
- @Override
- public synchronized boolean remove(Object object) {
- return super.remove(object);
- }
-
- @Override
- protected synchronized void removeRange(int fromIndex, int toIndex) {
- super.removeRange(fromIndex, toIndex);
- }
-
- @Override
- public synchronized E set(int index, E object) {
- return super.set(index, object);
- }
-
- @Override
- public synchronized Object[] toArray() {
- return super.toArray();
- }
-
- @Override
- public synchronized T[] toArray(T[] contents) {
- return super.toArray(contents);
- }
-
- @Override
- public synchronized void trimToSize() {
- super.trimToSize();
- }
-
- @Override
- public synchronized int hashCode() {
- return super.hashCode();
- }
-
- @Override
- public synchronized boolean equals(Object o) {
- return super.equals(o);
- }
-
- @Override
- public synchronized List subList(int start, int end) {
- return super.subList(start, end);
- }
-
- @Override
- public synchronized boolean containsAll(Collection> collection) {
- return super.containsAll(collection);
- }
-
- @Override
- public synchronized boolean removeAll(Collection> collection) {
- return super.removeAll(collection);
- }
-
- @Override
- public synchronized boolean retainAll(Collection> collection) {
- return super.retainAll(collection);
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/data/Vector.java b/app/src/main/java/com/example/julian/endlessroll/data/Vector.java
deleted file mode 100644
index b9f2451..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/data/Vector.java
+++ /dev/null
@@ -1,101 +0,0 @@
-package com.example.julian.endlessroll.data;
-
-/**
- * Created by Julian on 01.12.2015.
- */
-public class Vector {
-
- public float x, y;
-
- public Vector() {
- this(0, 0);
- }
-
- public Vector(Vector other) {
- this(other.x, other.y);
- }
-
- public Vector(float x, float y) {
- set(x, y);
- }
-
- @Override
- public String toString() {
- return "Vector(" + x + ", " + y + ")";
- }
-
- public Vector set(float x, float y) {
- this.x = x;
- this.y = y;
- return this;
- }
-
- public float length() {
- return (float) Math.sqrt(x * x + y * y);
- }
-
- public Vector normalize() {
- float length = this.length();
- x /= length;
- y /= length;
- return this;
- }
-
- public Vector translate(Vector other) {
- this.x += other.x;
- this.y += other.y;
- return this;
- }
-
- public Vector translate(float x, float y) {
- this.x += x;
- this.y += y;
- return this;
- }
-
- public Vector mul(float z) {
- x *= z;
- y *= z;
- return this;
- }
-
- public Vector mul(Vector other) {
- this.x *= other.x;
- this.y *= other.y;
- return this;
- }
-
- public Vector mul(float x, float y) {
- this.x *= x;
- this.y *= y;
- return this;
- }
-
- public Vector negate() {
- this.x *= -1;
- this.y *= -1;
- return this;
- }
-
- public Vector vectorTo(Vector other) {
- float x = other.x - this.x;
- float y = other.y - this.y;
- return new Vector(x, y);
- }
-
- public void setX(float x) {
- this.x = x;
- }
-
- public void setY(float y) {
- this.y = y;
- }
-
- public float getX() {
- return x;
- }
-
- public float getY() {
- return y;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/AnimatedEntity.java b/app/src/main/java/com/example/julian/endlessroll/entities/AnimatedEntity.java
deleted file mode 100644
index a65f614..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/AnimatedEntity.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.example.julian.endlessroll.entities;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.textures.Texture;
-import com.example.julian.endlessroll.main.game.Timer;
-
-/**
- * Created by Julian on 20.02.2017.
- */
-
-public class AnimatedEntity extends Entity {
-
- protected Animation animation;
-
- public AnimatedEntity(Texture texture, Vector position, float width, float height) {
- super(texture, position, width, height);
- animation = new Animation();
- }
-
- public void update(Timer timer){
- animation.update(timer);
- super.setTextureAtlasIndex(animation.getCurrentTexIndex());
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/Animation.java b/app/src/main/java/com/example/julian/endlessroll/entities/Animation.java
deleted file mode 100644
index 55507b2..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/Animation.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package com.example.julian.endlessroll.entities;
-
-import com.example.julian.endlessroll.main.game.Timer;
-
-/**
- * Created by Julian on 14.12.2015.
- */
-public class Animation {
-
- private int[] indexSequence = {0, 1, 2, 3};
- private boolean looping = false;
- private int requiredDelta = 110;
-
- private int indexPointer = 0;
- private boolean stillRunning = true;
- private long lastSwitchTime = -1;
-
- public void update(Timer timer) {
- if (lastSwitchTime == -1) {
- lastSwitchTime = timer.getCurrentTime();
- return;
- }
- if (stillRunning) {
- long delta = timer.getCurrentTime() - lastSwitchTime;
- if (delta >= requiredDelta) {
- lastSwitchTime = timer.getCurrentTime();
- indexPointer++;
- if (!looping && indexPointer == indexSequence.length - 1)
- stillRunning = false;
- if (looping && indexPointer == indexSequence.length)
- indexPointer = 0;
- }
- }
- }
-
- public int getCurrentTexIndex() {
- return indexSequence[indexPointer];
- }
-
- public void setIndexSequence(int[] indexSequence) {
- this.indexSequence = indexSequence;
- }
-
- public void setRequiredDelta(int requiredDelta) {
- this.requiredDelta = requiredDelta;
- }
-
- public void setLooping(boolean looping) {
- this.looping = looping;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/Background.java b/app/src/main/java/com/example/julian/endlessroll/entities/Background.java
deleted file mode 100644
index 4b4889a..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/Background.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package com.example.julian.endlessroll.entities;
-
-import com.example.julian.endlessroll.data.SynchronizedArrayList;
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.textures.Texture;
-
-/**
- * Created by Julian on 20.07.2016.
- */
-public class Background extends SynchronizedArrayList {
-
- private final float PART_WIDTH = 5;
- private final float HALF_PART_WIDTH = PART_WIDTH / 2;
- private final float HEIGHT = 2.5f;
- private Texture texture;
-
- public Background(Texture texture) {
- this.texture = texture;
- super.add(createPart(-HALF_PART_WIDTH));
- }
-
- public void changeTexture(Texture texture) {
- this.texture = texture;
- synchronized (this) {
- for (Entity entity : this)
- entity.setTexture(texture);
- }
- }
-
- private Entity createPart(float xLeftEdge) {
- return new Entity(texture, new Vector(xLeftEdge + HALF_PART_WIDTH, (HEIGHT - 2) / 2), PART_WIDTH, HEIGHT);
- }
-
- public void move(float x, float cameraX) {
- Vector movement = new Vector(x, 0);
- synchronized (this) {
- for (Entity part : this)
- part.move(movement);
- }
- if (!super.isEmpty()) {
- Entity last = super.get(super.size() - 1);
- if (last.getRightEdge() - cameraX < 3) {
- super.add(createPart(last.getRightEdge() - 0.001f));
- }
- if (super.get(0).getRightEdge() - cameraX < -3) {
- super.remove(0);
- }
- }
- }
-
- public void resetPosition() {
- super.clear();
- super.add(createPart(-HALF_PART_WIDTH));
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/DestroyEffect.java b/app/src/main/java/com/example/julian/endlessroll/entities/DestroyEffect.java
deleted file mode 100644
index 9f4e6f9..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/DestroyEffect.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package com.example.julian.endlessroll.entities;
-
-import android.support.annotation.Nullable;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.particles.ParticleEffect;
-import com.example.julian.endlessroll.entities.particles.ParticleSource;
-import com.example.julian.endlessroll.entities.particles.ParticleSystem;
-
-/**
- * Created by Julian on 11.03.2016.
- */
-public enum DestroyEffect {
-
- EXPLOSION, STAR_EXPLOSION, ENERGY_COLLECT, NONE;
-
- @Nullable
- public ParticleSource createEffect(ParticleSystem system, Vector position, Vector size) {
- if (this == NONE)
- return null;
- ParticleSource source = new ParticleSource(position, getEffect(system));
- source.setSpawnSize(size);
- return source;
- }
-
- private ParticleEffect getEffect(ParticleSystem system) {
- switch (this) {
- case EXPLOSION:
- return system.explosion;
- case STAR_EXPLOSION:
- return system.starCollect;
- case ENERGY_COLLECT:
- return system.energyCollect;
- default:
- return null;
- }
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/Energy.java b/app/src/main/java/com/example/julian/endlessroll/entities/Energy.java
deleted file mode 100644
index a3f01f0..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/Energy.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.example.julian.endlessroll.entities;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.textures.Texture;
-import com.example.julian.endlessroll.levels.PositionData;
-
-public class Energy extends AnimatedEntity {
-
- private final static float SIZE = 0.3f;
-
- public Energy(Texture texture, PositionData data) {
- super(texture, new Vector(data.getX(), data.getY()), SIZE, SIZE);
- animation.setLooping(true);
- animation.setRequiredDelta(130);
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/Entity.java b/app/src/main/java/com/example/julian/endlessroll/entities/Entity.java
deleted file mode 100644
index 06ed3be..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/Entity.java
+++ /dev/null
@@ -1,104 +0,0 @@
-package com.example.julian.endlessroll.entities;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.collision.geometry.Quad;
-import com.example.julian.endlessroll.entities.textures.Texture;
-
-/**
- * Created by Julian on 20.11.2015.
- */
-public class Entity extends Quad {
-
- private int textureAtlasIndex;
- private Texture texture;
- private Vector movement;
- private float rotation;
- private float alpha = 1.0f;
- private boolean destroyed;
- private DestroyEffect destroyEffect;
- private Vector maxTexSize;
-
- public Entity(Texture texture, Vector position, float width, float height) {
- super(position, width, height);
- this.texture = texture;
- this.movement = new Vector();
- this.maxTexSize = new Vector();
- }
-
- public void move(Vector movement) {
- position.translate(movement);
- }
-
- public void rotate(float factor) {
- rotation += factor;
- }
-
- public void setToTerrain(float terrainEdge) {
- position.y = terrainEdge + height / 2;
- }
-
- public void setTopEdge(float y) {
- position.y = y - height / 2;
- }
-
- public Texture getTexture() {
- return texture;
- }
-
- public void setTexture(Texture texture) {
- this.texture = texture;
- }
-
- public Vector getMovement() {
- return movement;
- }
-
- public void setMovement(Vector movement) {
- this.movement = movement;
- }
-
- public float getRotation() {
- return rotation;
- }
-
- public void setRotation(float rotation) {
- this.rotation = rotation;
- }
-
- public void setAlpha(float alpha) {
- this.alpha = alpha;
- }
-
- public float getAlpha() {
- return alpha;
- }
-
- public void destroy(DestroyEffect destroyEffect) {
- this.destroyed = true;
- this.destroyEffect = destroyEffect;
- }
-
- public boolean isDestroyed() {
- return destroyed;
- }
-
- public DestroyEffect getDestroyEffect() {
- return destroyEffect;
- }
-
- public void setTextureAtlasIndex(int textureAtlasIndex) {
- this.textureAtlasIndex = textureAtlasIndex;
- }
-
- public int getTextureAtlasIndex() {
- return textureAtlasIndex;
- }
-
- public void setMaxTexSize(Vector maxTexSize) {
- this.maxTexSize = maxTexSize;
- }
-
- public Vector getMaxTexSize() {
- return maxTexSize;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/Goal.java b/app/src/main/java/com/example/julian/endlessroll/entities/Goal.java
deleted file mode 100644
index d1dc4a0..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/Goal.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.example.julian.endlessroll.entities;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.textures.Texture;
-
-public class Goal extends Entity {
-
- public Goal(Texture texture) {
- super(texture, new Vector(), 0.1f, 3);
- super.getMaxTexSize().setY(0.2f);
- }
-
- public void setGoalX(float goalX) {
- super.setPosition(new Vector(goalX - 0.05f, 0));
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/Obstacle.java b/app/src/main/java/com/example/julian/endlessroll/entities/Obstacle.java
deleted file mode 100644
index a35566d..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/Obstacle.java
+++ /dev/null
@@ -1,93 +0,0 @@
-package com.example.julian.endlessroll.entities;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.levels.MoveComponent;
-import com.example.julian.endlessroll.levels.ObstacleData;
-import com.example.julian.endlessroll.levels.worlds.World;
-
-import java.util.Random;
-
-/**
- * Created by Julian on 20.11.2015.
- */
-public class Obstacle extends Entity {
-
- private boolean deadly;
- private boolean floating;
- private boolean moving;
- private MoveComponent moveComponent;
-
- private Vertex zeroPoint;
- private boolean clockwise;
- private float totalMoveDistance;
-
- private float moveProgress;
-
- public Obstacle(World world, ObstacleData data, float terrainEdge) {
- super(world.getObstacleTexture(), new Vector(data.getX(), data.getY()), data.getWidth(), data.getHeight());
- this.deadly = data.isDeadly();
- this.floating = data.isFloating();
- this.moving = data.isMoving();
- this.moveComponent = data.getMoveComponent();
- if (moveComponent != null)
- moveComponent.shrink(new Vector(super.getWidth(), super.getHeight()));
-
- if (!floating)
- super.setToTerrain(terrainEdge);
- setTextureAtlasIndex();
- if (moving)
- randomMovementData();
- }
-
- public void moveWithMoveComponent(float value) {
- float distance = value * moveComponent.getSpeed() * 0.001f;
- moveProgress += distance / totalMoveDistance;
- moveProgress %= 1.0f;
- setPositionForMoveProgress();
- }
-
- private void setPositionForMoveProgress() {
- float distance = 0;
- Vertex lastVertex = zeroPoint;
- while (true) {
- Vertex nextVertex = lastVertex.getNext(clockwise);
- float nextDistance = distance + (Math.abs(lastVertex.getX() - nextVertex.getX()) * 0.5f * moveComponent.getWidth()) + (Math.abs(lastVertex.getY() - nextVertex.getY()) * 0.5f * moveComponent.getHeight());
- if (nextDistance >= moveProgress * totalMoveDistance) {
- float distanceLeft = moveProgress * totalMoveDistance - distance;
- Vector direction = new Vector(nextVertex.getX(), nextVertex.getY()).translate(new Vector(lastVertex.getX(), lastVertex.getY()).negate());
- direction = direction.mul(0.5f * distanceLeft);
- super.setPosition(moveComponent.getPositionOfVertex(lastVertex).translate(direction));
- return;
- }
- distance = nextDistance;
- lastVertex = nextVertex;
- }
- }
-
- private void randomMovementData() {
- Random random = new Random();
- int index = random.nextInt(4);
- zeroPoint = Vertex.values()[index];
- clockwise = random.nextBoolean();
- totalMoveDistance = moveComponent.getWidth() * 2 + moveComponent.getHeight() * 2;
- }
-
- private void setTextureAtlasIndex() {
- if (deadly)
- super.setTextureAtlasIndex(2);
- if (floating)
- super.setTextureAtlasIndex(0);
- if (deadly && floating)
- super.setTextureAtlasIndex(1);
- if (!deadly && !floating)
- super.setTextureAtlasIndex(3);
- }
-
- public boolean isMoving() {
- return moving;
- }
-
- public boolean isDeadly() {
- return deadly;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/Player.java b/app/src/main/java/com/example/julian/endlessroll/entities/Player.java
deleted file mode 100644
index 097da0a..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/Player.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.example.julian.endlessroll.entities;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.textures.Texture;
-import com.example.julian.endlessroll.main.GameLog;
-
-/**
- * Created by Julian on 20.11.2015.
- */
-public class Player extends Entity {
-
- private final float ROTATION_SPEED = -400;
- public final float RADIUS = 0.1f;
- private final float START_X = -0.9f;
- private final float SPEED = 0.002f;
-
- private float startSpeed, endSpeed;
- private float speed = SPEED;
-
- public Player(Texture texture) {
- super(texture, new Vector(), 0, 0);
- super.setWidth(RADIUS * 2);
- super.setHeight(RADIUS * 2);
- }
-
- public void init(float terrainEdge, float startSpeed, float endSpeed) {
- GameLog.i("init: " + startSpeed + "; " + endSpeed);
- super.setToTerrain(terrainEdge);
- super.getPosition().x = START_X;
- super.setMovement(new Vector(speed, 0));
- this.startSpeed = startSpeed;
- this.endSpeed = endSpeed;
- setSpeedByProgress(0);
- }
-
- public void setSpeedByProgress(float progress) {
- this.speed = ((endSpeed - startSpeed) * progress + startSpeed) * SPEED;
- super.getMovement().x = speed;
- }
-
- public float getProgress() {
- return getPosition().x - START_X;
- }
-
- public float getSpeed() {
- return speed;
- }
-
- @Override
- public void move(Vector movement) {
- super.move(movement);
- rotate(movement.x * ROTATION_SPEED);
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/Star.java b/app/src/main/java/com/example/julian/endlessroll/entities/Star.java
deleted file mode 100644
index ff1b001..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/Star.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.example.julian.endlessroll.entities;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.textures.Texture;
-import com.example.julian.endlessroll.levels.PositionData;
-
-public class Star extends Entity {
-
- private final static float SIZE = 0.25f;
- private int index;
-
- public Star(int index, Texture texture, PositionData data) {
- super(texture, new Vector(data.getX(), data.getY()), SIZE, SIZE);
- this.index = index;
- }
-
- public int getIndex() {
- return index;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/Vertex.java b/app/src/main/java/com/example/julian/endlessroll/entities/Vertex.java
deleted file mode 100644
index 9334088..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/Vertex.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.example.julian.endlessroll.entities;
-
-import com.example.julian.endlessroll.main.GameLog;
-
-/**
- * Created by Julian on 11.12.2016.
- */
-
-public enum Vertex {
-
- UL(0, -1, 1), UR(1, 1, 1), BL(3, -1, -1), BR(2, 1, -1);
-
- private int index;
- private float x, y;
-
- Vertex(int index, float x, float y) {
- this.index = index;
- this.x = x;
- this.y = y;
- }
-
- public Vertex getNext(boolean clockwise) {
- int newIndex = index + 1;
- if (!clockwise)
- newIndex = index - 1;
- if (newIndex > 3)
- newIndex = 0;
- if (newIndex < 0)
- newIndex = 3;
- for (Vertex vertex : values())
- if (vertex.index == newIndex)
- return vertex;
- GameLog.e("No vertex with index " + index + " found!!!");
- return null;
- }
-
- public float getX() {
- return x;
- }
-
- public float getY() {
- return y;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/CircleTriangleCollisionDetector.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/CircleTriangleCollisionDetector.java
deleted file mode 100644
index 29cef87..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/CircleTriangleCollisionDetector.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package com.example.julian.endlessroll.entities.collision;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.collision.geometry.Circle;
-import com.example.julian.endlessroll.entities.collision.geometry.Triangle;
-
-/**
- * Created by Julian on 28.02.2016.
- */
-public class CircleTriangleCollisionDetector {
-
- public boolean circleTriangleCollision(Circle circle, Triangle triangle) {
- if (circleIntersectingWithTriangleVertices(circle, triangle))
- return true;
-
- if (circleCenterInsideTriangle(circle, triangle))
- return true;
-
- if (circleIntersectingWithTriangleEdges(circle, triangle))
- return true;
- return false;
- }
-
- private boolean circleIntersectingWithTriangleEdges(Circle circle, Triangle triangle) {
- Vector edge1 = triangle.getVertex1().vectorTo(triangle.getVertex2());
- Vector edge2 = triangle.getVertex2().vectorTo(triangle.getVertex3());
- Vector edge3 = triangle.getVertex3().vectorTo(triangle.getVertex1());
-
- boolean intersectingWithEdge1 = circleIntersectingWithTriangleEdge(circle, triangle.getVertex1(), edge1);
- boolean intersectingWithEdge2 = circleIntersectingWithTriangleEdge(circle, triangle.getVertex2(), edge2);
- boolean intersectingWithEdge3 = circleIntersectingWithTriangleEdge(circle, triangle.getVertex3(), edge3);
- return intersectingWithEdge1 || intersectingWithEdge2 || intersectingWithEdge3;
- }
-
- private boolean circleIntersectingWithTriangleEdge(Circle circle, Vector vertex, Vector edge) {
- Vector vertexToCenter = vertex.vectorTo(circle.getCenter());
- Vector kVector = new Vector(vertexToCenter).mul(edge);
- float k = kVector.x + kVector.y;
-
- if (k > 0) {
- float length = edge.length();
- k = k / length;
-
- if (k < length)
- if (Math.sqrt(vertexToCenter.x * vertexToCenter.x + vertexToCenter.y * vertexToCenter.y - k * k) <= circle.getRadius())
- return true;
- }
- return false;
- }
-
- private boolean circleCenterInsideTriangle(Circle circle, Triangle triangle) {
- Vector vertex1To2 = triangle.getVertex1().vectorTo(triangle.getVertex2());
- Vector vertex2To3 = triangle.getVertex2().vectorTo(triangle.getVertex3());
- Vector vertex3To1 = triangle.getVertex3().vectorTo(triangle.getVertex1());
- Vector vertex1ToCenter = triangle.getVertex1().vectorTo(circle.getCenter());
- Vector vertex2ToCenter = triangle.getVertex2().vectorTo(circle.getCenter());
- Vector vertex3ToCenter = triangle.getVertex3().vectorTo(circle.getCenter());
-
- boolean centerInsideV1V2 = vertex1To2.y * vertex1ToCenter.x - vertex1To2.x * vertex1ToCenter.y < 0;
- boolean centerInsideV2V3 = vertex2To3.y * vertex2ToCenter.x - vertex2To3.x * vertex2ToCenter.y < 0;
- boolean centerInsideV3V1 = vertex3To1.y * vertex3ToCenter.x - vertex3To1.x * vertex3ToCenter.y < 0;
-
- return centerInsideV1V2 && centerInsideV2V3 && centerInsideV3V1;
- }
-
- private boolean circleIntersectingWithTriangleVertices(Circle circle, Triangle triangle) {
- boolean intersectingWithVertex1 = circleIntersectingWithTriangleVertex(circle, triangle.getVertex1());
- boolean intersectingWithVertex2 = circleIntersectingWithTriangleVertex(circle, triangle.getVertex2());
- boolean intersectingWithVertex3 = circleIntersectingWithTriangleVertex(circle, triangle.getVertex3());
- return intersectingWithVertex1 || intersectingWithVertex2 || intersectingWithVertex3;
- }
-
- private boolean circleIntersectingWithTriangleVertex(Circle circle, Vector vertex) {
- Vector centerToVertex = circle.getCenter().vectorTo(vertex);
- return centerToVertex.length() <= circle.getRadius();
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/CollisionDetector.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/CollisionDetector.java
deleted file mode 100644
index 1cb8b57..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/CollisionDetector.java
+++ /dev/null
@@ -1,126 +0,0 @@
-package com.example.julian.endlessroll.entities.collision;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.entities.Player;
-import com.example.julian.endlessroll.entities.collision.collisionData.EntityCollisionData;
-import com.example.julian.endlessroll.entities.collision.geometry.Circle;
-import com.example.julian.endlessroll.entities.collision.geometry.Geometry;
-import com.example.julian.endlessroll.entities.collision.geometry.Quad;
-import com.example.julian.endlessroll.entities.collision.geometry.Triangle;
-
-/**
- * Created by Julian on 01.12.2015.
- */
-public class CollisionDetector {
-
- private CircleTriangleCollisionDetector triangleDetector;
-
- public CollisionDetector() {
- triangleDetector = new CircleTriangleCollisionDetector();
- }
-
- public boolean quadQuadCollision(Quad q1, Quad q2) {
- float xDistance = Math.abs(q2.getPosition().x - q1.getPosition().x);
- float yDistance = Math.abs(q2.getPosition().y - q1.getPosition().y);
- if (xDistance >= q1.getWidth() / 2 + q2.getWidth() / 2)
- return false;
- if (yDistance >= q1.getHeight() / 2 + q2.getHeight() / 2)
- return false;
- return true;
- }
-
- public EntityCollisionData playerEntityCollision(Player player, Entity entity) {
- Circle circle = new Circle(player);
- Quad quad = entity;
- if (circleQuadCollision(circle, quad)) {
- Edge edge = circleQuadCollisionEdge(circle, player.getMovement(), quad, entity.getMovement());
- return new EntityCollisionData(entity, edge);
- }
- return new EntityCollisionData(null, null);
- }
-
- public boolean circleToolCollision(Circle circle, Geometry bounds) {
- if (bounds instanceof Circle)
- return circleCircleCollision(circle, (Circle) bounds);
- else if (bounds instanceof Quad)
- return circleQuadCollision(circle, (Quad) bounds);
- else if (bounds instanceof Triangle)
- return triangleDetector.circleTriangleCollision(circle, (Triangle) bounds);
- return false;
- }
-
- private boolean circleCircleCollision(Circle c1, Circle c2) {
- float distance = Math.abs(c1.getCenter().vectorTo(c2.getCenter()).length());
- float radiusSum = c1.getRadius() + c2.getRadius();
- return distance < radiusSum;
- }
-
- private boolean circleQuadCollision(Circle circle, Quad quad) {
- Vector distance = circle.getCenter().vectorTo(quad.getPosition());
- distance.x = Math.abs(distance.x);
- distance.y = Math.abs(distance.y);
-
- if (distance.x > circle.getRadius() + quad.getWidth() / 2) return false;
- if (distance.y > circle.getRadius() + quad.getHeight() / 2) return false;
-
- if (distance.x <= quad.getWidth() / 2) return true;
- if (distance.y <= quad.getHeight() / 2) return true;
-
- float cornerDistance_sq = (distance.x - quad.getWidth() / 2) * (distance.x - quad.getWidth() / 2) + (distance.y - quad.getHeight() / 2) * (distance.y - quad.getHeight() / 2);
- return cornerDistance_sq <= circle.getRadius() * circle.getRadius();
- }
-
- private Edge circleQuadCollisionEdge(Circle circle, Vector circleMovement, Quad quad, Vector quadMovement) {
- Vector relativeMovement = circleMovement.translate(quadMovement);
-
- //LEFT || TOP || BOTTOM
- if (relativeMovement.x > 0) {
- //LEFT || BOTTOM
- if (relativeMovement.y > 0) {
- float toLeftDistance = quad.getLeftEdge() - circle.getCenter().x;
- float actualY = toLeftDistance * (relativeMovement.y / relativeMovement.x) + circle.getCenter().y;
- if (actualY < quad.getBottomEdge())
- return Edge.BOTTOM;
- else
- return Edge.LEFT;
- }
- //LEFT || TOP
- else if (relativeMovement.y < 0) {
- float toLeftDistance = quad.getLeftEdge() - circle.getCenter().x;
- float actualY = toLeftDistance * (relativeMovement.y / relativeMovement.x) + circle.getCenter().y;
- if (actualY < quad.getTopEdge())
- return Edge.LEFT;
- else
- return Edge.TOP;
- } else return Edge.LEFT;
- }
- //RIGHT || TOP || BOTTOM
- else if (relativeMovement.x < 0) {
- //RIGHT || BOTTOM
- if (relativeMovement.y > 0) {
- float toRightDistance = quad.getRightEdge() - circle.getCenter().x;
- float actualY = toRightDistance * (relativeMovement.y / relativeMovement.x) + circle.getCenter().y;
- if (actualY < quad.getBottomEdge())
- return Edge.BOTTOM;
- else
- return Edge.RIGHT;
- }
- //RIGHT || TOP
- else if (relativeMovement.y < 0) {
- float toRightDistance = quad.getRightEdge() - circle.getCenter().x;
- float actualY = toRightDistance * (relativeMovement.y / relativeMovement.x) + circle.getCenter().y;
- if (actualY < quad.getTopEdge())
- return Edge.RIGHT;
- else
- return Edge.TOP;
- } else return Edge.RIGHT;
- } else {
- if (relativeMovement.y > 0)
- return Edge.BOTTOM;
- else if (relativeMovement.y < 0)
- return Edge.TOP;
- }
- return Edge.NONE;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/CollisionManager.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/CollisionManager.java
deleted file mode 100644
index b1ce971..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/CollisionManager.java
+++ /dev/null
@@ -1,92 +0,0 @@
-package com.example.julian.endlessroll.entities.collision;
-
-import com.example.julian.endlessroll.entities.Energy;
-import com.example.julian.endlessroll.entities.Obstacle;
-import com.example.julian.endlessroll.entities.Player;
-import com.example.julian.endlessroll.entities.Star;
-import com.example.julian.endlessroll.entities.collision.collisionData.EntityCollisionData;
-import com.example.julian.endlessroll.entities.collision.collisionData.ObstacleCollisionData;
-import com.example.julian.endlessroll.entities.collision.collisionData.PlayerCollisionData;
-import com.example.julian.endlessroll.entities.collision.collisionData.ToolCollisionData;
-import com.example.julian.endlessroll.entities.tools.Tool;
-import com.example.julian.endlessroll.main.game.Game;
-import com.example.julian.endlessroll.main.game.GameScene;
-import com.example.julian.endlessroll.main.game.Physics;
-
-/**
- * Created by Julian on 02.01.2016.
- */
-public class CollisionManager {
-
- private Game game;
- private Player player;
-
- public CollisionManager(Game game) {
- this.game = game;
- }
-
- //Check Obstacle always before tool
- public void update(Physics physics, GameScene scene) {
- this.player = scene.getPlayer();
- PlayerCollisionData data = physics.getPlayerCollisionData(scene);
- if (data.isTerrainCollision())
- checkTerrainCollision(data.getTerrainCollisionData());
- if (data.isCeilingCollision())
- checkCeilingCollision(data.getCeilingCollisionData());
- if (data.isObstacleCollision())
- checkObstacleCollision(data.getObstacleCollisionData());
- if (data.isToolCollision())
- checkToolCollision(data.getToolCollisionData());
- if (data.isStarCollision())
- game.onStarCollision((Star) data.getStarCollisionData().getEntity());
- if (data.isEnergyCollision())
- game.onEnergyCollision((Energy) data.getEnergyCollisionData().getEntity());
- }
-
- private void checkTerrainCollision(EntityCollisionData data) {
- checkEntityCollision(data, -0.01f);
- if (data.getEdge() != Edge.TOP)
- game.onGameOver(true);
- }
-
- private void checkCeilingCollision(EntityCollisionData data) {
- checkEntityCollision(data, -0.01f);
- if (data.getEdge() == Edge.RIGHT || data.getEdge() == Edge.LEFT)
- game.onGameOver(true);
- }
-
- private void checkToolCollision(ToolCollisionData data) {
- for (Tool tool : data.getTools())
- tool.onPlayerCollision(player);
- }
-
- private void checkObstacleCollision(ObstacleCollisionData data) {
- for (EntityCollisionData entityData : data.getCollisions()) {
- checkEntityCollision(entityData, 0);
- if (entityData.getEdge() != Edge.TOP || ((Obstacle) entityData.getEntity()).isDeadly())
- game.onGameOver(true);
- }
- }
-
- private void checkEntityCollision(EntityCollisionData data, float xBounceFactor) {
- switch (data.getEdge()) {
- case TOP:
- player.getMovement().y = 0;
- player.setToTerrain(data.getEntity().getTopEdge());
- break;
- case BOTTOM:
- player.getMovement().y = 0;
- player.setTopEdge(data.getEntity().getBottomEdge());
- break;
- case LEFT:
- player.getMovement().x *= xBounceFactor;
- player.getPosition().x = data.getEntity().getLeftEdge() - player.RADIUS;
- break;
- case RIGHT:
- player.getMovement().x *= xBounceFactor;
- player.getPosition().x = data.getEntity().getRightEdge() + player.RADIUS;
- break;
- }
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/Edge.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/Edge.java
deleted file mode 100644
index 97e6114..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/Edge.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.example.julian.endlessroll.entities.collision;
-
-public enum Edge {
- LEFT, RIGHT, TOP, BOTTOM, NONE;
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/EntityCollisionData.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/EntityCollisionData.java
deleted file mode 100644
index 689f10a..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/EntityCollisionData.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package com.example.julian.endlessroll.entities.collision.collisionData;
-
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.entities.collision.Edge;
-
-/**
- * Created by Julian on 01.01.2016.
- */
-public class EntityCollisionData {
-
- private Entity entity;
- private Edge edge;
-
- public EntityCollisionData(Entity entity, Edge edge) {
- this.entity = entity;
- this.edge = edge;
- }
-
- public boolean isCollision() {
- return entity != null && edge != null;
- }
-
- public Entity getEntity() {
- return entity;
- }
-
- public Edge getEdge() {
- return edge;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/ObstacleCollisionData.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/ObstacleCollisionData.java
deleted file mode 100644
index 75c260f..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/ObstacleCollisionData.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.example.julian.endlessroll.entities.collision.collisionData;
-
-import java.util.List;
-
-/**
- * Created by Julian on 04.01.2016.
- */
-public class ObstacleCollisionData {
-
- private List collisions;
-
- public ObstacleCollisionData(List collisions) {
- this.collisions = collisions;
- }
-
- public boolean isCollision() {
- return collisions.size() > 0;
- }
-
- public List getCollisions() {
- return collisions;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/PlayerCollisionData.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/PlayerCollisionData.java
deleted file mode 100644
index cbf7a13..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/PlayerCollisionData.java
+++ /dev/null
@@ -1,71 +0,0 @@
-package com.example.julian.endlessroll.entities.collision.collisionData;
-
-/**
- * Created by Julian on 05.12.2015.
- */
-public class PlayerCollisionData {
-
- private EntityCollisionData terrainCollision;
- private EntityCollisionData ceilingCollision;
- private ObstacleCollisionData obstacleCollision;
- private ToolCollisionData toolCollision;
- private EntityCollisionData starCollision;
- private EntityCollisionData energyCollision;
-
- public PlayerCollisionData(EntityCollisionData terrainCollision, EntityCollisionData ceilingCollision, ObstacleCollisionData obstacleCollision, ToolCollisionData toolCollision, EntityCollisionData starCollision, EntityCollisionData energyCollision) {
- this.terrainCollision = terrainCollision;
- this.ceilingCollision = ceilingCollision;
- this.obstacleCollision = obstacleCollision;
- this.toolCollision = toolCollision;
- this.starCollision = starCollision;
- this.energyCollision = energyCollision;
- }
-
- public boolean isTerrainCollision() {
- return terrainCollision.isCollision();
- }
-
- public EntityCollisionData getTerrainCollisionData() {
- return terrainCollision;
- }
-
- public boolean isCeilingCollision() {
- return ceilingCollision.isCollision();
- }
-
- public EntityCollisionData getCeilingCollisionData() {
- return ceilingCollision;
- }
-
- public boolean isObstacleCollision() {
- return obstacleCollision.isCollision();
- }
-
- public ObstacleCollisionData getObstacleCollisionData() {
- return obstacleCollision;
- }
-
- public boolean isToolCollision() {
- return toolCollision.isCollision();
- }
-
- public ToolCollisionData getToolCollisionData() {
- return toolCollision;
- }
-
- public boolean isStarCollision() {
- return starCollision.isCollision();
- }
-
- public EntityCollisionData getStarCollisionData() {
- return starCollision;
- }
-
- public boolean isEnergyCollision() {
- return energyCollision.isCollision();
- }
-
- public EntityCollisionData getEnergyCollisionData() {
- return energyCollision;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/ToolCollisionData.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/ToolCollisionData.java
deleted file mode 100644
index 343625d..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/collisionData/ToolCollisionData.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.example.julian.endlessroll.entities.collision.collisionData;
-
-import com.example.julian.endlessroll.entities.tools.Tool;
-
-import java.util.List;
-
-/**
- * Created by Julian on 21.02.2016.
- */
-public class ToolCollisionData {
-
- private List tools;
-
- public ToolCollisionData(List tools) {
- this.tools = tools;
- }
-
- public boolean isCollision() {
- return tools.size() > 0;
- }
-
- public List getTools() {
- return tools;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Circle.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Circle.java
deleted file mode 100644
index 2e4729e..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Circle.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.example.julian.endlessroll.entities.collision.geometry;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.Player;
-
-/**
- * Created by Julian on 01.12.2015.
- */
-public class Circle implements Geometry {
-
- private Vector center;
- private float radius;
-
- public Circle(Player ball) {
- this(new Vector(ball.getPosition()), ball.getWidth() / 2);
- }
-
- public Circle(Vector center, float radius) {
- this.center = center;
- this.radius = radius;
- }
-
- public Vector getCenter() {
- return center;
- }
-
- public void setCenter(Vector center) {
- this.center = center;
- }
-
- public float getRadius() {
- return radius;
- }
-
- public void setRadius(float radius) {
- this.radius = radius;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Geometry.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Geometry.java
deleted file mode 100644
index f20cd41..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Geometry.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.example.julian.endlessroll.entities.collision.geometry;
-
-/**
- * Created by Julian on 28.02.2016.
- */
-public interface Geometry {
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Quad.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Quad.java
deleted file mode 100644
index 17f11c6..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Quad.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package com.example.julian.endlessroll.entities.collision.geometry;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.collision.Edge;
-
-/**
- * Created by Julian on 01.12.2015.
- */
-public class Quad implements Geometry {
-
- protected Vector position;
- protected float width, height;
-
- public Quad(Vector position, float width, float height) {
- this.position = position;
- this.width = width;
- this.height = height;
- }
-
- public float getRightEdge() {
- return position.x + width / 2;
- }
-
- public float getLeftEdge() {
- return position.x - width / 2;
- }
-
- public float getTopEdge() {
- return position.y + height / 2;
- }
-
- public float getBottomEdge() {
- return position.y - height / 2;
- }
-
- public float getEdge(Edge edge) {
- switch (edge) {
- case LEFT:
- return getLeftEdge();
- case RIGHT:
- return getRightEdge();
- case TOP:
- return getTopEdge();
- case BOTTOM:
- return getBottomEdge();
- }
- return -1;
- }
-
- public Vector getPosition() {
- return position;
- }
-
- public void setPosition(Vector position) {
- this.position = position;
- }
-
- public float getWidth() {
- return width;
- }
-
- public void setWidth(float width) {
- this.width = width;
- }
-
- public float getHeight() {
- return height;
- }
-
- public void setHeight(float height) {
- this.height = height;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Triangle.java b/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Triangle.java
deleted file mode 100644
index c1d4a2d..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/collision/geometry/Triangle.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package com.example.julian.endlessroll.entities.collision.geometry;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.tools.Ramp;
-
-/**
- * Created by Julian on 01.12.2015.
- */
-public class Triangle implements Geometry {
-
- private Vector vertex1, vertex2, vertex3;
-
- public Triangle(Ramp ramp) {
- Vector vertex1 = new Vector(ramp.getRightEdge(), ramp.getBottomEdge());
- Vector vertex2 = new Vector(ramp.getRightEdge(), ramp.getTopEdge());
- Vector vertex3 = new Vector(ramp.getLeftEdge(), ramp.getBottomEdge());
- setVertex1(vertex1);
- setVertex2(vertex2);
- setVertex3(vertex3);
- }
-
- public Triangle(Vector vertex1, Vector vertex2, Vector vertex3) {
- this.vertex1 = vertex1;
- this.vertex2 = vertex2;
- this.vertex3 = vertex3;
- }
-
- public Vector getVertex1() {
- return vertex1;
- }
-
- public void setVertex1(Vector vertex1) {
- this.vertex1 = vertex1;
- }
-
- public Vector getVertex2() {
- return vertex2;
- }
-
- public void setVertex2(Vector vertex2) {
- this.vertex2 = vertex2;
- }
-
- public Vector getVertex3() {
- return vertex3;
- }
-
- public void setVertex3(Vector vertex3) {
- this.vertex3 = vertex3;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/Particle.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/Particle.java
deleted file mode 100644
index d45733d..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/Particle.java
+++ /dev/null
@@ -1,98 +0,0 @@
-package com.example.julian.endlessroll.entities.particles;
-
-import com.example.julian.endlessroll.data.Color;
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Range;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Timeline;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.TintTimeline;
-import com.example.julian.endlessroll.main.game.Timer;
-
-import java.util.Random;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class Particle extends Entity {
-
- private Color color;
- private Random random;
- private boolean active;
- private float maxLife;
- private float passedLifetime;
-
- private Timeline scaleTimeline;
- private Range scale;
- private Timeline velocityTimeline;
- private Range velocity;
- private Timeline angleTimeline;
- private Range angle;
- private Timeline rotationTimeline;
- private Range rotation;
- private Timeline transparencyTimeline;
- private TintTimeline tintTimeline;
-
- public Particle(Random random) {
- super(null, new Vector(), 1, 1);
- this.random = random;
- }
-
- public void activate(Vector position, float liveValue, ParticleData particleData) {
- active = true;
- passedLifetime = 0;
- super.setPosition(position);
- maxLife = particleData.getLife().createValue(random, liveValue);
- scaleTimeline = particleData.getScaleTR().getTimeline();
- scale = particleData.getScaleTR().getRange().createNormalizedInstance(random);
- velocityTimeline = particleData.getVelocityTR().getTimeline();
- velocity = particleData.getVelocityTR().getRange().createNormalizedInstance(random);
- angleTimeline = particleData.getAngleTR().getTimeline();
- angle = particleData.getAngleTR().getRange().createNormalizedInstance(random);
- rotationTimeline = particleData.getRotationTR().getTimeline();
- rotation = particleData.getRotationTR().getRange().createNormalizedInstance(random);
- transparencyTimeline = particleData.getTransparencyT();
- tintTimeline = particleData.getTint();
- }
-
- public void update(Timer timer, float windStrength, float gravityStrength) {
- if (active) {
- passedLifetime += timer.getFrameTimeSeconds();
- if (passedLifetime >= maxLife)
- active = false;
- float lifetimePercent = passedLifetime / maxLife;
- setScale(scale.createValue(random, scaleTimeline.getValueAtTime(lifetimePercent)));
- setMovement(velocity.createValue(random, velocityTimeline.getValueAtTime(lifetimePercent)),
- angle.createValue(random, angleTimeline.getValueAtTime(lifetimePercent)), windStrength, gravityStrength);
- super.setRotation(-rotation.createValue(random, rotationTimeline.getValueAtTime(lifetimePercent)));
- super.setAlpha(transparencyTimeline.getValueAtTime(lifetimePercent));
- setColor(tintTimeline.getValueAtTime(lifetimePercent));
- }
- }
-
- private void setScale(float scale) {
- super.setWidth(scale * ParticleSystem.TRANSFER_VALUE);
- super.setHeight(scale * ParticleSystem.TRANSFER_VALUE);
- }
-
- private void setMovement(float velocity, float angle, float windStrength, float gravityStrength) {
- float radians = (float) Math.toRadians(angle);
- Vector normalMovement = new Vector();
- normalMovement.setX((float) Math.cos(radians));
- normalMovement.setY((float) Math.sin(radians));
- normalMovement.mul(velocity * ParticleSystem.TRANSFER_VALUE);
- normalMovement.translate(windStrength * ParticleSystem.TRANSFER_VALUE, gravityStrength * ParticleSystem.TRANSFER_VALUE);
- super.setMovement(normalMovement);
- }
-
- public boolean isActive() {
- return active;
- }
-
- public void setColor(Color color) {
- this.color = color;
- }
-
- public Color getColor() {
- return color;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleData.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleData.java
deleted file mode 100644
index d968536..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleData.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package com.example.julian.endlessroll.entities.particles;
-
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Range;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Timeline;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.TimelineRange;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.TintTimeline;
-
-/**
- * Created by Julian on 03.08.2016.
- */
-public class ParticleData {
-
- private Range life;
- private TimelineRange scaleTR;
- private TimelineRange velocityTR;
- private TimelineRange angleTR;
- private TimelineRange rotationTR;
- private Timeline transparencyT;
- private TintTimeline tint;
-
- public ParticleData(Range life, TimelineRange scaleTR, TimelineRange velocityTR, TimelineRange angleTR, TimelineRange rotationTR, Timeline transparencyT, TintTimeline tint) {
- this.life = life;
- this.scaleTR = scaleTR;
- this.velocityTR = velocityTR;
- this.angleTR = angleTR;
- this.rotationTR = rotationTR;
- this.transparencyT = transparencyT;
- this.tint = tint;
- }
-
- public Range getLife() {
- return life;
- }
-
- public TimelineRange getScaleTR() {
- return scaleTR;
- }
-
- public TimelineRange getVelocityTR() {
- return velocityTR;
- }
-
- public TimelineRange getAngleTR() {
- return angleTR;
- }
-
- public TimelineRange getRotationTR() {
- return rotationTR;
- }
-
- public Timeline getTransparencyT() {
- return transparencyT;
- }
-
- public TintTimeline getTint() {
- return tint;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleEffect.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleEffect.java
deleted file mode 100644
index e71f795..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleEffect.java
+++ /dev/null
@@ -1,229 +0,0 @@
-package com.example.julian.endlessroll.entities.particles;
-
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Options;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Range;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.SpawnShape;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Timeline;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.TimelineRange;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.TintTimeline;
-import com.example.julian.endlessroll.entities.textures.Texture;
-import com.example.julian.endlessroll.main.game.Timer;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-import java.util.Random;
-
-/**
- * Created by Julian on 05.08.2016.
- */
-public class ParticleEffect {
-
- private TimelineRange life;
- //Particle Timeline
- private TimelineRange scale;
- private TimelineRange velocity;
- private TimelineRange angle;
- private TimelineRange rotation;
- private Timeline transparency;
- private TintTimeline tint;
-
- //Source Timeline
- private Range delay;
- private Range duration;
- private TimelineRange emission;
- private Range xOffset;
- private Range yOffset;
- private SpawnShape.Shape spawnShape;
- private TimelineRange spawnWidth;
- private TimelineRange spawnHeight;
- private TimelineRange wind;
- private TimelineRange gravity;
-
- private Options options;
- private Texture texture;
- private String textureName;
-
- private Random random;
- private List sources = Collections.synchronizedList(new ArrayList());
-
- public ParticleEffect() {
- this.random = new Random();
- }
-
- public void update(Timer timer) {
- synchronized (sources) {
- for (ParticleSource source : sources)
- source.update(timer);
- }
- }
-
- public ParticleData createParticleData() {
- return new ParticleData(life.getRange(), scale, velocity, angle, rotation, transparency, tint);
- }
-
- public Random getRandom() {
- return random;
- }
-
- public void addSource(ParticleSource source) {
- sources.add(source);
- }
-
- public void setDelay(Range delay) {
- this.delay = delay;
- }
-
- public void setDuration(Range duration) {
- this.duration = duration;
- }
-
- public void setEmission(TimelineRange emission) {
- this.emission = emission;
- }
-
- public void setLife(TimelineRange life) {
- this.life = life;
- }
-
- public void setxOffset(Range xOffset) {
- this.xOffset = xOffset;
- }
-
- public void setyOffset(Range yOffset) {
- this.yOffset = yOffset;
- }
-
- public void setSpawnShape(SpawnShape.Shape spawnShape) {
- this.spawnShape = spawnShape;
- }
-
- public void setSpawnWidth(TimelineRange spawnWidth) {
- this.spawnWidth = spawnWidth;
- }
-
- public void setSpawnHeight(TimelineRange spawnHeight) {
- this.spawnHeight = spawnHeight;
- }
-
- public void setScale(TimelineRange scale) {
- this.scale = scale;
- }
-
- public void setVelocity(TimelineRange velocity) {
- this.velocity = velocity;
- }
-
- public void setAngle(TimelineRange angle) {
- this.angle = angle;
- }
-
- public void setRotation(TimelineRange rotation) {
- this.rotation = rotation;
- }
-
- public void setWind(TimelineRange wind) {
- this.wind = wind;
- }
-
- public void setGravity(TimelineRange gravity) {
- this.gravity = gravity;
- }
-
- public void setTint(TintTimeline tint) {
- this.tint = tint;
- }
-
- public void setTransparency(Timeline transparency) {
- this.transparency = transparency;
- }
-
- public Timeline getTransparency() {
- return transparency;
- }
-
- public TintTimeline getTint() {
- return tint;
- }
-
- public void setOptions(Options options) {
- this.options = options;
- }
-
- public void setTexture(Texture texture) {
- this.texture = texture;
- }
-
- public void setTextureName(String textureName) {
- this.textureName = textureName;
- }
-
- public String getTextureName() {
- return textureName;
- }
-
- public Texture getTexture() {
- return texture;
- }
-
- public Range getDelay() {
- return delay;
- }
-
- public Range getDuration() {
- return duration;
- }
-
- public TimelineRange getEmission() {
- return emission;
- }
-
- public Options getOptions() {
- return options;
- }
-
- public TimelineRange getWind() {
- return wind;
- }
-
- public TimelineRange getGravity() {
- return gravity;
- }
-
- public Range getxOffset() {
- return xOffset;
- }
-
- public Range getyOffset() {
- return yOffset;
- }
-
- public synchronized List getSources() {
- return sources;
- }
-
- public TimelineRange getLife() {
- return life;
- }
-
- public SpawnShape.Shape getSpawnShape() {
- return spawnShape;
- }
-
- public TimelineRange getSpawnHeight() {
- return spawnHeight;
- }
-
- public void deleteSources() {
- synchronized (sources) {
- for (ParticleSource source : sources)
- source.kill();
- sources.clear();
- }
- }
-
- public TimelineRange getSpawnWidth() {
- return spawnWidth;
- }
-}
-
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleReader.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleReader.java
deleted file mode 100644
index 032ba3b..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleReader.java
+++ /dev/null
@@ -1,163 +0,0 @@
-package com.example.julian.endlessroll.entities.particles;
-
-import android.content.Context;
-
-import com.example.julian.endlessroll.entities.particles.attributes.Attribute;
-import com.example.julian.endlessroll.entities.particles.attributes.AttributeValueReader;
-import com.example.julian.endlessroll.entities.particles.attributes.ParticleAttributeType;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.ImagePath;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Options;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.ParticleAttributeValueType;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Range;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.SpawnShape;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Timeline;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.TimelineRange;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.TintTimeline;
-
-import java.io.BufferedReader;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class ParticleReader {
-
- private Context context;
- private AttributeValueReader attributeValueReader;
-
- private List attributes;
- private Attribute currentAttribute;
-
- public ParticleReader(Context context) {
- this.context = context;
- attributeValueReader = new AttributeValueReader();
- }
-
- /**
- * reads ParticleEffect from *.pe files
- * !Ignores COUNT, LIFE_OFFSET!
- */
- public ParticleEffect read(String filename) throws Exception {
- try {
- attributes = new ArrayList<>();
- currentAttribute = null;
- InputStream is = context.getAssets().open(filename);
- BufferedReader reader = new BufferedReader(new InputStreamReader(is));
- String line;
- while ((line = reader.readLine()) != null) {
- line = line.trim();
- handleLine(line);
- }
- reader.close();
- return createParticleEffect();
- } catch (Exception e) {
- throw new Exception("Could not read particleFile: ", e);
- }
- }
-
- private void handleLine(String line) throws Exception {
- if (line.startsWith("- ")) {
- Attribute attrib = ParticleAttributeType.getByInFileTitle(line).createInstance();
- attributes.add(attrib);
- currentAttribute = attrib;
- } else if (currentAttribute != null)
- attributeValueReader.addValueForAttribute(currentAttribute, line);
- }
-
- private ParticleEffect createParticleEffect() throws Exception {
- ParticleEffect effect = new ParticleEffect();
- Timeline timeline = null;
- Range range = null;
- for (Attribute attribute : attributes) {
- switch (attribute.getType()) {
- case DELAY:
- effect.setDelay((Range) attribute.get(ParticleAttributeValueType.RANGE));
- break;
- case DURATION:
- effect.setDuration((Range) attribute.get(ParticleAttributeValueType.RANGE));
- break;
- case COUNT:
- break;
- case EMISSION:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setEmission(new TimelineRange(timeline, range));
- break;
- case LIFE:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setLife(new TimelineRange(timeline, range));
- break;
- case LIFE_OFFSET:
- break;
- case X_OFFSET:
- effect.setxOffset((Range) attribute.get(ParticleAttributeValueType.RANGE));
- break;
- case Y_OFFSET:
- effect.setyOffset((Range) attribute.get(ParticleAttributeValueType.RANGE));
- break;
- case SPAWN_SHAPE:
- effect.setSpawnShape(((SpawnShape) attribute.get(ParticleAttributeValueType.SPAWN_SHAPE)).getShape());
- break;
- case SPAWN_WIDTH:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setSpawnWidth(new TimelineRange(timeline, range));
- break;
- case SPAWN_HEIGHT:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setSpawnHeight(new TimelineRange(timeline, range));
- break;
- case SCALE:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setScale(new TimelineRange(timeline, range));
- break;
- case VELOCITY:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setVelocity(new TimelineRange(timeline, range));
- break;
- case ANGLE:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setAngle(new TimelineRange(timeline, range));
- break;
- case ROTATION:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setRotation(new TimelineRange(timeline, range));
- break;
- case WIND:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setWind(new TimelineRange(timeline, range));
- break;
- case GRAVITY:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setGravity(new TimelineRange(timeline, range));
- break;
- case TINT:
- effect.setTint((TintTimeline) attribute.get(ParticleAttributeValueType.TINT_TIMELINE));
- break;
- case TRANSPARENCY:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- effect.setTransparency(timeline);
- break;
- case OPTIONS:
- effect.setOptions((Options) attribute.get(ParticleAttributeValueType.OPTIONS));
- break;
- case IMAGE_PATH:
- String path = ((ImagePath) attribute.get(ParticleAttributeValueType.IMAGE_PATH)).getImagePath();
- effect.setTextureName(path);
- break;
- }
- }
- return effect;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleSource.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleSource.java
deleted file mode 100644
index 25cd568..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleSource.java
+++ /dev/null
@@ -1,163 +0,0 @@
-package com.example.julian.endlessroll.entities.particles;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.SpawnShape;
-import com.example.julian.endlessroll.main.game.Timer;
-import com.example.julian.endlessroll.rendering.Lock;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Random;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class ParticleSource {
-
- private Vector position;
- private ParticleEffect effect;
- private Random random;
-
- private boolean alife;
- private float currentDelay;
- private float lifePercent;
- private float maxTime = -1;
- private float passedTime;
- private float emittPause;
- private float passedEmittPause;
- private float passedSecond;
- private float windStrength;
- private float gravityStrength;
-
- private Vector spawnSize = null;
- private ParticleData particleData;
- private List activeParticles = new ArrayList<>();
- private List inactiveParticles = new ArrayList<>();
- private Lock activeParticleLock = new Lock();
-
- public ParticleSource(Vector position, ParticleEffect effect) {
- this.position = position;
- this.effect = effect;
- random = effect.getRandom();
- effect.addSource(this);
- }
-
- public void start() {
- alife = true;
- currentDelay = effect.getDelay().createValue(random, 0);
- maxTime = effect.getDuration().createValue(random, 0) + currentDelay;
- passedTime = 0;
- emittPause = calcEmittPause();
- passedEmittPause = 0;
- passedSecond = 0;
- lifePercent = 0;
- }
-
- public void update(Timer timer) {
- if (alife) {
- passedTime += timer.getFrameTimeSeconds();
- lifePercent = passedTime / maxTime;
-
- if (passedTime >= currentDelay) {
- passedEmittPause += timer.getFrameTimeSeconds();
- calcWindAndGravity();
- while (passedEmittPause >= emittPause) {
- passedEmittPause -= emittPause;
- emitt();
- }
-
- passedSecond += timer.getFrameTimeSeconds();
- if (passedSecond >= 1000) {
- passedSecond -= 1000;
- calcEmittPause();
- }
- }
- if (passedTime >= maxTime)
- die();
- }
- updateParticles(timer);
- }
-
- private void updateParticles(Timer timer) {
- activeParticleLock.lock();
- Iterator iter = activeParticles.iterator();
- while (iter.hasNext()) {
- Particle particle = iter.next();
- particle.update(timer, windStrength, gravityStrength);
- if (!particle.isActive()) {
- inactiveParticles.add(particle);
- iter.remove();
- } else {
- particle.move(new Vector(particle.getMovement()).mul(timer.getFrameTimeSeconds() / 1000));
- }
- }
- activeParticleLock.unlock();
- }
-
- private void die() {
- alife = false;
- if (effect.getOptions().isContinuous())
- start();
- }
-
- public void kill() {
- alife = false;
- }
-
- public void emitt() {
- if (particleData == null)
- particleData = effect.createParticleData();
- float xOff = effect.getxOffset().createValue(random, 0) * ParticleSystem.TRANSFER_VALUE;
- float yOff = effect.getyOffset().createValue(random, 0) * ParticleSystem.TRANSFER_VALUE;
- if (effect.getSpawnShape() == SpawnShape.Shape.SQUARE) {
- float width, height;
- if (spawnSize == null) {
- width = effect.getSpawnWidth().getRange().createValue(random, effect.getSpawnWidth().getTimeline().getValueAtTime(lifePercent));
- height = effect.getSpawnHeight().getRange().createValue(random, effect.getSpawnHeight().getTimeline().getValueAtTime(lifePercent));
- } else {
- width = spawnSize.getX() / ParticleSystem.TRANSFER_VALUE;
- height = spawnSize.getY() / ParticleSystem.TRANSFER_VALUE;
- }
- xOff += (random.nextFloat() * width - width * 0.5f) * ParticleSystem.TRANSFER_VALUE;
- yOff += (random.nextFloat() * height - height * 0.5f) * ParticleSystem.TRANSFER_VALUE;
- }
- setUpParticle(new Vector(position).translate(xOff, yOff));
- }
-
- private Particle setUpParticle(Vector position) {
- Particle particle;
- if (inactiveParticles.size() > 0)
- particle = inactiveParticles.remove(0);
- else
- particle = new Particle(random);
-
- particle.activate(position, effect.getLife().getTimeline().getValueAtTime(lifePercent), particleData);
- activeParticleLock.lock();
- activeParticles.add(particle);
- activeParticleLock.unlock();
- return particle;
- }
-
- private void calcWindAndGravity() {
- windStrength = effect.getWind().getRange().createValue(random, effect.getWind().getTimeline().getValueAtTime(lifePercent));
- gravityStrength = effect.getGravity().getRange().createValue(random, effect.getGravity().getTimeline().getValueAtTime(lifePercent));
- }
-
- private float calcEmittPause() {
- float emittedPerSecond = effect.getEmission().getRange().createValue(random, effect.getEmission().getTimeline().getValueAtTime(passedTime / maxTime));
- return 1000 / emittedPerSecond;
- }
-
- public Lock getActiveParticleLock() {
- return activeParticleLock;
- }
-
- public List getActiveParticles() {
- return activeParticles;
- }
-
- public void setSpawnSize(Vector spawnSize) {
- this.spawnSize = spawnSize;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleSystem.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleSystem.java
deleted file mode 100644
index 49973b4..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/ParticleSystem.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package com.example.julian.endlessroll.entities.particles;
-
-import android.content.Context;
-
-import com.example.julian.endlessroll.entities.textures.TextureLoader;
-import com.example.julian.endlessroll.main.game.Timer;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class ParticleSystem {
-
- public static final float TRANSFER_VALUE = 0.002f;
- public final ParticleEffect explosion;
- public final ParticleEffect magnet;
- public final ParticleEffect starCollect;
- public final ParticleEffect energyCollect;
- private ParticleEffect[] effects;
-
- private TextureLoader textureLoader;
-
- public ParticleSystem(Context context) throws Exception {
- this.textureLoader = new TextureLoader(context);
- ParticleReader reader = new ParticleReader(context);
- explosion = reader.read("particleEffects/explosion.pe");
- magnet = reader.read("particleEffects/magnet.pe");
- starCollect = reader.read("particleEffects/collectStar.pe");
- energyCollect = reader.read("particleEffects/collectEnergy.pe");
-
- effects = new ParticleEffect[]{explosion, magnet, starCollect, energyCollect};
- }
-
- public void update(Timer timer) {
- synchronized (effects) {
- for (ParticleEffect effect : effects)
- effect.update(timer);
- }
- }
-
- public void loadTextures() throws Exception {
- synchronized (effects) {
- for (ParticleEffect effect : effects)
- effect.setTexture(textureLoader.loadTexture("particleEffects/" + effect.getTextureName()));
- }
- }
-
- public void deleteAllSources() {
- synchronized (effects) {
- for (ParticleEffect effect : effects) {
- effect.deleteSources();
- }
- }
- }
-
- public synchronized ParticleEffect[] getEffects() {
- return effects;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/Attribute.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/Attribute.java
deleted file mode 100644
index 7bae75f..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/Attribute.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes;
-
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.ParticleAttributeValue;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.ParticleAttributeValueType;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class Attribute {
-
- private ParticleAttributeType type;
- private List values = new ArrayList<>();
-
- public Attribute(ParticleAttributeType type, ParticleAttributeValueType... valueTypes) {
- this.type = type;
- for (ParticleAttributeValueType valueType : valueTypes)
- values.add(valueType.createInstance());
- }
-
- public ParticleAttributeValue get(ParticleAttributeValueType valueType) throws Exception {
- for (ParticleAttributeValue v : values)
- if (v.getType() == valueType)
- return v;
- throw new Exception("ParticleAttributeValue with type: " + valueType + " does not exist in Attribute " + type);
- }
-
- public ParticleAttributeType getType() {
- return type;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/AttributeValueReader.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/AttributeValueReader.java
deleted file mode 100644
index 7ef3124..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/AttributeValueReader.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes;
-
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.ImagePath;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Options;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.ParticleAttributeValueType;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Range;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.SpawnShape;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.Timeline;
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.TintTimeline;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class AttributeValueReader {
-
- public void addValueForAttribute(Attribute attribute, String line) throws Exception {
- //RANGE
- if (line.startsWith("lowMin:") || line.startsWith("min:"))
- ((Range) attribute.get(ParticleAttributeValueType.RANGE)).setLowMin(parseFloat(line));
- else if (line.startsWith("lowMax:") || line.startsWith("max:"))
- ((Range) attribute.get(ParticleAttributeValueType.RANGE)).setLowMax(parseFloat(line));
- else if (line.startsWith("highMin:"))
- ((Range) attribute.get(ParticleAttributeValueType.RANGE)).setHighMin(parseFloat(line));
- else if (line.startsWith("highMax:"))
- ((Range) attribute.get(ParticleAttributeValueType.RANGE)).setHighMax(parseFloat(line));
- //TIMELINE
- else if (!line.startsWith("scalingCount") && line.startsWith("scaling"))
- ((Timeline) attribute.get(ParticleAttributeValueType.TIMELINE)).setValueOfPoint(parseTimeLineIndex("scaling", line), parseFloat(line));
- else if (!line.startsWith("timelineCount") && line.startsWith("timeline") && attribute.getType() != ParticleAttributeType.TINT)
- ((Timeline) attribute.get(ParticleAttributeValueType.TIMELINE)).setTimeOfPoint(parseTimeLineIndex("timeline", line), parseFloat(line));
- //TINT_TIMELINE
- else if (!line.startsWith("colorsCount") && line.startsWith("colors")) {
- int index = parseTimeLineIndex("colors", line);
- ((TintTimeline) attribute.get(ParticleAttributeValueType.TINT_TIMELINE)).setValueOfPoint((int) (index / 3f), index % 3, parseFloat(line));
- } else if (!line.startsWith("timelineCount") && line.startsWith("timeline") && attribute.getType() == ParticleAttributeType.TINT)
- ((TintTimeline) attribute.get(ParticleAttributeValueType.TINT_TIMELINE)).setTimeOfPoint(parseTimeLineIndex("timeline", line), parseFloat(line));
- //SPAWN_SHAPE
- else if (line.startsWith("shape:"))
- ((SpawnShape) attribute.get(ParticleAttributeValueType.SPAWN_SHAPE)).setShape(SpawnShape.Shape.byName(parseString(line)));
- //OPTIONS
- else if (line.startsWith("attached:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setAttached(parseBoolean(line));
- else if (line.startsWith("continuous:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setContinuous(parseBoolean(line));
- else if (line.startsWith("aligned:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setAligned(parseBoolean(line));
- else if (line.startsWith("additive:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setAdditive(parseBoolean(line));
- else if (line.startsWith("behind:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setBehind(parseBoolean(line));
- else if (line.startsWith("premultipliedAlpha:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setPremultipliedAlpha(parseBoolean(line));
- //IMAGE PATH
- else if (attribute.getType() == ParticleAttributeType.IMAGE_PATH)
- ((ImagePath) attribute.get(ParticleAttributeValueType.IMAGE_PATH)).setImagePath(line);
- }
-
- private int parseTimeLineIndex(String start, String line) throws Exception {
- String asString = line.split(start)[1].split(":")[0];
- return Integer.parseInt(asString);
- }
-
- private float parseFloat(String line) throws Exception {
- String asString = line.split(" ")[1];
- return Float.parseFloat(asString);
- }
-
- private String parseString(String line) throws Exception {
- return line.split(" ")[1];
- }
-
- private boolean parseBoolean(String line) throws Exception {
- String asString = line.split(" ")[1];
- return Boolean.parseBoolean(asString);
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/ParticleAttributeType.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/ParticleAttributeType.java
deleted file mode 100644
index 3b49d90..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/ParticleAttributeType.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes;
-
-import com.example.julian.endlessroll.entities.particles.attributes.attributeValues.ParticleAttributeValueType;
-
-public enum ParticleAttributeType {
- NONE(""),
- DELAY("Delay", ParticleAttributeValueType.RANGE),
- DURATION("Duration", ParticleAttributeValueType.RANGE),
- COUNT("Count", ParticleAttributeValueType.RANGE),
- EMISSION("Emission", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- LIFE("Life", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- LIFE_OFFSET("Life Offset", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- X_OFFSET("X Offset", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- Y_OFFSET("Y Offset", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- SPAWN_SHAPE("Spawn Shape", ParticleAttributeValueType.SPAWN_SHAPE),
- SPAWN_WIDTH("Spawn Width", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- SPAWN_HEIGHT("Spawn Height", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- SCALE("Scale", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- VELOCITY("Velocity", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- ANGLE("Angle", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- ROTATION("Rotation", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- WIND("Wind", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- GRAVITY("Gravity", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- TINT("Tint", ParticleAttributeValueType.TINT_TIMELINE),
- TRANSPARENCY("Transparency", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- OPTIONS("Options", ParticleAttributeValueType.OPTIONS),
- IMAGE_PATH("Image Path", ParticleAttributeValueType.IMAGE_PATH);
-
- private String name;
- private ParticleAttributeValueType[] valueTypes;
-
- ParticleAttributeType(String name, ParticleAttributeValueType... valueTypes) {
- this.name = name;
- this.valueTypes = valueTypes;
- }
-
- private String getInFileTitle() {
- return "- " + name + " -";
- }
-
- public static ParticleAttributeType getByInFileTitle(String title) throws Exception {
- for (ParticleAttributeType setting : values()) {
- if (setting != NONE && setting.getInFileTitle().equals(title))
- return setting;
- }
- throw new Exception("Could not find ParticleAttributeType by title: " + title);
- }
-
- public Attribute createInstance() throws Exception {
- if (this == NONE)
- throw new Exception("Cannot create Instance from Attribute NONE");
- return new Attribute(this, valueTypes);
- }
-
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/ImagePath.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/ImagePath.java
deleted file mode 100644
index 84db0af..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/ImagePath.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes.attributeValues;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class ImagePath extends ParticleAttributeValue {
-
- private String imagePath;
-
- public ImagePath() {
- super(ParticleAttributeValueType.IMAGE_PATH);
- }
-
- public String getImagePath() {
- return imagePath;
- }
-
- public void setImagePath(String imagePath) {
- this.imagePath = imagePath;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/Options.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/Options.java
deleted file mode 100644
index 4f6f4d2..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/Options.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes.attributeValues;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class Options extends ParticleAttributeValue {
-
- private boolean attached;
- private boolean continuous;
- private boolean aligned;
- private boolean additive;
- private boolean behind;
- private boolean premultipliedAlpha;
-
- public Options() {
- super(ParticleAttributeValueType.OPTIONS);
- }
-
- public boolean isAttached() {
- return attached;
- }
-
- public void setAttached(boolean attached) {
- this.attached = attached;
- }
-
- public boolean isContinuous() {
- return continuous;
- }
-
- public void setContinuous(boolean continuous) {
- this.continuous = continuous;
- }
-
- public boolean isAligned() {
- return aligned;
- }
-
- public void setAligned(boolean aligned) {
- this.aligned = aligned;
- }
-
- public boolean isAdditive() {
- return additive;
- }
-
- public void setAdditive(boolean additive) {
- this.additive = additive;
- }
-
- public boolean isBehind() {
- return behind;
- }
-
- public void setBehind(boolean behind) {
- this.behind = behind;
- }
-
- public boolean isPremultipliedAlpha() {
- return premultipliedAlpha;
- }
-
- public void setPremultipliedAlpha(boolean premultipliedAlpha) {
- this.premultipliedAlpha = premultipliedAlpha;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/ParticleAttributeValue.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/ParticleAttributeValue.java
deleted file mode 100644
index d7e4fdd..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/ParticleAttributeValue.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes.attributeValues;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public abstract class ParticleAttributeValue {
-
- private ParticleAttributeValueType type;
-
- public ParticleAttributeValue(ParticleAttributeValueType type) {
- this.type = type;
- }
-
- public ParticleAttributeValueType getType() {
- return type;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/ParticleAttributeValueType.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/ParticleAttributeValueType.java
deleted file mode 100644
index 914eea6..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/ParticleAttributeValueType.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes.attributeValues;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public enum ParticleAttributeValueType {
-
- RANGE, TIMELINE, TINT_TIMELINE, SPAWN_SHAPE, OPTIONS, IMAGE_PATH;
-
- public ParticleAttributeValue createInstance() {
- switch (this) {
- case RANGE:
- return new Range();
- case TIMELINE:
- return new Timeline();
- case TINT_TIMELINE:
- return new TintTimeline();
- case SPAWN_SHAPE:
- return new SpawnShape();
- case OPTIONS:
- return new Options();
- case IMAGE_PATH:
- return new ImagePath();
- }
- return null;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/Range.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/Range.java
deleted file mode 100644
index b68b33f..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/Range.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes.attributeValues;
-
-import java.util.Random;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class Range extends ParticleAttributeValue {
-
- private float lowMin;
- private float lowMax;
- private float highMin;
- private float highMax;
-
- public Range() {
- super(ParticleAttributeValueType.RANGE);
- }
-
- public Range createNormalizedInstance(Random random) {
- Range range = new Range();
- float high = createHighValue(random);
- range.setHighMax(high);
- range.setHighMin(high);
- float low = createLowValue(random);
- range.setLowMax(low);
- range.setLowMin(low);
- return range;
- }
-
- public float createValue(Random random, float mix) {
- if (mix == 1)
- return createHighValue(random);
- else if (mix == 0)
- return createLowValue(random);
- else {
- float highValue = createHighValue(random);
- float lowValue = createLowValue(random);
- return mix * (highValue - lowValue) + lowValue;
- }
- }
-
- private float createHighValue(Random random) {
- float min = highMin;
- float max = highMax;
- if (min == max)
- return min;
- return random.nextFloat() * (max - min) + min;
- }
-
- private float createLowValue(Random random) {
- float min = lowMin;
- float max = lowMax;
- if (min == max)
- return min;
- return random.nextFloat() * (max - min) + min;
- }
-
- public void setLowMin(float lowMin) {
- this.lowMin = lowMin;
- }
-
- public void setLowMax(float lowMax) {
- this.lowMax = lowMax;
- }
-
- public void setHighMin(float highMin) {
- this.highMin = highMin;
- }
-
- public void setHighMax(float highMax) {
- this.highMax = highMax;
- }
-
- private boolean isLowDifference() {
- return lowMin - lowMax != 0;
- }
-
- private boolean isHighDifference() {
- return highMin - highMax != 0;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/SpawnShape.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/SpawnShape.java
deleted file mode 100644
index a766b7a..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/SpawnShape.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes.attributeValues;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class SpawnShape extends ParticleAttributeValue {
-
- public enum Shape {
- POINT("point"), SQUARE("square");
-
- private String name;
-
- Shape(String name) {
- this.name = name;
- }
-
- public static Shape byName(String text) throws Exception {
- for (Shape shape : values())
- if (shape.name.equals(text))
- return shape;
- throw new Exception("Shape with name \"" + text + "\" does not exist");
- }
- }
-
- private Shape shape;
-
- public SpawnShape() {
- super(ParticleAttributeValueType.SPAWN_SHAPE);
- }
-
- public Shape getShape() {
- return shape;
- }
-
- public void setShape(Shape shape) {
- this.shape = shape;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/Timeline.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/Timeline.java
deleted file mode 100644
index f1928ed..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/Timeline.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes.attributeValues;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class Timeline extends ParticleAttributeValue {
-
- private List points = new ArrayList<>();
-
- public Timeline() {
- super(ParticleAttributeValueType.TIMELINE);
- }
-
- public void setValueOfPoint(int index, float value) {
- if (points.size() <= index) {
- points.add(new TimelinePoint());
- }
- points.get(index).setValue(value);
- }
-
- public void setTimeOfPoint(int index, float time) {
- if (points.size() <= index) {
- points.add(new TimelinePoint());
- }
- points.get(index).setTime(time);
- }
-
- public float getValueAtTime(float time) {
- TimelinePoint left = null, right = null;
- for (TimelinePoint point : points) {
- if (point.getTime() <= time) {
- if (left == null || left.getTime() < point.getTime())
- left = point;
- } else if (right == null || right.getTime() > point.getTime())
- right = point;
- }
- if (left != null) {
- if (right != null) {
- float leftDist = 1 - Math.abs(left.getTime() - time);
- float rightDist = 1 - Math.abs(right.getTime() - time);
- float totalDist = leftDist + rightDist;
- return left.getValue() * (leftDist / totalDist) + right.getValue() * (rightDist / totalDist);
- }
- return left.getValue();
- }
- return 0;
- }
-
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TimelinePoint.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TimelinePoint.java
deleted file mode 100644
index 9f6f7a3..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TimelinePoint.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes.attributeValues;
-
-public class TimelinePoint {
-
- private float time, value;
-
- public float getTime() {
- return time;
- }
-
- public void setTime(float time) {
- this.time = time;
- }
-
- public float getValue() {
- return value;
- }
-
- public void setValue(float value) {
- this.value = value;
- }
-
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TimelineRange.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TimelineRange.java
deleted file mode 100644
index a405c2b..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TimelineRange.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes.attributeValues;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class TimelineRange {
-
- private Timeline timeline;
- private Range range;
-
- public TimelineRange(Timeline timeline, Range range) {
- this.timeline = timeline;
- this.range = range;
- }
-
- public Timeline getTimeline() {
- return timeline;
- }
-
- public void setTimeline(Timeline timeline) {
- this.timeline = timeline;
- }
-
- public Range getRange() {
- return range;
- }
-
- public void setRange(Range range) {
- this.range = range;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TintTimeline.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TintTimeline.java
deleted file mode 100644
index df0825b..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TintTimeline.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes.attributeValues;
-
-import com.example.julian.endlessroll.data.Color;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class TintTimeline extends ParticleAttributeValue {
-
- private List points = new ArrayList<>();
-
- public TintTimeline() {
- super(ParticleAttributeValueType.TINT_TIMELINE);
- }
-
- public void setValueOfPoint(int index, int colorIndex, float value) {
- if (points.size() <= index) {
- points.add(new TintTimelinePoint());
- }
- points.get(index).setValue(colorIndex, value);
- }
-
- public void setTimeOfPoint(int index, float time) {
- if (points.size() <= index) {
- points.add(new TintTimelinePoint());
- }
- points.get(index).setTime(time);
- }
-
- public Color getValueAtTime(float time) {
- TintTimelinePoint left = null, right = null;
- for (TintTimelinePoint point : points) {
- if (point.getTime() <= time) {
- if (left == null || left.getTime() < point.getTime())
- left = point;
- } else if (right == null || right.getTime() > point.getTime())
- right = point;
- }
- if (left != null) {
- if (right != null) {
- float leftDist = 1 - Math.abs(left.getTime() - time);
- float rightDist = 1 - Math.abs(right.getTime() - time);
- float totalDist = leftDist + rightDist;
- return left.getColor().mix((leftDist / totalDist), (rightDist / totalDist), right.getColor());
- }
- return left.getColor();
- }
- return new Color();
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TintTimelinePoint.java b/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TintTimelinePoint.java
deleted file mode 100644
index fc41d71..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/particles/attributes/attributeValues/TintTimelinePoint.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package com.example.julian.endlessroll.entities.particles.attributes.attributeValues;
-
-import com.example.julian.endlessroll.data.Color;
-
-public class TintTimelinePoint {
-
- private float time;
- private Color color;
-
- public float getTime() {
- return time;
- }
-
- public void setTime(float time) {
- this.time = time;
- }
-
- public Color getColor() {
- return color;
- }
-
- public void setValue(int colorIndex, float value) {
- if (color == null)
- color = new Color();
- if (colorIndex == 0)
- color.setR(value);
- else if (colorIndex == 1)
- color.setG(value);
- else if (colorIndex == 2)
- color.setB(value);
- }
-
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/textures/Texture.java b/app/src/main/java/com/example/julian/endlessroll/entities/textures/Texture.java
deleted file mode 100644
index c5ff5f3..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/textures/Texture.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package com.example.julian.endlessroll.entities.textures;
-
-/**
- * Created by Julian on 11.12.2015.
- */
-public class Texture {
-
- private int id;
- private int atlasWidth;
- private int atlasHeight;
-
- public Texture(int id, int atlasWidth, int atlasHeight) {
- this.id = id;
- this.atlasWidth = atlasWidth;
- this.atlasHeight = atlasHeight;
- }
-
- public Texture(Texture other) {
- this.id = other.getId();
- this.atlasWidth = other.getAtlasWidth();
- this.atlasHeight = other.getAtlasHeight();
- }
-
- public int getId() {
- return id;
- }
-
- public int getAtlasWidth() {
- return atlasWidth;
- }
-
- public int getAtlasHeight() {
- return atlasHeight;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/textures/TextureLoader.java b/app/src/main/java/com/example/julian/endlessroll/entities/textures/TextureLoader.java
deleted file mode 100644
index f15e6b4..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/textures/TextureLoader.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.example.julian.endlessroll.entities.textures;
-
-import android.content.Context;
-import android.graphics.Bitmap;
-import android.graphics.BitmapFactory;
-import android.opengl.GLES20;
-import android.opengl.GLUtils;
-
-import com.example.julian.endlessroll.main.GameLog;
-
-import java.io.InputStream;
-
-/**
- * Created by Julian on 26.11.2015.
- */
-public class TextureLoader {
-
- private Context context;
-
- public TextureLoader(Context context) {
- this.context = context;
- }
-
- public int loadTextureId(int texture, boolean isAtlas) {
- Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), texture);
- return loadTextureId(bitmap, isAtlas);
- }
-
- public Texture loadTexture(String inAssetsLocation) throws Exception {
- InputStream is = context.getAssets().open(inAssetsLocation);
- BitmapFactory.Options options = new BitmapFactory.Options();
- options.inScaled = false;
- Bitmap bitmap = BitmapFactory.decodeStream(is, null, options);
- return new Texture(loadTextureId(bitmap, false), 1, 1);
- }
-
- private int loadTextureId(Bitmap bitmap, boolean isAtlas) {
- int id = genTexture();
-
- GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, id);
- if (!isAtlas) {
- GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST);
- GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);
- } else {
- GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST);
- GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);
- }
-
- GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);
-
- bitmap.recycle();
- GameLog.d("Texture " + id + " successfully loaded");
- return id;
- }
-
- private int genTexture() {
- int[] idField = new int[1];
- GLES20.glGenTextures(1, idField, 0);
- return idField[0];
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/textures/TexturePack.java b/app/src/main/java/com/example/julian/endlessroll/entities/textures/TexturePack.java
deleted file mode 100644
index cfa600e..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/textures/TexturePack.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package com.example.julian.endlessroll.entities.textures;
-
-import android.content.Context;
-import android.support.annotation.DrawableRes;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.levels.worlds.World;
-
-/**
- * Created by Julian on 05.12.2015.
- */
-public class TexturePack {
-
- private TextureLoader loader;
-
- public final Texture goal;
- public final Texture playerArrow;
- public final Texture player;
- public final Texture star;
- public final Texture energy;
-
- public TexturePack(Context context) {
- loader = new TextureLoader(context);
- goal = loadTexture(R.drawable.goal);
- player = loadTexture(R.drawable.playershapes_ball);
- playerArrow = loadTexture(R.drawable.guis_playerarrow);
-
- star = loadTexture(R.drawable.currency_star);
- energy = loadAtlas(R.drawable.currency_energy_atlas, 2, 2);
-
- ToolType.loadAllToolTextures(this);
- World.loadAllSpecificTextures(this);
- }
-
- public Texture loadTexture(@DrawableRes int id) {
- int texId = loader.loadTextureId(id, false);
- return new Texture(texId, 1, 1);
- }
-
- public Texture loadAtlas(@DrawableRes int id, int atlasWidth, int atlasHeight) {
- int texId = loader.loadTextureId(id, true);
- return new Texture(texId, atlasWidth, atlasHeight);
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/Ceiling.java b/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/Ceiling.java
deleted file mode 100644
index 9b06d28..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/Ceiling.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.example.julian.endlessroll.entities.tileLists;
-
-import com.example.julian.endlessroll.entities.textures.Texture;
-
-@SuppressWarnings("serial")
-public class Ceiling extends TileList {
-
- public Ceiling(Texture texture) {
- super(Type.CEILING, texture);
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/Terrain.java b/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/Terrain.java
deleted file mode 100644
index 58d7217..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/Terrain.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.example.julian.endlessroll.entities.tileLists;
-
-import com.example.julian.endlessroll.entities.textures.Texture;
-
-@SuppressWarnings("serial")
-public class Terrain extends TileList {
-
- public Terrain(Texture texture) {
- super(TileList.Type.TERRAIN, texture);
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/Tile.java b/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/Tile.java
deleted file mode 100644
index 81b4fbe..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/Tile.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.example.julian.endlessroll.entities.tileLists;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.entities.textures.Texture;
-import com.example.julian.endlessroll.levels.TileData;
-
-/**
- * Created by Julian on 18.12.2015.
- */
-
-public class Tile extends Entity {
-
- public Tile(TileList.Type type, Texture texture, float edge, TileData data) {
- this(type, texture, edge, data.getX(), data.getWidth());
- }
-
- public Tile(TileList.Type type, Texture texture, float edge, float x, float width) {
- super(texture, new Vector(), width, 0);
- super.height = type.calculateTileHeightFromEdge(edge);
- super.position.x = x;
- switch (type) {
- case TERRAIN:
- super.position.y = edge - super.height / 2;
- break;
- case CEILING:
- super.position.y = edge + super.height / 2;
- break;
- }
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/TileList.java b/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/TileList.java
deleted file mode 100644
index 81a781a..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/tileLists/TileList.java
+++ /dev/null
@@ -1,79 +0,0 @@
-package com.example.julian.endlessroll.entities.tileLists;
-
-import com.example.julian.endlessroll.data.SynchronizedArrayList;
-import com.example.julian.endlessroll.entities.textures.Texture;
-import com.example.julian.endlessroll.levels.TileData;
-import com.example.julian.endlessroll.levels.worlds.World;
-
-import java.util.ArrayList;
-import java.util.List;
-
-@SuppressWarnings("serial")
-public class TileList extends SynchronizedArrayList {
-
- public enum Type {
- TERRAIN, CEILING;
-
- public float calculateTileHeightFromEdge(float edge) {
- switch (this) {
- case TERRAIN:
- return 1 + edge;
- case CEILING:
- return 1 - edge;
- }
- return 0;
- }
-
- }
-
- private Type type;
- private Texture texture;
- private float edge;
- private boolean endless;
-
- public TileList(Type type, Texture texture) {
- this.type = type;
- this.texture = texture;
- }
-
- public void loadData(World world, float edge, List tileData) {
- this.texture = world.getTerrainTexture();
- if (type == Type.CEILING)
- this.texture = world.getCeilingTexture();
- this.endless = false;
- super.clear();
- for (TileData data : tileData)
- super.add(new Tile(type, texture, edge, data));
- this.edge = edge;
- if (edge >= 1 || edge <= -1)
- super.clear();
- }
-
- public void createEndless(World world, float edge) {
- loadData(world, edge, new ArrayList());
- super.add(createEndlessTile(0));
- this.endless = true;
- }
-
- public void update(float cameraX) {
- if (!super.isEmpty()) {
- if (endless) {
- Tile last = super.get(super.size() - 1);
- if (last.getRightEdge() - cameraX < 3)
- super.add(createEndlessTile(last.getRightEdge() + 2.5f));
- }
- if (super.get(0).getRightEdge() - cameraX < -3) {
- super.remove(0);
- }
- }
- }
-
- private Tile createEndlessTile(float x) {
- return new Tile(type, texture, edge, x, 5);
- }
-
- public float getEdge() {
- return edge;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/tools/Bomb.java b/app/src/main/java/com/example/julian/endlessroll/entities/tools/Bomb.java
deleted file mode 100644
index 39996c5..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/tools/Bomb.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package com.example.julian.endlessroll.entities.tools;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.DestroyEffect;
-import com.example.julian.endlessroll.entities.Obstacle;
-import com.example.julian.endlessroll.entities.Player;
-import com.example.julian.endlessroll.entities.collision.CollisionDetector;
-import com.example.julian.endlessroll.entities.collision.geometry.Geometry;
-import com.example.julian.endlessroll.entities.collision.geometry.Quad;
-import com.example.julian.endlessroll.main.game.Timer;
-
-import java.util.List;
-
-/**
- * Created by Julian on 20.02.2016.
- */
-public class Bomb extends Tool {
-
- public final float RANGE = 1;
- private float delta;
- private boolean exploding = false;
-
- public Bomb(Vector position) {
- super(ToolType.BOMB, position, .29f, .29f, false, false);
- animation.setIndexSequence(new int[]{0, 1, 2});
- animation.setLooping(false);
- animation.setRequiredDelta(300);
- }
-
- @Override
- public void update(Timer timer) {
- super.update(timer);
- delta += timer.getFrameTimeSeconds();
- if (delta >= 1000)
- exploding = true;
- }
-
- @Override
- public void onPlayerCollision(Player player) {
-
- }
-
- @Override
- protected Geometry createCollisionBounds() {
- return this;
- }
-
- public boolean isExploding() {
- return exploding;
- }
-
- public void explode(List obstacles, CollisionDetector detector) {
- Quad explotionRange = new Quad(new Vector(super.getPosition()), RANGE, RANGE);
- for (Obstacle obstacle : obstacles) {
- if (detector.quadQuadCollision(obstacle, explotionRange))
- obstacle.destroy(DestroyEffect.EXPLOSION);
- }
- super.destroy(DestroyEffect.EXPLOSION);
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/tools/Magnet.java b/app/src/main/java/com/example/julian/endlessroll/entities/tools/Magnet.java
deleted file mode 100644
index f641469..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/tools/Magnet.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package com.example.julian.endlessroll.entities.tools;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.DestroyEffect;
-import com.example.julian.endlessroll.entities.Player;
-import com.example.julian.endlessroll.entities.collision.geometry.Circle;
-import com.example.julian.endlessroll.entities.collision.geometry.Geometry;
-import com.example.julian.endlessroll.entities.particles.ParticleSource;
-import com.example.julian.endlessroll.entities.particles.ParticleSystem;
-import com.example.julian.endlessroll.main.game.Timer;
-
-/**
- * Created by Julian on 11.02.2016.
- */
-public class Magnet extends Tool {
-
- private ParticleSource particleSource;
-
- public Magnet(Vector position, ParticleSystem particleSystem) {
- super(ToolType.MAGNET, position, .24f, .24f, false, false);
- animation.setRequiredDelta(300);
- animation.setIndexSequence(new int[]{1, 1, 0});
- animation.setLooping(true);
- super.setFloating(true);
- particleSource = new ParticleSource(new Vector(position), particleSystem.magnet);
- particleSource.start();
- }
-
- @Override
- public void destroy(DestroyEffect destroyEffect) {
- super.destroy(destroyEffect);
- particleSource.kill();
- }
-
- @Override
- public void onPlayerCollision(Player player) {
- float fromPlayerDistance = player.getPosition().vectorTo(super.getPosition()).length();
- float fromPlayerYDistance = super.getPosition().y - player.getPosition().y;
- float t = Math.min(2f, 1 / fromPlayerDistance);
- float influenz = .00004f * t * t;
- if (fromPlayerYDistance < 0) {
- player.getMovement().y -= influenz;
- } else if (fromPlayerYDistance > 0) {
- player.getMovement().y += influenz;
- }
- }
-
- @Override
- protected Geometry createCollisionBounds() {
- return new Circle(super.getPosition(), 2);
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/tools/Ramp.java b/app/src/main/java/com/example/julian/endlessroll/entities/tools/Ramp.java
deleted file mode 100644
index 76a6f64..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/tools/Ramp.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package com.example.julian.endlessroll.entities.tools;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.Player;
-import com.example.julian.endlessroll.entities.collision.geometry.Geometry;
-import com.example.julian.endlessroll.entities.collision.geometry.Triangle;
-import com.example.julian.endlessroll.main.game.Timer;
-
-/**
- * Created by Julian on 29.11.2015.
- */
-public class Ramp extends Tool {
-
- public Ramp(Vector position) {
- super(ToolType.RAMP, position, .4f, .35f, true, true);
- animation.setLooping(true);
- }
-
- public float getGradient() {
- return super.getHeight() / super.getWidth();
- }
-
- public float getHeightAt(float x, boolean clamp) {
- float ratio = (x - getLeftEdge()) / super.getWidth();
- if (clamp) {
- if (ratio < 0)
- return getBottomEdge();
- if (ratio > 1)
- return getTopEdge();
- }
- return getBottomEdge() + super.getHeight() * ratio;
- }
-
- @Override
- public void onPlayerCollision(Player player) {
- float necessaryY = calcNecessaryPlayerY(player);
- player.getPosition().y = necessaryY;
- float acceleration = player.getMovement().x * getGradient();
- player.getMovement().y = acceleration;
- }
-
- private float calcNecessaryPlayerY(Player player) {
- float normalM = -1 / getGradient();
- Vector normalToCircleCenter = new Vector(-1, -normalM).normalize();
- normalToCircleCenter.mul(player.RADIUS);
- float normalX = player.getPosition().x - normalToCircleCenter.x;
- float normalY = getHeightAt(normalX, false);
- return normalY + normalToCircleCenter.y;
- }
-
- @Override
- protected Geometry createCollisionBounds() {
- return new Triangle(this);
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/tools/Spring.java b/app/src/main/java/com/example/julian/endlessroll/entities/tools/Spring.java
deleted file mode 100644
index d55f8d4..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/tools/Spring.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.example.julian.endlessroll.entities.tools;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.Player;
-import com.example.julian.endlessroll.entities.collision.geometry.Geometry;
-import com.example.julian.endlessroll.entities.collision.geometry.Quad;
-import com.example.julian.endlessroll.main.game.Timer;
-
-/**
- * Created by Julian on 04.01.2016.
- */
-public class Spring extends Tool {
-
- private boolean hasYetCollided = false;
-
- public Spring(Vector position) {
- super(ToolType.SPRING, position, .3f, .35f, true, true);
- animation.setIndexSequence(new int[]{1, 0, 0, 3, 3, 3, 1});
- animation.setRequiredDelta(80);
- }
-
- @Override
- public void update(Timer timer) {
- if (hasYetCollided)
- super.update(timer);
- }
-
- @Override
- public void onPlayerCollision(Player player) {
- if (!hasYetCollided) {
- hasYetCollided = true;
- player.getMovement().y = .0022f;
- }
- }
-
- @Override
- protected Geometry createCollisionBounds() {
- return new Quad(super.getPosition(), .2f, .2f);
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/tools/Tool.java b/app/src/main/java/com/example/julian/endlessroll/entities/tools/Tool.java
deleted file mode 100644
index ccf98ae..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/tools/Tool.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package com.example.julian.endlessroll.entities.tools;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.AnimatedEntity;
-import com.example.julian.endlessroll.entities.Animation;
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.entities.Player;
-import com.example.julian.endlessroll.entities.collision.geometry.Geometry;
-import com.example.julian.endlessroll.main.game.Timer;
-
-/**
- * Created by Julian on 04.01.2016.
- */
-public abstract class Tool extends AnimatedEntity {
-
- private boolean placedByRightEdge;
- private boolean updateBounds;
- private Geometry collisionBounds;
- private boolean floating = false;
-
- public Tool(ToolType type, Vector position, float width, float height, boolean updateBounds, boolean placedByRightEdge) {
- super(type.getToolTexture(), position, width, height);
- this.updateBounds = updateBounds;
- this.placedByRightEdge = placedByRightEdge;
- collisionBounds = createCollisionBounds();
- }
-
- public abstract void onPlayerCollision(Player player);
-
- protected abstract Geometry createCollisionBounds();
-
- public Geometry getCollisionBounds() {
- if (updateBounds)
- return createCollisionBounds();
- return collisionBounds;
- }
-
- public void setFloating(boolean floating) {
- this.floating = floating;
- }
-
- public boolean isFloating() {
- return floating;
- }
-
- public boolean isPlacedByRightEdge() {
- return placedByRightEdge;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/tools/ToolSlot.java b/app/src/main/java/com/example/julian/endlessroll/entities/tools/ToolSlot.java
deleted file mode 100644
index 7c5ca4d..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/tools/ToolSlot.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.example.julian.endlessroll.entities.tools;
-
-import com.example.julian.endlessroll.R;
-
-/**
- * Created by Julian on 16.07.2016.
- */
-public class ToolSlot {
-
- private ToolType toolType;
- private boolean locked;
-
- public ToolSlot(ToolType toolType, boolean locked) {
- this.toolType = toolType;
- this.locked = locked;
- }
-
- public ToolType getToolType() {
- return toolType;
- }
-
- public int getDrawable() {
- if (locked)
- return R.drawable.tools_lockedbutton;
- else
- return toolType.getButtonDrawable();
- }
-
- public void setToolType(ToolType toolType) {
- this.toolType = toolType;
- }
-
- public boolean isLocked() {
- return locked;
- }
-
- public void setLocked(boolean locked) {
- this.locked = locked;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/entities/tools/ToolType.java b/app/src/main/java/com/example/julian/endlessroll/entities/tools/ToolType.java
deleted file mode 100644
index abbab48..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/entities/tools/ToolType.java
+++ /dev/null
@@ -1,117 +0,0 @@
-package com.example.julian.endlessroll.entities.tools;
-
-import android.support.annotation.Nullable;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.particles.ParticleSystem;
-import com.example.julian.endlessroll.entities.textures.Texture;
-import com.example.julian.endlessroll.entities.textures.TexturePack;
-import com.example.julian.endlessroll.sounds.SoundManager;
-
-public enum ToolType {
-
- //Check newInstance when new Tool is added!
- RAMP("Ramp", R.drawable.ramp, R.drawable.rampbutton, R.raw.ramp, 3f, 0),
- SPRING("Spring", R.drawable.tools_spring, R.drawable.tools_springbutton, R.raw.ramp, 4f, 5),
- MAGNET("Magnet", R.drawable.tools_magnet, R.drawable.tools_magnetbutton, R.raw.ramp, 6f, 10),
- BOMB("Bomb", R.drawable.tools_bomb, R.drawable.tools_bombbutton, R.raw.ramp, 6f, 12),
- NONE("None", -1, R.drawable.tools_emptybutton, -1, 0, 0);
-
- private String name;
- private int toolTextureId;
- private Texture toolTexture = null;
- private int buttonDrawable;
- private int placingSoundId;
- private int placingSound = -1;
- private float regenerationTime;
- private int costs;
- private boolean bought = false;
-
- ToolType(String name, int toolTextureId, int buttonDrawable, int placingSoundId, float regenerationTime, int costs) {
- this.name = name;
- this.toolTextureId = toolTextureId;
- this.buttonDrawable = buttonDrawable;
- this.placingSoundId = placingSoundId;
- this.regenerationTime = regenerationTime;
- this.costs = costs;
- }
-
- @Nullable
- public Tool newInstance(Vector position, ParticleSystem particleSystem) {
- Tool tool = null;
- switch (this) {
- case RAMP:
- tool = new Ramp(position);
- break;
- case SPRING:
- tool = new Spring(position);
- break;
- case MAGNET:
- tool = new Magnet(position, particleSystem);
- break;
- case BOMB:
- tool = new Bomb(position);
- break;
- case NONE:
- break;
- }
- if (tool != null && tool.isPlacedByRightEdge())
- tool.move(new Vector(-tool.getWidth() / 2, 0));
- return tool;
- }
-
- public void loadAllPlacingSounds(SoundManager soundManager) {
- for (ToolType type : values())
- type.loadPlacingSound(soundManager);
- }
-
- public static void loadAllToolTextures(TexturePack texturePack) {
- for (ToolType type : values())
- type.loadToolTexture(texturePack);
- }
-
- private void loadPlacingSound(SoundManager soundManager) {
- if (placingSoundId == -1)
- return;
- placingSound = soundManager.loadSound(placingSoundId);
- }
-
- private void loadToolTexture(TexturePack texturePack) {
- if (toolTextureId == -1)
- return;
- toolTexture = texturePack.loadAtlas(toolTextureId, 2, 2);
- }
-
- public Texture getToolTexture() {
- return toolTexture;
- }
-
- public int getButtonDrawable() {
- return buttonDrawable;
- }
-
- public int getPlacingSound() {
- return placingSound;
- }
-
- public String getName() {
- return name;
- }
-
- public void setBought(boolean bought) {
- this.bought = bought;
- }
-
- public boolean isBought() {
- return bought;
- }
-
- public int getCosts() {
- return costs;
- }
-
- public float getRegenerationTime() {
- return regenerationTime;
- }
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/julian/endlessroll/levels/Gap.java b/app/src/main/java/com/example/julian/endlessroll/levels/Gap.java
deleted file mode 100644
index 69bbc7e..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/levels/Gap.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.example.julian.endlessroll.levels;
-
-import org.simpleframework.xml.Attribute;
-
-/**
- * Created by Julian on 27.11.2015.
- */
-public class Gap {
-
- @Attribute
- private float leftEdge;
- @Attribute
- private float rightEdge;
-
- public float getLeftEdge() {
- return leftEdge;
- }
-
- public float getRightEdge() {
- return rightEdge;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/levels/Level.java b/app/src/main/java/com/example/julian/endlessroll/levels/Level.java
deleted file mode 100644
index 4457755..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/levels/Level.java
+++ /dev/null
@@ -1,147 +0,0 @@
-package com.example.julian.endlessroll.levels;
-
-import org.simpleframework.xml.Attribute;
-import org.simpleframework.xml.Element;
-import org.simpleframework.xml.ElementList;
-
-import java.util.List;
-
-/**
- * Created by Julian on 07.12.2015.
- */
-public class Level {
-
- @Attribute
- private int packId;
- @Attribute
- private int id;
- @Attribute
- private float goalX;
- @Attribute
- private float startSpeed;
- @Attribute
- private float endSpeed;
- @Attribute
- private float terrainEdge;
- @Attribute
- private float ceilingEdge;
- @ElementList
- private List terrainTiles;
- @ElementList
- private List ceilingTiles;
- @ElementList
- private List obstacles;
- @ElementList
- private List stars;
- @Element(required = false)
- private PositionData energy;
-
- private boolean finished = false;
- private boolean locked = true;
- private boolean[] collectedStars = {false, false, false};
- private boolean energyCollected = false;
-
- public int getPackId() {
- return packId;
- }
-
- public int getId() {
- return id;
- }
-
- public float getGoalX() {
- return goalX;
- }
-
- public float getStartSpeed() {
- return startSpeed;
- }
-
- public float getEndSpeed() {
- return endSpeed;
- }
-
- public float getTerrainEdge() {
- return terrainEdge;
- }
-
- public float getCeilingEdge() {
- return ceilingEdge;
- }
-
- public List getTerrainTiles() {
- return terrainTiles;
- }
-
- public List getCeilingTiles() {
- return ceilingTiles;
- }
-
- public List getObstacles() {
- return obstacles;
- }
-
- public List getStars() {
- return stars;
- }
-
- public PositionData getEnergyData() {
- return energy;
- }
-
- public boolean isLocked() {
- return locked;
- }
-
- public void setLocked(boolean locked) {
- this.locked = locked;
- }
-
- public boolean isFinished() {
- return finished;
- }
-
- public void setFinished(boolean finished) {
- this.finished = finished;
- }
-
- public boolean isStarCollected(int index) {
- return collectedStars[index];
- }
-
- public void setStarCollected(int index, boolean collected) {
- collectedStars[index] = collected;
- }
-
- public String getCollectedStarCodeForSQL() {
- String code = "";
- for (int i = 0; i < 3; i++)
- code += collectedStars[i] ? (i + 1) + "" : "";
- return code;
- }
-
- public void setCollectedStarsFromSQL(String code) {
- for (int i = 0; i < 3; i++)
- collectedStars[i] = code.contains((i + 1) + "");
- }
-
- public boolean[] getCollectedStars() {
- return collectedStars;
- }
-
- public boolean isEnergyCollected() {
- return energyCollected;
- }
-
- public void setEnergyCollected(boolean collected) {
- this.energyCollected = collected;
- }
-
- public void reset() {
- finished = false;
- locked = true;
- collectedStars = new boolean[]{false, false, false};
- energyCollected = false;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/levels/LevelManager.java b/app/src/main/java/com/example/julian/endlessroll/levels/LevelManager.java
deleted file mode 100644
index 8988ee9..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/levels/LevelManager.java
+++ /dev/null
@@ -1,88 +0,0 @@
-package com.example.julian.endlessroll.levels;
-
-import android.content.Context;
-
-import com.example.julian.endlessroll.main.DataStorageHandler;
-import com.example.julian.endlessroll.main.GameLog;
-
-import org.simpleframework.xml.Serializer;
-import org.simpleframework.xml.core.Persister;
-
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Comparator;
-
-public class LevelManager extends ArrayList {
-
- public LevelManager(Context context, DataStorageHandler dataStorageHandler) throws Exception {
- String[] assets = context.getAssets().list("levelpacks");
- for (String asset : assets) {
- try {
- LevelPack pack = loadLevelPack(context, "levelpacks/" + asset);
- pack.setName(asset.split(".xml")[0]);
- dataStorageHandler.readLevelProgress(pack);
- dataStorageHandler.readLevelPackLocked(pack);
- pack.tryToUnlockFirstLevel();
- if (pack.getId() == 1)
- pack.setLocked(false);
- super.add(pack);
- } catch (Exception e) {
- GameLog.e(e);
- }
- }
- sortPacks();
- }
-
- private void sortPacks(){
- Collections.sort(this, packComparator);
- }
-
- private LevelPack loadLevelPack(Context context, String name) throws Exception {
- try {
- InputStream source = context.getAssets().open(name);
- Serializer serializer = new Persister();
- return serializer.read(LevelPack.class, source);
- } catch (Exception e) {
- throw new Exception("Could not load levelPack \"" + name + "\"", e);
- }
- }
-
- public LevelPack getNextLevelPack(LevelPack currentPack) {
- int searchedId = currentPack.getId() + 1;
- for (LevelPack pack : this) {
- if (pack.getId() == searchedId)
- return pack;
- }
- return null;
- }
-
- public void reset() {
- for (LevelPack pack : this) {
- pack.reset();
- if (pack.getId() == 1)
- pack.setLocked(false);
- }
- }
-
- private Comparator packComparator = new Comparator() {
- @Override
- public int compare(LevelPack lhs, LevelPack rhs) {
- return lhs.getId() - rhs.getId();
- }
- };
-
- //CHEAT
- public void unlockAllPacks() {
- for (LevelPack levelPack : this)
- levelPack.setLocked(false);
- }
-
- public void unlockAllLevels() {
- for (LevelPack levelPack : this) {
- for (Level level : levelPack.getLevels())
- level.setLocked(false);
- }
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/levels/LevelPack.java b/app/src/main/java/com/example/julian/endlessroll/levels/LevelPack.java
deleted file mode 100644
index eff4e8a..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/levels/LevelPack.java
+++ /dev/null
@@ -1,113 +0,0 @@
-package com.example.julian.endlessroll.levels;
-
-import com.example.julian.endlessroll.levels.worlds.World;
-
-import org.simpleframework.xml.Attribute;
-import org.simpleframework.xml.Element;
-import org.simpleframework.xml.ElementList;
-import org.simpleframework.xml.Root;
-
-import java.util.List;
-
-/**
- * Created by Julian on 07.12.2015.
- */
-@Root
-public class LevelPack {
-
- @Attribute
- private int id;
- @Element
- private World world;
- @ElementList
- private List levels;
-
- private String name;
- private boolean locked = true;
-
- public int getId() {
- return id;
- }
-
- public List getLevels() {
- return levels;
- }
-
- public World getWorld() {
- return world;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getName() {
- return name;
- }
-
- public int getFinishedLevelCount() {
- int count = 0;
- for (Level level : levels)
- if (level.isFinished())
- count++;
- return count;
- }
-
- public int getCollectedStarCount() {
- int count = 0;
- for (Level level : levels)
- count += level.getCollectedStarCodeForSQL().length();
- return count;
- }
-
- public int getAvailableStars() {
- return levels.size() * 3;
- }
-
- public int getCollectedEnergyCount(){
- int count = 0;
- for(Level level : levels)
- count += level.isEnergyCollected() ? 1 : 0;
- return count;
- }
-
- public int getAvailableEnergy(){
- return levels.size();
- }
-
- public void tryToUnlockFirstLevel() {
- Level firstLevel = getLevel(1);
- if (firstLevel != null)
- firstLevel.setLocked(false);
- }
-
- public Level getLevel(int id) {
- for (Level level : levels)
- if (level.getId() == id)
- return level;
- return null;
- }
-
- public Level getNextLevel(Level currentLevel) {
- return getLevel(currentLevel.getId() + 1);
- }
-
- public boolean isLastLevel(Level level) {
- return getNextLevel(level) == null;
- }
-
- public void reset() {
- for (Level level : levels)
- level.reset();
- setLocked(true);
- tryToUnlockFirstLevel();
- }
-
- public void setLocked(boolean locked) {
- this.locked = locked;
- }
-
- public boolean isLocked() {
- return locked;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/levels/MoveComponent.java b/app/src/main/java/com/example/julian/endlessroll/levels/MoveComponent.java
deleted file mode 100644
index 79a531c..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/levels/MoveComponent.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package com.example.julian.endlessroll.levels;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.Vertex;
-
-import org.simpleframework.xml.Attribute;
-
-public class MoveComponent {
-
- @Attribute
- private float width;
- @Attribute
- private float height;
- @Attribute
- private float x;
- @Attribute
- private float y;
- @Attribute
- private float speed;
-
- public float getWidth() {
- return width;
- }
-
- public float getHeight() {
- return height;
- }
-
- public float getX() {
- return x;
- }
-
- public float getY() {
- return y;
- }
-
- public float getSpeed() {
- return speed;
- }
-
- public Vector getPositionOfVertex(Vertex vertex) {
- float x = this.x + (width / 2f) * vertex.getX();
- float y = this.y + (height / 2f) * vertex.getY();
- return new Vector(x, y);
- }
-
- public void shrink(Vector value) {
- this.width -= value.getX();
- this.height -= value.getY();
- if (width < 0)
- width = 0;
- if (height < 0)
- height = 0;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/levels/ObstacleData.java b/app/src/main/java/com/example/julian/endlessroll/levels/ObstacleData.java
deleted file mode 100644
index e11ed2e..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/levels/ObstacleData.java
+++ /dev/null
@@ -1,59 +0,0 @@
-package com.example.julian.endlessroll.levels;
-
-import org.simpleframework.xml.Attribute;
-import org.simpleframework.xml.Element;
-
-/**
- * Created by Julian on 07.12.2015.
- */
-public class ObstacleData {
-
- @Attribute
- private boolean floating;
- @Attribute
- private boolean moving;
- @Attribute
- private boolean deadly;
- @Attribute
- private float leftEdge;
- @Attribute
- private float rightEdge;
- @Attribute
- private float height;
- @Attribute
- private float y;
- @Element(required = false)
- private MoveComponent moveComponent;
-
- public boolean isFloating() {
- return floating;
- }
-
- public boolean isMoving() {
- return moving;
- }
-
- public boolean isDeadly() {
- return deadly;
- }
-
- public float getX() {
- return leftEdge + getWidth() / 2;
- }
-
- public float getWidth() {
- return rightEdge - leftEdge;
- }
-
- public float getHeight() {
- return height;
- }
-
- public float getY() {
- return y;
- }
-
- public MoveComponent getMoveComponent() {
- return moveComponent;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/levels/PositionData.java b/app/src/main/java/com/example/julian/endlessroll/levels/PositionData.java
deleted file mode 100644
index ebace49..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/levels/PositionData.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.example.julian.endlessroll.levels;
-
-import org.simpleframework.xml.Attribute;
-
-/**
- * Created by Julian on 27.01.2017.
- */
-
-public class PositionData {
-
- @Attribute
- private float x;
- @Attribute
- private float y;
-
- public float getX() {
- return x;
- }
-
- public float getY() {
- return y;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/levels/TileData.java b/app/src/main/java/com/example/julian/endlessroll/levels/TileData.java
deleted file mode 100644
index 24f93a0..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/levels/TileData.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package com.example.julian.endlessroll.levels;
-
-import org.simpleframework.xml.Attribute;
-
-public class TileData {
-
- @Attribute
- private float x;
- @Attribute
- private float width;
-
- public float getX() {
- return x;
- }
-
- public float getWidth() {
- return width;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/levels/worlds/World.java b/app/src/main/java/com/example/julian/endlessroll/levels/worlds/World.java
deleted file mode 100644
index f533190..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/levels/worlds/World.java
+++ /dev/null
@@ -1,80 +0,0 @@
-package com.example.julian.endlessroll.levels.worlds;
-
-import android.support.annotation.DrawableRes;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.entities.textures.Texture;
-import com.example.julian.endlessroll.entities.textures.TexturePack;
-
-/**
- * Created by Julian on 14.11.2016.
- */
-
-public enum World {
-
- GRASSLANDS("Grasslands", R.drawable.previews_grass, R.drawable.backgrounds_game_grass, R.drawable.terrain_t_grass, R.drawable.terrain_c_grass, R.drawable.obstacles_grass),
- TESTCAVE("Testcave", R.drawable.previews_grass, R.drawable.backgrounds_game_cave, R.drawable.terrain_t_grass, R.drawable.terrain_c_grass, R.drawable.obstacles_cave),
- ICY_MOUNTAINS("Icy Mountains", R.drawable.previews_grass, R.drawable.backgrounds_game_mountains, R.drawable.terrain_t_grass, R.drawable.terrain_c_grass, R.drawable.obstacles_mountains);
-
- private String name;
- @DrawableRes
- private int previewId;
- @DrawableRes
- private int backgroundId;
- @DrawableRes
- private int terrainId;
- @DrawableRes
- private int ceilingId;
- @DrawableRes
- private int obstacleId;
-
- private Texture background;
- private Texture terrain;
- private Texture ceiling;
- private Texture obstacle;
-
- World(String name, @DrawableRes int previewId, @DrawableRes int backgroundId, @DrawableRes int terrainId, @DrawableRes int ceilingId, @DrawableRes int obstacleId) {
- this.name = name;
- this.previewId = previewId;
- this.backgroundId = backgroundId;
- this.terrainId = terrainId;
- this.ceilingId = ceilingId;
- this.obstacleId = obstacleId;
- }
-
- public static void loadAllSpecificTextures(TexturePack texturePack) {
- for (World world : values())
- world.loadSpecificTextures(texturePack);
- }
-
- private void loadSpecificTextures(TexturePack texturePack) {
- background = texturePack.loadTexture(backgroundId);
- terrain = texturePack.loadTexture(terrainId);
- ceiling = texturePack.loadTexture(ceilingId);
- obstacle = texturePack.loadAtlas(obstacleId, 2, 2);
- }
-
- public String getName() {
- return name;
- }
-
- public int getPreviewId() {
- return previewId;
- }
-
- public Texture getBackgroundTexture() {
- return background;
- }
-
- public Texture getTerrainTexture() {
- return terrain;
- }
-
- public Texture getCeilingTexture() {
- return ceiling;
- }
-
- public Texture getObstacleTexture() {
- return obstacle;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/DataSafer.java b/app/src/main/java/com/example/julian/endlessroll/main/DataSafer.java
deleted file mode 100644
index ccbd373..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/DataSafer.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.example.julian.endlessroll.main;
-
-import com.example.julian.endlessroll.user.User;
-
-/**
- * Created by Julian on 15.07.2016.
- */
-public class DataSafer {
-
- private User user;
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/DataStorageHandler.java b/app/src/main/java/com/example/julian/endlessroll/main/DataStorageHandler.java
deleted file mode 100644
index 2498379..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/DataStorageHandler.java
+++ /dev/null
@@ -1,126 +0,0 @@
-package com.example.julian.endlessroll.main;
-
-import android.app.Activity;
-import android.content.Context;
-import android.content.SharedPreferences;
-
-import com.example.julian.endlessroll.user.ToolSlotSettings;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.levels.Level;
-import com.example.julian.endlessroll.levels.LevelPack;
-import com.example.julian.endlessroll.user.User;
-import com.example.julian.endlessroll.sqlDatabase.MyDatabase;
-
-/**
- * Created by Julian on 25.04.2016.
- */
-public class DataStorageHandler {
-
- private final String PREFERENCES_NAME = "GamePreferences";
- private final String SOUND_ON = "Sound";
- private final String USER_EP = "EP";
- private final String USER_LEVEL = "Level";
- private final String USER_STARS = "Stars";
- private final String USER_ENERGY = "Energy";
- private final String USER_TOOL_1 = "Tool1";
- private final String USER_TOOL_2 = "Tool2";
- private final String USER_TOOL_3 = "Tool3";
- private final String USER_TOOL_4 = "Tool4";
- private final String USER_TOOLS_LOCKED = "ToolsLocked";
-
- private SharedPreferences preferences;
- private MyDatabase database;
-
- public DataStorageHandler(Activity activity) {
- preferences = activity.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE);
- database = new MyDatabase(activity);
- }
-
- public boolean readIsSoundOn() {
- return preferences.getBoolean(SOUND_ON, true);
- }
-
- public void writeSoundOn(boolean soundOn) {
- SharedPreferences.Editor editor = preferences.edit();
- editor.putBoolean(SOUND_ON, soundOn);
- editor.apply();
- }
-
- public User readUserData(User.LvUpListener lvUpListener) throws Exception {
- int ep = preferences.getInt(USER_EP, 0);
- int level = preferences.getInt(USER_LEVEL, 1);
- int stars = preferences.getInt(USER_STARS, 0);
- int energy = preferences.getInt(USER_ENERGY, 0);
- int toolsLocked = preferences.getInt(USER_TOOLS_LOCKED, 3);
- String tool1 = preferences.getString(USER_TOOL_1, ToolType.RAMP.name());
- String tool2 = preferences.getString(USER_TOOL_2, ToolType.NONE.name());
- String tool3 = preferences.getString(USER_TOOL_3, ToolType.NONE.name());
- String tool4 = preferences.getString(USER_TOOL_4, ToolType.NONE.name());
- ToolSlotSettings toolSlotSettings = new ToolSlotSettings(tool1, tool2, tool3, tool4, toolsLocked);
- return new User(lvUpListener, ep, level, stars, energy, toolSlotSettings);
- }
-
- public void writeUserData(User user) {
- SharedPreferences.Editor editor = preferences.edit();
- editor.putInt(USER_EP, user.getEp());
- editor.putInt(USER_LEVEL, user.getLevel());
- editor.putInt(USER_STARS, user.getStarCount());
- editor.putInt(USER_ENERGY, user.getEnergyCount());
- editor.putString(USER_TOOL_1, user.getToolSlotSettings().get(0).getToolType().name());
- editor.putString(USER_TOOL_2, user.getToolSlotSettings().get(1).getToolType().name());
- editor.putString(USER_TOOL_3, user.getToolSlotSettings().get(2).getToolType().name());
- editor.putString(USER_TOOL_4, user.getToolSlotSettings().get(3).getToolType().name());
- editor.putInt(USER_TOOLS_LOCKED, user.getToolSlotSettings().getLockedSlotCount());
- editor.apply();
- }
-
- public void writeLevelProgress(Level level) {
- database.open();
- database.writeLevelProgress(level);
- database.close();
- }
-
- public void writeLevelPackLocked(LevelPack levelPack) {
- database.open();
- database.writeLevelPackLocked(levelPack);
- database.close();
- }
-
- public void readLevelPackLocked(LevelPack levelPack) {
- database.open();
- database.readLevelPackLocked(levelPack);
- database.close();
- }
-
- public void clearLevelPackLocked() {
- database.open();
- database.clearLevelPackLocked();
- database.close();
- }
-
- public void readLevelProgress(LevelPack levelPack) {
- database.open();
- for (Level level : levelPack.getLevels())
- database.readLevelProgress(level);
- database.close();
- }
-
- public void clearLevelProgess() {
- database.open();
- database.clearLevelProgess();
- database.close();
- }
-
- public void readBoughtTools() {
- database.open();
- database.readBoughtTools();
- database.close();
- }
-
- public void writeBoughtTools() {
- database.open();
- database.writeBoughtTools();
- database.close();
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/ExceptionHandler.java b/app/src/main/java/com/example/julian/endlessroll/main/ExceptionHandler.java
deleted file mode 100644
index 68e513c..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/ExceptionHandler.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.example.julian.endlessroll.main;
-
-/**
- * Created by Julian on 06.02.2016.
- */
-public interface ExceptionHandler {
-
- void onException(Exception e);
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/GameActivity.java b/app/src/main/java/com/example/julian/endlessroll/main/GameActivity.java
deleted file mode 100644
index 088bc1b..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/GameActivity.java
+++ /dev/null
@@ -1,216 +0,0 @@
-package com.example.julian.endlessroll.main;
-
-import android.app.Activity;
-import android.app.ActivityManager;
-import android.content.Context;
-import android.content.pm.ConfigurationInfo;
-import android.content.res.Configuration;
-import android.graphics.Typeface;
-import android.os.Bundle;
-import android.view.KeyEvent;
-import android.view.Window;
-import android.view.WindowManager;
-import android.widget.RelativeLayout;
-
-import com.example.julian.endlessroll.levels.Level;
-import com.example.julian.endlessroll.levels.LevelManager;
-import com.example.julian.endlessroll.levels.LevelPack;
-import com.example.julian.endlessroll.main.screens.GameScreen;
-import com.example.julian.endlessroll.main.screens.LevelsScreen;
-import com.example.julian.endlessroll.main.screens.Screen;
-import com.example.julian.endlessroll.main.screens.ScreenFlipper;
-import com.example.julian.endlessroll.main.screens.StartScreen;
-import com.example.julian.endlessroll.main.screens.ToolShopScreen;
-import com.example.julian.endlessroll.main.screens.WorldsScreen;
-import com.example.julian.endlessroll.main.tutorial.BreakPoint;
-import com.example.julian.endlessroll.main.tutorial.Tutorial;
-import com.example.julian.endlessroll.main.tutorial.TutorialView;
-import com.example.julian.endlessroll.rendering.renderer.GameRenderer;
-import com.example.julian.endlessroll.sounds.SoundManager;
-import com.example.julian.endlessroll.user.User;
-import com.example.julian.endlessroll.views.LevelupMessage;
-import com.example.julian.endlessroll.views.TopBarData;
-
-import java.util.List;
-
-/**
- * Created by Julian on 06.02.2016.
- */
-public class GameActivity extends Activity implements ExceptionHandler, User.LvUpListener {
-
- private DataStorageHandler dataStorageHandler;
- private LevelManager levelManager;
- private SoundManager soundManager;
- private User user;
-
- private MyGlSurfaceView glSurfaceView;
- private ScreenFlipper flipper;
- private StartScreen startScreen;
- private WorldsScreen worldsScreen;
- private LevelsScreen levelsScreen;
- private ToolShopScreen toolShopScreen;
- private GameScreen gameScreen;
-
- private LevelupMessage levelupMessage;
- private TutorialView tutorialView;
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- try {
- GameLog.d("OnCreate");
- super.onCreate(savedInstanceState);
- super.requestWindowFeature(Window.FEATURE_NO_TITLE);
- super.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
- WindowManager.LayoutParams.FLAG_FULLSCREEN);
- if (!hasGLES20())
- throw new Exception("OpenGL ES 2.0 not supported");
-
- dataStorageHandler = new DataStorageHandler(this);
- dataStorageHandler.readBoughtTools();
- user = dataStorageHandler.readUserData(this);
- soundManager = new SoundManager(this);
- soundManager.setSoundOn(dataStorageHandler.readIsSoundOn());
- soundManager.backgroundMusic.getPlayer().setLooping(true);
- soundManager.backgroundMusic.start();
- levelManager = new LevelManager(this, dataStorageHandler);
-
- this.glSurfaceView = new MyGlSurfaceView(this, new GameRenderer(this));
- Typeface typeface = Typeface.createFromAsset(getAssets(), "fontBaron.ttf");
- TopBarData topBarData = new TopBarData(this, dataStorageHandler, soundManager, levelManager, user, typeface);
- startScreen = new StartScreen(this, glSurfaceView, soundManager, levelManager, user, typeface);
- worldsScreen = new WorldsScreen(topBarData);
- levelsScreen = new LevelsScreen(topBarData);
- toolShopScreen = new ToolShopScreen(topBarData);
- gameScreen = new GameScreen(topBarData, glSurfaceView);
-
- levelupMessage = new LevelupMessage(this, typeface, user);
- tutorialView = new TutorialView(this);
-
- flipper = new ScreenFlipper(this, startScreen, worldsScreen, levelsScreen, gameScreen, toolShopScreen);
- RelativeLayout relativeLayout = new RelativeLayout(this);
- relativeLayout.addView(glSurfaceView);
- relativeLayout.addView(flipper);
- relativeLayout.addView(levelupMessage.getLayout());
- relativeLayout.addView(tutorialView.getLayout());
- //TODO: add Tutorial
- //TODO: Scroll up
- //TODO: Goal animation!
- //TODO: Goal screen animation!
- setContentView(relativeLayout);
- } catch (Exception e) {
- onException(e);
- return;
- }
- }
-
- public void flipToScreen(final Screen.ScreenType screen) {
- runOnUiThread(new Runnable() {
- @Override
- public void run() {
- flipper.showScreen(screen);
- }
- });
- }
-
- public void setToolshopCaller(Screen.ScreenType caller) {
- toolShopScreen.setCaller(caller);
- }
-
- public Screen.ScreenType getCurrentScreenType() {
- return flipper.getCurrentScreen().getType();
- }
-
- public void selectWorld(LevelPack levelPack) {
- levelsScreen.createList(levelPack);
- }
-
- public void startGame(final LevelPack levelPack, final Level level) {
- runOnUiThread(new Runnable() {
- @Override
- public void run() {
- flipper.showScreen(Screen.ScreenType.GAME);
- gameScreen.startGame(levelPack, level);
- }
- });
- }
-
- @Override
- public void onLvUp(final int level) {
- runOnUiThread(new Runnable() {
- @Override
- public void run() {
- levelupMessage.show(level);
- }
- });
- }
-
- public void showTutorialScreen(final List breakPoints) {
- runOnUiThread(new Runnable() {
- @Override
- public void run() {
- tutorialView.show(breakPoints);
- }
- });
- }
-
- public void onTutorialViewHidden(){
- gameScreen.onResume();
- }
-
- @Override
- public boolean onKeyDown(int keyCode, KeyEvent event) {
- try {
- if (keyCode == KeyEvent.KEYCODE_BACK) {
- flipper.getCurrentScreen().onBackKeyDown();
- return true;
- }
- } catch (Exception e) {
- onException(e);
- }
- return super.onKeyDown(keyCode, event);
- }
-
- @Override
- public void onException(Exception e) {
- GameLog.e(e);
- super.finish();
- }
-
- @Override
- protected void onPause() {
- GameLog.d("OnPause");
- glSurfaceView.onPause();
- if (flipper.getCurrentScreen() == gameScreen)
- gameScreen.onPause();
- soundManager.pause();
- super.onPause();
- }
-
- @Override
- protected void onResume() {
- GameLog.d("OnResume");
- glSurfaceView.onResume();
- soundManager.resume();
- super.onResume();
- }
-
- @Override
- protected void onDestroy() {
- GameLog.d("OnDestroy");
- soundManager.destroy();
-
- dataStorageHandler.writeSoundOn(soundManager.isSoundOn());
- super.onDestroy();
- }
-
- @Override
- public void onConfigurationChanged(Configuration newConfig) {
- super.onConfigurationChanged(newConfig);
- }
-
- private boolean hasGLES20() {
- ActivityManager am = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
- ConfigurationInfo info = am.getDeviceConfigurationInfo();
- return info.reqGlEsVersion >= 0x20000;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/GameHandler.java b/app/src/main/java/com/example/julian/endlessroll/main/GameHandler.java
deleted file mode 100644
index 3c83507..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/GameHandler.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.example.julian.endlessroll.main;
-
-import android.widget.RelativeLayout;
-
-import com.example.julian.endlessroll.levels.Level;
-import com.example.julian.endlessroll.main.screens.Screen;
-import com.example.julian.endlessroll.main.tutorial.BreakPoint;
-import com.example.julian.endlessroll.main.tutorial.Tutorial;
-
-import java.util.List;
-
-/**
- * Created by Julian on 08.12.2015.
- */
-public interface GameHandler extends ExceptionHandler {
-
- void startInUiThread(Runnable runnable);
-
- void toScreen(Screen.ScreenType screen);
-
- RelativeLayout getRootLayout();
-
- void showTutorialScreen(List breakPoints);
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/GameLog.java b/app/src/main/java/com/example/julian/endlessroll/main/GameLog.java
deleted file mode 100644
index ac3d348..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/GameLog.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.example.julian.endlessroll.main;
-
-import android.util.Log;
-
-/**
- * Created by Julian on 23.11.2015.
- */
-public class GameLog {
-
- private final static String TAG = "GameLog";
- public static boolean debugging = true;
-
- public static void i(String message) {
- Log.i(TAG + getCallerInfo(), message);
- }
-
- public static void d(String message) {
- if (debugging)
- Log.d(TAG + getCallerInfo(), message);
- }
-
- public static void e(String message) {
- Log.e(TAG + getCallerInfo(), message);
- }
-
- public static void e(Throwable error) {
- Log.e(TAG + getCallerInfo(), error.getMessage(), error);
- }
-
- //Possible to get Method which called i, d, e
- //Method found at stack[4]
- public static void stack() {
- StackTraceElement[] stack = Thread.currentThread().getStackTrace();
- Log.i(TAG + "Stack", "StackSize: " + stack.length);
- for (int i = 0; i < stack.length; i++) {
- Log.i(TAG + "Stack", i + ": " + stack[i]);
- }
- }
-
- private static String getCallerInfo() {
- StackTraceElement[] stack = Thread.currentThread().getStackTrace();
- return "(" + stack[4].getFileName() + ", " + stack[4].getMethodName() + ", " + stack[4].getLineNumber() + ")";
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/MyGlSurfaceView.java b/app/src/main/java/com/example/julian/endlessroll/main/MyGlSurfaceView.java
deleted file mode 100644
index 1bd62f6..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/MyGlSurfaceView.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.example.julian.endlessroll.main;
-
-import android.content.Context;
-import android.opengl.GLSurfaceView;
-
-import com.example.julian.endlessroll.rendering.Rendering;
-import com.example.julian.endlessroll.rendering.renderer.GameRenderer;
-
-/**
- * Created by Julian on 30.07.2016.
- */
-public class MyGlSurfaceView extends GLSurfaceView {
-
- private GameRenderer renderer;
- private boolean rendererSet;
-
- public MyGlSurfaceView(Context context, GameRenderer gameRenderer) throws Exception {
- super(context);
- this.renderer = gameRenderer;
- super.setEGLContextClientVersion(2);
- super.setRenderer(renderer);
- rendererSet = true;
- }
-
- public void addRendering(Rendering rendering) {
- renderer.addRendering(rendering);
- }
-
- public void setCurrentRendering(Rendering currentRendering) {
- super.setOnTouchListener(currentRendering);
- renderer.setCurrentRendering(currentRendering);
- }
-
- @Override
- public void onResume() {
- GameLog.i("SurfaceView: onResume");
- if (rendererSet)
- super.onResume();
- }
-
- @Override
- public void onPause() {
- GameLog.i("SurfaceView: onPause");
- if (rendererSet)
- super.onPause();
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/game/Camera.java b/app/src/main/java/com/example/julian/endlessroll/main/game/Camera.java
deleted file mode 100644
index 9d6e118..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/game/Camera.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.example.julian.endlessroll.main.game;
-
-import com.example.julian.endlessroll.main.GameLog;
-
-/**
- * Created by Julian on 22.05.2017.
- */
-
-public class Camera {
-
- private final float MOVE_SPEED_UP = 0.7f;
- private final float MOVE_SPEED_DOWN = 0.7f;
- private final float MAX_Y = 0.5f;
- private final float MIN_Y = 0;
- private float x, y;
-
- public void update(float playerY, Timer timer){
- float frameTime = timer.getFrameTimeSeconds() / 1000f;
- float maxY = Math.min(playerY - 1 + 0.6f, MAX_Y);
- if(playerY >= 0.5f){
- y += MOVE_SPEED_UP * frameTime;
- if(y > maxY)
- y = maxY;
- } else if(y > MIN_Y){
- y -= MOVE_SPEED_DOWN * frameTime;
- if(y < MIN_Y)
- y = MIN_Y;
- }
- }
-
- public void moveX(float move){
- x += move;
- }
-
- public void reset(){
- x = 0;
- y = 0;
- }
-
- public float getX() {
- return x;
- }
-
- public float getY() {
- return y;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/game/Game.java b/app/src/main/java/com/example/julian/endlessroll/main/game/Game.java
deleted file mode 100644
index 5634822..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/game/Game.java
+++ /dev/null
@@ -1,301 +0,0 @@
-package com.example.julian.endlessroll.main.game;
-
-import android.view.MotionEvent;
-import android.view.View;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.DestroyEffect;
-import com.example.julian.endlessroll.entities.Energy;
-import com.example.julian.endlessroll.entities.Player;
-import com.example.julian.endlessroll.entities.Star;
-import com.example.julian.endlessroll.entities.collision.CollisionManager;
-import com.example.julian.endlessroll.entities.particles.ParticleSystem;
-import com.example.julian.endlessroll.entities.textures.TexturePack;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.levels.Level;
-import com.example.julian.endlessroll.levels.LevelManager;
-import com.example.julian.endlessroll.levels.LevelPack;
-import com.example.julian.endlessroll.main.DataStorageHandler;
-import com.example.julian.endlessroll.main.GameHandler;
-import com.example.julian.endlessroll.main.GameLog;
-import com.example.julian.endlessroll.main.screens.Screen;
-import com.example.julian.endlessroll.main.tutorial.Tutorial;
-import com.example.julian.endlessroll.main.tutorial.TutorialManager;
-import com.example.julian.endlessroll.rendering.Rendering;
-import com.example.julian.endlessroll.sounds.SoundManager;
-import com.example.julian.endlessroll.user.LevelUpBounties;
-import com.example.julian.endlessroll.user.User;
-import com.example.julian.endlessroll.views.MessageType;
-import com.example.julian.endlessroll.views.ToolButton;
-import com.example.julian.endlessroll.views.ToolButtonBar;
-import com.example.julian.endlessroll.views.TopBarData;
-import com.example.julian.endlessroll.views.ViewManager;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 26.11.2015.
- */
-public class Game extends Rendering {
-
- private User user;
- private DataStorageHandler dataStorageHandler;
- private LevelManager levelManager;
- private GameHandler handler;
- private ViewManager viewManager;
- private SoundManager sounds;
- private LevelPack levelPack;
- private ParticleSystem particleSystem;
- private LevelUpBounties levelUpBounties;
-
- private ToolType currentTool;
- private Player player;
- private Physics physics;
- private CollisionManager collisionManager;
- private Timer timer;
- private GameState gameState = GameState.COUNTDOWN;
-
- private Level level;
- private List collectedStars = new ArrayList<>();
- private boolean energyCollected;
-
- private TutorialManager tutorialManager;
- private Tutorial currentTutorial;
-
- public Game(GameHandler handler, TopBarData topBarData) throws Exception {
- super(topBarData.getGameActivity());
- this.handler = handler;
- this.user = topBarData.getUser();
- this.levelManager = topBarData.getLevelManager();
- this.sounds = topBarData.getSoundManager();
- levelUpBounties = new LevelUpBounties(0);
- physics = new Physics();
- collisionManager = new CollisionManager(this);
- particleSystem = new ParticleSystem(getContext());
- this.dataStorageHandler = topBarData.getDataStorageHandler();
- viewManager = new ViewManager(this, handler, topBarData);
- tutorialManager = new TutorialManager();
- }
-
- @Override
- public GameScene init(TexturePack texturePack, Timer timer, boolean isFirstTime) {
- GameLog.d("initGame");
- this.timer = timer;
- try {
- if (isFirstTime) {
- scene = new GameScene(texturePack, particleSystem);
- if (level != null)
- startGame(levelPack, level);
- } else {
- scene.setTexturePack(texturePack);
- }
- particleSystem.loadTextures();
- } catch (Exception e) {
- onException(e);
- }
- return scene;
- }
-
- public void startGame(LevelPack levelPack, Level level) {
- GameLog.d("Start game");
- try {
- this.level = level;
- this.levelPack = levelPack;
- if (scene != null) {
- gameState = GameState.COUNTDOWN;
- tutorialManager.resetTutorials();
- currentTutorial = tutorialManager.getTutorial(level);
- if (level.isFinished())
- currentTutorial = null;
- collectedStars.clear();
- energyCollected = false;
- particleSystem.deleteAllSources();
- scene.loadLevel(level, levelPack.getWorld());
- player = scene.getPlayer();
- viewManager.resetViews(user);
- currentTool = viewManager.toolButtonBar.getActiveButton().getToolType();
- viewManager.startCountdown();
- }
- } catch (Exception e) {
- onException(e);
- }
- }
-
- public void countdownFinished() {
- gameState = GameState.RUNNING;
- }
-
- @Override
- public void setScreenSize(int width, int height) {
- Vector screenSize = new Vector(width, height);
- scene.setScreenSize(screenSize);
- }
-
- @Override
- public void update() {
- particleSystem.update(timer);
- float playerProgress = 0;
- float playerSpeed = 0;
- if (player != null) {
- playerProgress = player.getProgress();
- playerSpeed = player.getSpeed();
- }
- viewManager.update(gameState == GameState.RUNNING, timer, playerProgress, playerSpeed);
- switch (gameState) {
- case RUNNING:
- if (player.getPosition().y < -2f) {
- onGameOver(false);
- return;
- }
- if (player.getPosition().x >= scene.getGoalX()) {
- onGoalReached();
- return;
- }
- scene.getCamera().update(player.getPosition().y, timer);
-
- if (currentTutorial != null) {
- currentTutorial.update(playerProgress);
- if (currentTutorial.isOverNewBreakPoints()) {
- gameState = GameState.PAUSED;
- handler.showTutorialScreen(currentTutorial.getCurrentBreakPoints());
- return;
- }
- }
-
- physics.applyGravity(scene, timer);
- scene.update(timer);
- collisionManager.update(physics, scene);
- }
- }
-
- @Override
- public boolean onTouch(View v, MotionEvent event) {
- if (gameState == GameState.RUNNING) {
- ToolButtonBar bar = viewManager.toolButtonBar;
- ToolButton button = bar.getByToolType(currentTool);
- if (button != null && button.finishedLoading()) {
- if (event.getAction() == MotionEvent.ACTION_DOWN) {
- button.setProgress(0);
- addTool(event.getX(), event.getY());
- }
- }
- return true;
- }
- return false;
- }
-
- public void resetViews() {
- viewManager.resetViews(user);
- }
-
- public void continueGame() {
- viewManager.hideShortMenu();
- gameState = GameState.COUNTDOWN;
- viewManager.startCountdown();
- }
-
- public void startNextLevel() {
- level = levelPack.getNextLevel(level);
- startGame(levelPack, level);
- }
-
- public void restartLevel() {
- startGame(levelPack, level);
- }
-
- public void toLevelsScreen() {
- handler.toScreen(Screen.ScreenType.LEVELS);
- }
-
- public void setCurrentTool(ToolType toolType) {
- currentTool = toolType;
- }
-
- public void tryToPause() {
- if(gameState == GameState.GAME_OVER || gameState == GameState.PAUSED)
- return;
- viewManager.showShortMenu();
- if (gameState == GameState.COUNTDOWN)
- viewManager.stopCountdown();
- gameState = GameState.PAUSED;
- }
-
- public void setRunning() {
- gameState = GameState.RUNNING;
- }
-
- private void addTool(float x, float y) {
- try {
- sounds.playSound(currentTool.getPlacingSound());
- scene.addTool(currentTool, x, y);
- } catch (Exception e) {
- onException(e);
- }
- }
-
- public void onGameOver(boolean playerExplode) {
- if (playerExplode) {
- scene.remove(player);
- DestroyEffect.EXPLOSION.createEffect(particleSystem, player.getPosition(),
- new Vector(player.getWidth(), player.getHeight())).start();
- }
- gameState = GameState.GAME_OVER;
- viewManager.showMessage(false, MessageType.GAME_OVER);
- }
-
- private void onGoalReached() {
- gameState = GameState.LEVEL_FINISHED;
- if (!level.isFinished())
- user.gainLvFinishedEp();
- level.setFinished(true);
-
- for (int i = 0; i <= 2; i++) {
- if (collectedStars.contains(i)) {
- level.setStarCollected(i, true);
- user.onStarCollected();
- }
- }
-
- if (energyCollected) {
- level.setEnergyCollected(true);
- user.onEnergyCollected();
- }
-
- viewManager.showMessage(levelPack.isLastLevel(level), MessageType.WIN);
-
- dataStorageHandler.writeLevelProgress(level);
- Level nextLevel = levelPack.getNextLevel(level);
- if (nextLevel != null) {
- nextLevel.setLocked(false);
- dataStorageHandler.writeLevelProgress(nextLevel);
- } else {
- LevelPack nextLevelPack = levelManager.getNextLevelPack(levelPack);
- if (nextLevelPack != null) {
- nextLevelPack.setLocked(false);
- dataStorageHandler.writeLevelPackLocked(nextLevelPack);
- }
- }
- dataStorageHandler.writeUserData(user);
- }
-
- public void onStarCollision(Star star) {
- scene.onStarCollision(star);
- collectedStars.add(star.getIndex());
- }
-
- public void onEnergyCollision(Energy energy) {
- scene.onEnergyCollision(energy);
- energyCollected = true;
- }
-
- @Override
- public void onException(Exception e) {
- handler.onException(e);
- }
-
- public GameState getGameState() {
- return gameState;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/game/GameScene.java b/app/src/main/java/com/example/julian/endlessroll/main/game/GameScene.java
deleted file mode 100644
index 511a0e5..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/game/GameScene.java
+++ /dev/null
@@ -1,177 +0,0 @@
-package com.example.julian.endlessroll.main.game;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.DestroyEffect;
-import com.example.julian.endlessroll.entities.Energy;
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.entities.Goal;
-import com.example.julian.endlessroll.entities.Obstacle;
-import com.example.julian.endlessroll.entities.Star;
-import com.example.julian.endlessroll.entities.collision.CollisionDetector;
-import com.example.julian.endlessroll.entities.particles.ParticleSystem;
-import com.example.julian.endlessroll.entities.textures.TexturePack;
-import com.example.julian.endlessroll.entities.tools.Bomb;
-import com.example.julian.endlessroll.entities.tools.Tool;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.levels.Level;
-import com.example.julian.endlessroll.levels.ObstacleData;
-import com.example.julian.endlessroll.levels.PositionData;
-import com.example.julian.endlessroll.levels.worlds.World;
-import com.example.julian.endlessroll.main.GameLog;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-
-/**
- * Created by Julian on 27.11.2015.
- */
-public class GameScene extends Scene {
-
- private World currentWorld;
- private CollisionDetector collisionDetector;
- private Goal goal;
-
- private float goalX;
- private List obstacles = Collections.synchronizedList(new ArrayList());
- private List stars = Collections.synchronizedList(new ArrayList());
- private List tools = Collections.synchronizedList(new ArrayList());
- private Energy energy;
-
- public GameScene(TexturePack texturePack, ParticleSystem particleSystem) throws Exception {
- super(texturePack, particleSystem);
- collisionDetector = new CollisionDetector();
-
- goal = new Goal(textures.goal);
- }
-
- public void loadLevel(Level level, World world) throws Exception {
- this.currentWorld = world;
- reset();
- background.changeTexture(world.getBackgroundTexture());
- terrain.loadData(world, level.getTerrainEdge(), level.getTerrainTiles());
- ceiling.loadData(world, level.getCeilingEdge(), level.getCeilingTiles());
- super.add(goal);
- player.init(terrain.getEdge(), level.getStartSpeed(), level.getEndSpeed());
- super.add(player);
- tryToAddEnergy(level);
- for (ObstacleData data : level.getObstacles())
- addObstacle(data);
- for (int i = 0; i < level.getStars().size(); i++) {
- if (level.isStarCollected(i))
- continue;
- addStar(i, level.getStars().get(i));
- }
- goalX = level.getGoalX();
- goal.setGoalX(goalX);
- GameLog.d("Level " + level.getId() + " successfully loaded");
- }
-
- private void tryToAddEnergy(Level level){
- PositionData data = level.getEnergyData();
- if(data != null && !level.isEnergyCollected()) {
- energy = new Energy(textures.energy, data);
- super.add(energy);
- }
- }
-
- private void reset() {
- super.clear();
- obstacles.clear();
- tools.clear();
- energy = null;
- camera.reset();
- background.resetPosition();
- }
-
- public void onStarCollision(Star collisionStar) {
- synchronized (stars) {
- Iterator iter = stars.iterator();
- while (iter.hasNext()) {
- Star star = iter.next();
- if (star.equals(collisionStar)) {
- star.destroy(DestroyEffect.STAR_EXPLOSION);
- iter.remove();
- }
- }
- }
- }
-
- public void onEnergyCollision(Energy energy){
- energy.destroy(DestroyEffect.ENERGY_COLLECT);
- }
-
- public void addObstacle(ObstacleData data) {
- Obstacle obstacle = new Obstacle(currentWorld, data, terrain.getEdge());
- super.add(obstacle);
- obstacles.add(obstacle);
- }
-
- public void addStar(int index, PositionData data) {
- Star star = new Star(index, textures.star, data);
- super.add(star);
- stars.add(star);
- }
-
- public void addTool(ToolType type, float screenX, float screenY) throws Exception {
- Vector position = calcWorldFromScreenCoords(screenX, screenY);
- Tool tool = type.newInstance(position, particleSystem);
- if (tool == null)
- throw new Exception("Current ToolType(" + type + ") returns null at method newInstance()");
- super.add(tool);
- tools.add(tool);
- }
-
-
- @Override
- public void update(Timer timer) {
- super.update(timer);
- player.setSpeedByProgress(player.getProgress() / goalX);
- synchronized (tools) {
- for (Tool tool : tools) {
- if (tool instanceof Bomb) {
- Bomb bomb = (Bomb) tool;
- if (bomb.isExploding())
- bomb.explode(obstacles, collisionDetector);
- }
- }
- }
-
- }
-
- @Override
- protected void removeEntityFromAllLists(Entity entity) {
- GameLog.i("REMOVE FROM ALL LISTS");
- if (!entity.isDestroyed())
- entity.destroy(null);
- if (entity instanceof Tool)
- tools.remove(entity);
- if (entity instanceof Obstacle)
- obstacles.remove(entity);
- }
-
- public synchronized List getTools() {
- return tools;
- }
-
- public synchronized List getObstacles() {
- return obstacles;
- }
-
- public synchronized List getStars() {
- return stars;
- }
-
- public Energy getEnergy() {
- return energy;
- }
-
- public boolean hasEnergy(){
- return energy != null;
- }
-
- public float getGoalX() {
- return goalX;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/game/GameState.java b/app/src/main/java/com/example/julian/endlessroll/main/game/GameState.java
deleted file mode 100644
index 891fd47..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/game/GameState.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.example.julian.endlessroll.main.game;
-
-/**
- * Created by Julian on 02.02.2016.
- */
-public enum GameState {
-
- RUNNING, PAUSED, GAME_OVER, LEVEL_FINISHED, COUNTDOWN
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/game/Physics.java b/app/src/main/java/com/example/julian/endlessroll/main/game/Physics.java
deleted file mode 100644
index 62f8786..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/game/Physics.java
+++ /dev/null
@@ -1,183 +0,0 @@
-package com.example.julian.endlessroll.main.game;
-
-import android.support.annotation.Nullable;
-
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.entities.Obstacle;
-import com.example.julian.endlessroll.entities.Star;
-import com.example.julian.endlessroll.entities.collision.CollisionDetector;
-import com.example.julian.endlessroll.entities.collision.collisionData.EntityCollisionData;
-import com.example.julian.endlessroll.entities.collision.collisionData.ObstacleCollisionData;
-import com.example.julian.endlessroll.entities.collision.collisionData.PlayerCollisionData;
-import com.example.julian.endlessroll.entities.collision.collisionData.ToolCollisionData;
-import com.example.julian.endlessroll.entities.collision.geometry.Circle;
-import com.example.julian.endlessroll.entities.tileLists.Ceiling;
-import com.example.julian.endlessroll.entities.tileLists.Terrain;
-import com.example.julian.endlessroll.entities.tileLists.Tile;
-import com.example.julian.endlessroll.entities.tools.Bomb;
-import com.example.julian.endlessroll.entities.tools.Tool;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * Created by Julian on 27.11.2015.
- */
-public class Physics {
-
- public final float GRAVITY_FORCE = .0000025f;
- private CollisionDetector detector;
-
- public Physics() {
- detector = new CollisionDetector();
- }
-
- public void applyGravity(GameScene scene, Timer timer) {
- float gravity = GRAVITY_FORCE * timer.getFrameTimeSeconds();
-
- scene.getPlayer().getMovement().y -= gravity;
- synchronized (scene.getTools()) {
- for (Tool tool : scene.getTools()) {
- if (tool.isFloating())
- continue;
- if (tool instanceof Bomb) {
- for (Obstacle obstacle : scene.getObstacles()) {
- if (detector.quadQuadCollision(obstacle, tool)) {
- tool.setFloating(true);
- tool.getMovement().y = 0;
- break;
- }
- }
- if (tool.isFloating())
- continue;
- }
- float terrainEdge = getTerrainEdge(tool, scene.getTerrain());
- Obstacle toolIsOver = getObstacleToolIsOver(tool, scene.getObstacles());
-
- float orientingHeight = terrainEdge;
- if (toolIsOver != null) {
- if (toolIsOver.getBottomEdge() < tool.getTopEdge())
- orientingHeight = Math.max(toolIsOver.getTopEdge(), terrainEdge);
- else {
- orientingHeight = terrainEdge;
- }
- }
-
- if (tool.getBottomEdge() > orientingHeight) {
- tool.getMovement().y -= gravity * 2;
- } else {
- tool.getMovement().y = 0;
- tool.setToTerrain(orientingHeight);
- }
- }
- }
- }
-
- @Nullable
- private Obstacle getObstacleToolIsOver(Entity tool, List obstacles) {
- Map isOver = new HashMap<>();
- synchronized (obstacles) {
- for (Obstacle obstacle : obstacles) {
- boolean toolVertexInObstacleEdge = (tool.getLeftEdge() >= obstacle.getLeftEdge() && tool.getLeftEdge() <= obstacle.getRightEdge()) || (tool.getRightEdge() <= obstacle.getRightEdge() && tool.getRightEdge() >= obstacle.getLeftEdge());
- boolean obstacleVertexInToolEdge = (obstacle.getLeftEdge() >= tool.getLeftEdge() && obstacle.getLeftEdge() <= tool.getRightEdge()) || (obstacle.getRightEdge() <= tool.getRightEdge() && obstacle.getRightEdge() >= tool.getLeftEdge());
- if (toolVertexInObstacleEdge || obstacleVertexInToolEdge)
- isOver.put(obstacle.getTopEdge(), obstacle);
- }
- }
- float max = -100;
- for (float height : isOver.keySet()) {
- if (isOver.get(height).getBottomEdge() < tool.getTopEdge()) {
- max = Math.max(max, height);
- }
- }
- if (max != -100)
- return isOver.get(max);
- return null;
- }
-
- private float getTerrainEdge(Entity tool, Terrain terrain) {
- for (Tile instance : terrain) {
- if ((tool.getLeftEdge() >= instance.getLeftEdge() && tool.getLeftEdge() <= instance.getRightEdge())
- || (tool.getRightEdge() <= instance.getRightEdge() && tool.getRightEdge() >= instance.getLeftEdge())
- || (instance.getLeftEdge() >= tool.getLeftEdge() && instance.getLeftEdge() <= tool.getRightEdge())
- || (instance.getRightEdge() <= tool.getRightEdge() && instance.getRightEdge() >= tool.getLeftEdge()))
- return terrain.getEdge();
- }
- return -10;
- }
-
- public PlayerCollisionData getPlayerCollisionData(GameScene scene) {
- EntityCollisionData terrainData = playerCollidesWithTerrain(scene);
- EntityCollisionData ceilingData = playerCollidesWithCeiling(scene);
- ObstacleCollisionData obstacleData = playerCollidesWithObstacle(scene);
- ToolCollisionData toolData = playerCollidesWithTool(scene);
- EntityCollisionData starData = playerCollidesWithStar(scene);
- EntityCollisionData energyData = playerCollidesWithEnergy(scene);
- return new PlayerCollisionData(terrainData, ceilingData, obstacleData, toolData, starData, energyData);
- }
-
- private EntityCollisionData playerCollidesWithTerrain(GameScene scene) {
- Terrain terrain = scene.getTerrain();
- for (Tile terrainTile : terrain) {
- EntityCollisionData data = detector.playerEntityCollision(scene.getPlayer(), terrainTile);
- if (data.isCollision())
- return data;
- }
- return new EntityCollisionData(null, null);
- }
-
- private EntityCollisionData playerCollidesWithCeiling(GameScene scene) {
- Ceiling ceiling = scene.getCeiling();
- for (Tile ceilingTile : ceiling) {
- EntityCollisionData data = detector.playerEntityCollision(scene.getPlayer(), ceilingTile);
- if (data.isCollision())
- return data;
- }
- return new EntityCollisionData(null, null);
- }
-
- private ObstacleCollisionData playerCollidesWithObstacle(GameScene scene) {
- List collisions = new ArrayList<>();
- synchronized (scene.getObstacles()) {
- for (Obstacle obstacle : scene.getObstacles()) {
- EntityCollisionData data = detector.playerEntityCollision(scene.getPlayer(), obstacle);
- if (data.isCollision())
- collisions.add(data);
- }
- }
- return new ObstacleCollisionData(collisions);
- }
-
- private ToolCollisionData playerCollidesWithTool(GameScene scene) {
- List tools = new ArrayList<>();
- Circle circle = new Circle(scene.getPlayer());
- synchronized (scene.getTools()) {
- for (Tool tool : scene.getTools()) {
- if (detector.circleToolCollision(circle, tool.getCollisionBounds()))
- tools.add(tool);
- }
- }
- return new ToolCollisionData(tools);
- }
-
- private EntityCollisionData playerCollidesWithStar(GameScene scene) {
- synchronized (scene.getStars()) {
- for (Star star : scene.getStars()) {
- EntityCollisionData data = detector.playerEntityCollision(scene.getPlayer(), star);
- if (data.isCollision())
- return data;
- }
- }
- return new EntityCollisionData(null, null);
- }
-
- private EntityCollisionData playerCollidesWithEnergy(GameScene scene) {
- if (scene.hasEnergy()) {
- EntityCollisionData data = detector.playerEntityCollision(scene.getPlayer(), scene.getEnergy());
- return data;
- } else
- return new EntityCollisionData(null, null);
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/game/Scene.java b/app/src/main/java/com/example/julian/endlessroll/main/game/Scene.java
deleted file mode 100644
index eb81f8f..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/game/Scene.java
+++ /dev/null
@@ -1,140 +0,0 @@
-package com.example.julian.endlessroll.main.game;
-
-import com.example.julian.endlessroll.data.SynchronizedArrayList;
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.AnimatedEntity;
-import com.example.julian.endlessroll.entities.Background;
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.entities.Obstacle;
-import com.example.julian.endlessroll.entities.Player;
-import com.example.julian.endlessroll.entities.particles.ParticleSystem;
-import com.example.julian.endlessroll.entities.textures.TexturePack;
-import com.example.julian.endlessroll.entities.tileLists.Ceiling;
-import com.example.julian.endlessroll.entities.tileLists.Terrain;
-import com.example.julian.endlessroll.levels.worlds.World;
-
-import java.util.Iterator;
-
-/**
- * Created by Julian on 20.07.2016.
- */
-public abstract class Scene extends SynchronizedArrayList {
-
- protected Camera camera;
- private Vector screenSize;
- private Entity playerArrow;
-
- protected ParticleSystem particleSystem;
- protected TexturePack textures;
- protected Background background;
- protected Terrain terrain;
- protected Ceiling ceiling;
- protected Player player;
-
- public Scene(TexturePack texturePack, ParticleSystem particleSystem) {
- this.particleSystem = particleSystem;
- setTexturePack(texturePack);
- camera = new Camera();
- playerArrow = new Entity(textures.playerArrow, new Vector(0, 0.9f), .2f, .2f);
- background = new Background(World.GRASSLANDS.getBackgroundTexture());
- terrain = new Terrain(World.GRASSLANDS.getTerrainTexture());
- ceiling = new Ceiling(World.GRASSLANDS.getTerrainTexture());
- player = new Player(textures.player);
- }
-
- public void setTexturePack(TexturePack texturePack) {
- this.textures = texturePack;
- }
-
- public void update(Timer timer) {
- synchronized (this) {
- Iterator iterator = super.iterator();
- while (iterator.hasNext()) {
- Entity entity = iterator.next();
- if(entity instanceof AnimatedEntity)
- ((AnimatedEntity) entity).update(timer);
- Vector movement = entity.getMovement();
- Vector finalMovement = new Vector(movement).mul(timer.getFrameTimeSeconds());
- entity.move(finalMovement);
- if (entity instanceof Obstacle) {
- Obstacle obstacle = (Obstacle) entity;
- if (obstacle.isMoving())
- obstacle.moveWithMoveComponent(timer.getFrameTimeSeconds());
- }
- if (entity.isDestroyed() && entity.getDestroyEffect() != null)
- entity.getDestroyEffect().createEffect(particleSystem, new Vector(entity.getPosition()), new Vector(entity.getWidth(), entity.getHeight())).start();
- if (entity.equals(player))
- moveEnviroment(finalMovement.x);
- else if (entity.getRightEdge() - camera.getX() < -3f || entity.isDestroyed()) {
- iterator.remove();
- removeEntityFromAllLists(entity);
- }
- }
- }
-
- if (player.getPosition().y >= player.RADIUS + 1 + camera.getY()) {
- playerArrow.getPosition().x = player.getPosition().x;
- playerArrow.getPosition().y = camera.getY() + 0.9f;
- if (!super.contains(playerArrow)) {
- super.add(playerArrow);
- }
- } else super.remove(playerArrow);
- }
-
- @Override
- public synchronized boolean remove(Object object) {
- removeEntityFromAllLists((Entity) object);
- return super.remove(object);
- }
-
- protected abstract void removeEntityFromAllLists(Entity entity);
-
- private void moveEnviroment(float x) {
- camera.moveX(x);
- background.move(x * 0.95f, camera.getX());
- terrain.update(camera.getX());
- ceiling.update(camera.getX());
- }
-
- protected Vector calcWorldFromScreenCoords(float screenX, float screenY) throws Exception {
- if (screenSize == null)
- throw new Exception("ScreenSize not set");
- float glCoordWidth = (2f * screenSize.x / screenSize.y);
- float x = ((screenX / screenSize.x) * 2f - 1f) * glCoordWidth / 2;
- x += camera.getX();
- float y = -((screenY / screenSize.y) * 2f - 1f);
- return new Vector(x, y);
- }
-
- public void setScreenSize(Vector screenSize) {
- this.screenSize = screenSize;
- }
-
- public synchronized Background getBackground() {
- return background;
- }
-
- public synchronized Terrain getTerrain() {
- return terrain;
- }
-
- public synchronized Ceiling getCeiling() {
- return ceiling;
- }
-
- public Player getPlayer() {
- return player;
- }
-
- public TexturePack getTextures() {
- return textures;
- }
-
- public ParticleSystem getParticleSystem() {
- return particleSystem;
- }
-
- public Camera getCamera() {
- return camera;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/game/StartScene.java b/app/src/main/java/com/example/julian/endlessroll/main/game/StartScene.java
deleted file mode 100644
index 00342e3..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/game/StartScene.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.example.julian.endlessroll.main.game;
-
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.entities.particles.ParticleSystem;
-import com.example.julian.endlessroll.entities.textures.TexturePack;
-import com.example.julian.endlessroll.levels.worlds.World;
-
-public class StartScene extends Scene {
-
- public StartScene(TexturePack texturePack, ParticleSystem particleSystem) {
- super(texturePack, particleSystem);
- terrain.createEndless(World.ICY_MOUNTAINS, -.8f);
- player.init(terrain.getEdge(), 0.5f, 0.5f);
- super.add(player);
- }
-
- @Override
- protected void removeEntityFromAllLists(Entity entity) {
- }
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/game/Timer.java b/app/src/main/java/com/example/julian/endlessroll/main/game/Timer.java
deleted file mode 100644
index aa0a32d..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/game/Timer.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package com.example.julian.endlessroll.main.game;
-
-/**
- * Created by Julian on 22.11.2015.
- */
-public class Timer {
-
- private long lastFpsTime;
- private int fpsCounter;
- private int fps;
-
- private long lastTime;
- private long delta;
-
-
- public Timer() {
- lastTime = System.currentTimeMillis();
- lastFpsTime = lastTime;
- }
-
- public void update() {
- long currentTime = System.currentTimeMillis();
- delta = currentTime - lastTime;
- lastTime = currentTime;
-
- fpsCounter++;
- if (currentTime - lastFpsTime > 1000) {
- fps = fpsCounter;
- lastFpsTime += 1000;
- fpsCounter = 0;
- }
- }
-
- public float getFrameTimeSeconds() {
- return delta;
- }
-
- public int getFps() {
- return fps;
- }
-
- public long getCurrentTime() {
- return System.currentTimeMillis();
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/screens/GLScreen.java b/app/src/main/java/com/example/julian/endlessroll/main/screens/GLScreen.java
deleted file mode 100644
index 22ff752..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/screens/GLScreen.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.example.julian.endlessroll.main.screens;
-
-import android.content.Context;
-import android.support.annotation.LayoutRes;
-import android.view.ViewGroup;
-
-import com.example.julian.endlessroll.main.MyGlSurfaceView;
-
-/**
- * Created by Julian on 30.07.2016.
- */
-public abstract class GLScreen extends Screen {
-
- protected MyGlSurfaceView glView;
-
- public GLScreen(ScreenType type, Context context, @LayoutRes int layoutId, MyGlSurfaceView glView) {
- super(type, context, layoutId);
- this.glView = glView;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/screens/GameScreen.java b/app/src/main/java/com/example/julian/endlessroll/main/screens/GameScreen.java
deleted file mode 100644
index 0a81782..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/screens/GameScreen.java
+++ /dev/null
@@ -1,88 +0,0 @@
-package com.example.julian.endlessroll.main.screens;
-
-import android.widget.RelativeLayout;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.levels.Level;
-import com.example.julian.endlessroll.levels.LevelPack;
-import com.example.julian.endlessroll.main.GameActivity;
-import com.example.julian.endlessroll.main.GameHandler;
-import com.example.julian.endlessroll.main.MyGlSurfaceView;
-import com.example.julian.endlessroll.main.game.Game;
-import com.example.julian.endlessroll.main.tutorial.BreakPoint;
-import com.example.julian.endlessroll.views.TopBarData;
-
-import java.util.List;
-
-/**
- * Created by Julian on 08.02.2016.
- */
-public class GameScreen extends GLScreen {
-
- private GameActivity activity;
- private Game game;
-
- public GameScreen(TopBarData topBarData, MyGlSurfaceView glSurfaceView) throws Exception {
- super(ScreenType.GAME, topBarData.getGameActivity(), R.layout.game, glSurfaceView);
- this.activity = topBarData.getGameActivity();
- game = new Game(gameViewHandler, topBarData);
- glView.addRendering(game);
- }
-
- @Override
- public void prepareToBeShown() {
- glView.setCurrentRendering(game);
- game.resetViews();
- }
-
- public void onPause() {
- game.tryToPause();
- }
-
- public void onResume(){
- game.setRunning();
- }
-
- @Override
- public void onBackKeyDown() {
- game.tryToPause();
- }
-
- public void startGame(LevelPack levelPack, Level level) {
- game.startGame(levelPack, level);
- }
-
- public GameHandler getGameViewHandler() {
- return gameViewHandler;
- }
-
- private GameHandler gameViewHandler = new GameHandler() {
-
- @Override
- public void startInUiThread(Runnable runnable) {
- activity.runOnUiThread(runnable);
- }
-
- @Override
- public void toScreen(ScreenType screen) {
- glView.setCurrentRendering(null);
- activity.flipToScreen(screen);
- }
-
- @Override
- public RelativeLayout getRootLayout() {
- return layout;
- }
-
- @Override
- public void showTutorialScreen(List breakPoints) {
- activity.showTutorialScreen(breakPoints);
- }
-
- @Override
- public void onException(Exception e) {
- activity.onException(e);
- }
- };
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/screens/LevelsScreen.java b/app/src/main/java/com/example/julian/endlessroll/main/screens/LevelsScreen.java
deleted file mode 100644
index 7cd6823..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/screens/LevelsScreen.java
+++ /dev/null
@@ -1,91 +0,0 @@
-package com.example.julian.endlessroll.main.screens;
-
-import android.content.Context;
-import android.graphics.Typeface;
-import android.view.View;
-import android.widget.LinearLayout;
-import android.widget.RelativeLayout;
-import android.widget.TableRow;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.levels.Level;
-import com.example.julian.endlessroll.levels.LevelPack;
-import com.example.julian.endlessroll.main.GameActivity;
-import com.example.julian.endlessroll.views.LevelButton;
-import com.example.julian.endlessroll.views.TopBar;
-import com.example.julian.endlessroll.views.TopBarData;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Created by Julian on 23.04.2016.
- */
-public class LevelsScreen extends Screen implements View.OnClickListener {
-
- private LevelPack levelPack;
- private Typeface typeface;
- private GameActivity activity;
- private Map levelButtons = new HashMap<>();
-
- private TopBar topBar;
- private TableRow topRow;
- private TableRow bottomRow;
-
- public LevelsScreen(TopBarData topBarData) {
- super(ScreenType.LEVELS, topBarData.getGameActivity(), R.layout.levels);
- this.activity = topBarData.getGameActivity();
- this.typeface = topBarData.getTypeface();
- topBar = new TopBar(topBarData, ScreenType.LEVELS, (RelativeLayout) layout.findViewById(R.id.levels_topbar));
- topRow = (TableRow) layout.findViewById(R.id.levels_topRow);
- bottomRow = (TableRow) layout.findViewById(R.id.levels_bottomRow);
- }
-
- public void createList(LevelPack levelPack) {
- this.levelPack = levelPack;
- topRow.removeAllViews();
- bottomRow.removeAllViews();
- levelButtons.clear();
- int levelCount = levelPack.getLevels().size();
- for (Level level : levelPack.getLevels())
- createButton(activity, level, levelCount);
- }
-
- private void createButton(Context context, Level level, int levelCount) {
- int levelNumber = level.getId();
- LevelButton button = new LevelButton(context, typeface, this, levelNumber, level.isLocked());
- button.showCollectedCurrency(level.getCollectedStars(), level.isEnergyCollected());
- levelButtons.put(levelNumber, button);
- int halfLevelCount = levelCount / 2;
- if (levelCount % 2 == 1)
- halfLevelCount++;
-
- if (levelNumber <= halfLevelCount)
- topRow.addView(button);
- else
- bottomRow.addView(button);
- }
-
- @Override
- public void prepareToBeShown() {
- if (levelPack != null)
- createList(levelPack);
- topBar.update();
- }
-
- @Override
- public void onBackKeyDown() {
- activity.flipToScreen(ScreenType.WORLDS);
- }
-
- @Override
- public void onClick(View v) {
- for (int levelNumber : levelButtons.keySet()) {
- LevelButton button = levelButtons.get(levelNumber);
- if (button.equals(v) && !button.isLocked()) {
- Level level = levelPack.getLevel(levelNumber);
- activity.startGame(levelPack, level);
- }
- }
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/screens/Screen.java b/app/src/main/java/com/example/julian/endlessroll/main/screens/Screen.java
deleted file mode 100644
index 428babc..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/screens/Screen.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package com.example.julian.endlessroll.main.screens;
-
-import android.content.Context;
-import android.support.annotation.LayoutRes;
-import android.view.LayoutInflater;
-import android.view.ViewGroup;
-
-/**
- * Created by Julian on 13.02.2016.
- */
-public abstract class Screen {
-
- public enum ScreenType {
- NONE(-1), START(0), WORLDS(1), LEVELS(2), GAME(3), TOOL_SHOP(4);
-
- private int inFlipperPosition;
-
- ScreenType(int inFlipperPosition) {
- this.inFlipperPosition = inFlipperPosition;
- }
-
- public int getInFlipperPosition() {
- return inFlipperPosition;
- }
- }
-
- private ScreenType type;
- protected V layout;
-
- public Screen(ScreenType type, Context context, @LayoutRes int layoutId) {
- this.type = type;
- layout = inflateLayout(context, layoutId);
- }
-
- private V inflateLayout(Context context, @LayoutRes int layoutId) {
- LayoutInflater inflater = LayoutInflater.from(context);
- return (V) inflater.inflate(layoutId, null);
- }
-
- public abstract void prepareToBeShown();
-
- public abstract void onBackKeyDown();
-
- public ScreenType getType() {
- return type;
- }
-
- public V get() {
- return layout;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/screens/ScreenFlipper.java b/app/src/main/java/com/example/julian/endlessroll/main/screens/ScreenFlipper.java
deleted file mode 100644
index fe2c462..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/screens/ScreenFlipper.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.example.julian.endlessroll.main.screens;
-
-import android.content.Context;
-import android.widget.ViewFlipper;
-
-/**
- * Created by Julian on 13.02.2016.
- */
-public class ScreenFlipper extends ViewFlipper {
-
- private Screen[] screens;
- private Screen currentScreen;
-
- //TODO: animation?
- public ScreenFlipper(Context context, Screen... screens) {
- super(context);
- this.screens = screens;
- for (Screen screen : screens)
- addView(screen);
- currentScreen = screens[0];
- showScreen(currentScreen.getType());
- }
-
- private void addView(Screen screen) {
- super.addView(screen.get(), screen.getType().getInFlipperPosition());
- }
-
- public Screen getCurrentScreen() {
- return currentScreen;
- }
-
- public void showScreen(Screen.ScreenType type) {
- Screen screen = findScreen(type);
- screen.prepareToBeShown();
-
- int positionDifference = type.getInFlipperPosition() - currentScreen.getType().getInFlipperPosition();
- if (positionDifference < 0)
- for (; positionDifference != 0; positionDifference++)
- super.showPrevious();
- else if (positionDifference > 0)
- for (; positionDifference != 0; positionDifference--)
- super.showNext();
- currentScreen = screen;
- }
-
- private Screen findScreen(Screen.ScreenType type) {
- for (Screen screen : screens)
- if (screen.getType().equals(type)) {
- return screen;
- }
- return null;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/screens/StartScreen.java b/app/src/main/java/com/example/julian/endlessroll/main/screens/StartScreen.java
deleted file mode 100644
index fc10f7c..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/screens/StartScreen.java
+++ /dev/null
@@ -1,93 +0,0 @@
-package com.example.julian.endlessroll.main.screens;
-
-import android.graphics.Typeface;
-import android.support.annotation.IdRes;
-import android.view.View;
-import android.view.animation.AnimationUtils;
-import android.widget.Button;
-import android.widget.RelativeLayout;
-import android.widget.ToggleButton;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.levels.LevelManager;
-import com.example.julian.endlessroll.main.GameActivity;
-import com.example.julian.endlessroll.main.MyGlSurfaceView;
-import com.example.julian.endlessroll.user.User;
-import com.example.julian.endlessroll.rendering.Rendering;
-import com.example.julian.endlessroll.sounds.SoundManager;
-
-/**
- * Created by Julian on 07.07.2016.
- */
-public class StartScreen extends GLScreen implements View.OnClickListener {
-
- private GameActivity activity;
- private SoundManager soundManager;
- private LevelManager levelManager;
- private User user;
- private Rendering rendering;
-
- private Button play;
- private Button lvUp;
- private Button lv100;
- private ToggleButton soundToggle;
-
- public StartScreen(GameActivity activity, MyGlSurfaceView glSurfaceView, SoundManager soundManager, LevelManager levelManager, User user, Typeface typeface) throws Exception {
- super(ScreenType.START, activity, R.layout.start_screen, glSurfaceView);
- this.activity = activity;
- this.soundManager = soundManager;
- this.levelManager = levelManager;
- this.user = user;
-
- play = createButton(R.id.startscreen_play, typeface);
- play.startAnimation(AnimationUtils.loadAnimation(activity, R.anim.rotate));
- lvUp = createButton(R.id.startscreen_comingsoon, typeface);
- lv100 = createButton(R.id.startscreen_maxcheat, typeface);
- soundToggle = (ToggleButton) layout.findViewById(R.id.startscreen_sound);
- soundToggle.setTypeface(typeface);
- soundToggle.setOnClickListener(this);
- soundToggle.setChecked(soundManager.isSoundOn());
-
- rendering = new StartScreenRendering(activity);
- glView.addRendering(rendering);
- }
-
- private Button createButton(@IdRes int id, Typeface typeface) {
- Button button = (Button) layout.findViewById(id);
- button.setTypeface(typeface);
- button.setOnClickListener(this);
- return button;
- }
-
- @Override
- public void prepareToBeShown() {
- glView.setCurrentRendering(rendering);
- if (soundToggle != null)
- soundToggle.setChecked(soundManager.isSoundOn());
- }
-
- @Override
- public void onBackKeyDown() {
- activity.finish();
- }
-
- @Override
- public void onClick(View v) {
- if (v.equals(play)) {
- activity.flipToScreen(ScreenType.WORLDS);
- glView.setCurrentRendering(null);
- } else if (v.equals(soundToggle)) {
- soundManager.setSoundOn(soundToggle.isChecked());
- } else if (v.equals(lv100)) {
- //user.setLevel(100);
-// user.setStarCount(100);
- levelManager.unlockAllLevels();
- levelManager.unlockAllPacks();
- user.gainEp(90);
- } else if (v.equals(lvUp)) {
- user.gainEp(100);
- }
- }
-
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/screens/StartScreenRendering.java b/app/src/main/java/com/example/julian/endlessroll/main/screens/StartScreenRendering.java
deleted file mode 100644
index 2b6be67..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/screens/StartScreenRendering.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package com.example.julian.endlessroll.main.screens;
-
-import android.view.MotionEvent;
-import android.view.View;
-
-import com.example.julian.endlessroll.entities.particles.ParticleSystem;
-import com.example.julian.endlessroll.entities.textures.TexturePack;
-import com.example.julian.endlessroll.main.GameActivity;
-import com.example.julian.endlessroll.main.game.StartScene;
-import com.example.julian.endlessroll.main.game.Timer;
-import com.example.julian.endlessroll.rendering.Rendering;
-
-/**
- * Created by Julian on 20.07.2016.
- */
-public class StartScreenRendering extends Rendering {
-
- private Timer timer;
- private ParticleSystem particleSystem;
-
- public StartScreenRendering(GameActivity gameActivity) throws Exception {
- super(gameActivity);
- this.particleSystem = new ParticleSystem(gameActivity);
- }
-
- @Override
- public StartScene init(TexturePack texturePack, Timer timer, boolean isFirstTime) {
- this.timer = timer;
- if (isFirstTime)
- scene = new StartScene(texturePack, particleSystem);
- else
- scene.setTexturePack(texturePack);
- try {
- particleSystem.loadTextures();
- } catch (Exception e) {
- }
- return scene;
- }
-
- @Override
- public void update() {
- particleSystem.update(timer);
- scene.update(timer);
- }
-
- @Override
- public boolean onTouch(View v, MotionEvent event) {
- return false;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/screens/ToolShopScreen.java b/app/src/main/java/com/example/julian/endlessroll/main/screens/ToolShopScreen.java
deleted file mode 100644
index a85f4b1..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/screens/ToolShopScreen.java
+++ /dev/null
@@ -1,166 +0,0 @@
-package com.example.julian.endlessroll.main.screens;
-
-import android.view.MotionEvent;
-import android.view.View;
-import android.view.ViewGroup;
-import android.widget.Button;
-import android.widget.FrameLayout;
-import android.widget.HorizontalScrollView;
-import android.widget.ImageView;
-import android.widget.LinearLayout;
-import android.widget.RelativeLayout;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.user.ToolSlotSettings;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.user.LevelUpBounties;
-import com.example.julian.endlessroll.main.DataStorageHandler;
-import com.example.julian.endlessroll.main.GameActivity;
-import com.example.julian.endlessroll.user.User;
-import com.example.julian.endlessroll.views.ToolOfferSlot;
-import com.example.julian.endlessroll.views.TopBar;
-import com.example.julian.endlessroll.views.TopBarData;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 08.07.2016.
- */
-public class ToolShopScreen extends Screen implements View.OnClickListener, View.OnTouchListener {
-
- private LevelUpBounties levelUpBounties;
- private GameActivity activity;
- private ScreenType caller;
- private ToolSlotSettings slotSettings;
- private User user;
- private DataStorageHandler dataStorageHandler;
- private ToolOfferSlot selectedToolOfferSlot;
-
- private TopBar topBar;
- private Button priceButton;
- private ImageView toolSlot1;
- private ImageView toolSlot2;
- private ImageView toolSlot3;
- private ImageView toolSlot4;
- private HorizontalScrollView scrollView;
- private LinearLayout toolOfferLayout;
- private List toolOfferSlots = new ArrayList<>();
-
- public ToolShopScreen(TopBarData topBarData) {
- super(ScreenType.TOOL_SHOP, topBarData.getGameActivity(), R.layout.toolshop);
- this.levelUpBounties = new LevelUpBounties(0);
- this.activity = topBarData.getGameActivity();
- this.user = topBarData.getUser();
- this.slotSettings = user.getToolSlotSettings();
- this.dataStorageHandler = topBarData.getDataStorageHandler();
- layout.setOnClickListener(this);
- topBar = new TopBar(topBarData, ScreenType.TOOL_SHOP, (RelativeLayout) layout.findViewById(R.id.toolshop_topbar));
- priceButton = (Button) layout.findViewById(R.id.toolshop_price_button);
- priceButton.setOnClickListener(this);
- priceButton.setTypeface(topBarData.getTypeface());
- toolSlot1 = getToolSlotView(R.id.toolshop_slot1);
- toolSlot2 = getToolSlotView(R.id.toolshop_slot2);
- toolSlot3 = getToolSlotView(R.id.toolshop_slot3);
- toolSlot4 = getToolSlotView(R.id.toolshop_slot4);
- scrollView = (HorizontalScrollView) layout.findViewById(R.id.toolshop_scrollview);
- scrollView.setOnTouchListener(this);
- toolOfferLayout = (LinearLayout) layout.findViewById(R.id.toolshop_tool_offer_layout);
- LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
- params.setMargins(20, 0, 20, 0);
- for (ToolType type : ToolType.values()) {
- if (type != ToolType.NONE) {
- ToolOfferSlot slot = new ToolOfferSlot(this, activity, topBarData.getTypeface(), type);
- toolOfferSlots.add(slot);
- toolOfferLayout.addView(slot.getLayout(), params);
- }
- }
- }
-
- public void showPriceButton(ToolOfferSlot slot) {
- setSelectedToolOfferSlot(slot);
- int[] slotLocation = new int[2];
- slot.getImage().getLocationOnScreen(slotLocation);
- priceButton.setX(slotLocation[0]);
- priceButton.setY(slotLocation[1] + slot.getImage().getHeight() * 0.75f);
- int costs = slot.getToolType().getCosts();
- priceButton.setText(costs + "");
- priceButton.setEnabled(costs <= user.getStarCount());
- priceButton.setVisibility(View.VISIBLE);
- }
-
- public void setSelectedToolOfferSlot(ToolOfferSlot slot) {
- selectedToolOfferSlot = slot;
- for (ToolOfferSlot offerSlot : toolOfferSlots) {
- if (!offerSlot.equals(slot))
- offerSlot.setSelected(false);
- }
- }
-
- private ImageView getToolSlotView(int id) {
- FrameLayout slotLayout = (FrameLayout) layout.findViewById(id);
- ImageView imageView = (ImageView) slotLayout.findViewById(R.id.toolslot_image);
- imageView.setOnClickListener(this);
- return imageView;
- }
-
- public void setCaller(ScreenType caller) {
- this.caller = caller;
- }
-
- @Override
- public void prepareToBeShown() {
- topBar.update();
- levelUpBounties.loadAllForLevel(user.getLevel());
- slotSettings.unlockSlotsIfLevelReached(levelUpBounties);
- toolSlot1.setImageResource(slotSettings.get(0).getDrawable());
- toolSlot2.setImageResource(slotSettings.get(1).getDrawable());
- toolSlot3.setImageResource(slotSettings.get(2).getDrawable());
- toolSlot4.setImageResource(slotSettings.get(3).getDrawable());
- for (ToolOfferSlot slot : toolOfferSlots) {
- slot.updateIsBought();
- boolean locked = levelUpBounties.isToolLocked(slot.getToolType());
- slot.setLocked(locked);
- if (slot.getToolType() == ToolType.RAMP)
- slot.buy();
- }
- }
-
- @Override
- public void onBackKeyDown() {
- priceButton.setVisibility(View.INVISIBLE);
- activity.flipToScreen(caller);
- }
-
- @Override
- public void onClick(View v) {
- if (v.equals(layout)) {
- priceButton.setVisibility(View.INVISIBLE);
- } else if (v.equals(priceButton)) {
- int costs = selectedToolOfferSlot.getToolType().getCosts();
- topBar.showStarcountDecrease(-costs);
- user.increaseStarCount(-costs, false);
- selectedToolOfferSlot.buy();
- priceButton.setVisibility(View.INVISIBLE);
- topBar.update();
- dataStorageHandler.writeBoughtTools();
- }
- int slot = -1;
- slot = v.equals(toolSlot1) ? 0 : slot;
- slot = v.equals(toolSlot2) ? 1 : slot;
- slot = v.equals(toolSlot3) ? 2 : slot;
- slot = v.equals(toolSlot4) ? 3 : slot;
- if (slot != -1 && !slotSettings.get(slot).isLocked() && selectedToolOfferSlot != null && selectedToolOfferSlot.isBought()) {
- slotSettings.changeToolSlotType(slot, selectedToolOfferSlot.getToolType());
- selectedToolOfferSlot.setSelected(false);
- prepareToBeShown();
- dataStorageHandler.writeUserData(user);
- }
- }
-
- @Override
- public boolean onTouch(View v, MotionEvent event) {
- priceButton.setVisibility(View.INVISIBLE);
- return false;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/screens/WorldsScreen.java b/app/src/main/java/com/example/julian/endlessroll/main/screens/WorldsScreen.java
deleted file mode 100644
index d75e064..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/screens/WorldsScreen.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package com.example.julian.endlessroll.main.screens;
-
-import android.view.View;
-import android.view.ViewGroup;
-import android.widget.LinearLayout;
-import android.widget.RelativeLayout;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.levels.LevelManager;
-import com.example.julian.endlessroll.levels.LevelPack;
-import com.example.julian.endlessroll.main.GameActivity;
-import com.example.julian.endlessroll.views.TopBar;
-import com.example.julian.endlessroll.views.TopBarData;
-import com.example.julian.endlessroll.views.WorldButton;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 07.07.2016.
- */
-public class WorldsScreen extends Screen implements View.OnClickListener {
-
- private LevelManager levelManager;
- private GameActivity activity;
-
- private TopBar topBar;
- private LinearLayout buttonLayout;
- private List worldButtons = new ArrayList<>();
-
- public WorldsScreen(TopBarData topBarData) {
- super(ScreenType.WORLDS, topBarData.getGameActivity(), R.layout.worlds);
- this.activity = topBarData.getGameActivity();
- this.levelManager = topBarData.getLevelManager();
- topBar = new TopBar(topBarData, ScreenType.WORLDS, (RelativeLayout) layout.findViewById(R.id.worlds_topbar));
- buttonLayout = (LinearLayout) layout.findViewById(R.id.worlds_layout);
- LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
- params.setMargins(25, 0, 25, 0);
-
- for (LevelPack levelPack : levelManager) {
- WorldButton button = new WorldButton(activity, topBarData.getTypeface(), this, levelPack);
- buttonLayout.addView(button, params);
- worldButtons.add(button);
- }
- }
-
- @Override
- public void prepareToBeShown() {
- topBar.update();
- for (WorldButton button : worldButtons) {
- button.updateInformation();
- }
- }
-
- @Override
- public void onBackKeyDown() {
- activity.flipToScreen(ScreenType.START);
- }
-
- @Override
- public void onClick(View v) {
- for (WorldButton button : worldButtons) {
- if (v.equals(button) && !button.isLocked()) {
- LevelPack levelPack = button.getLevelPack();
- activity.selectWorld(levelPack);
- activity.flipToScreen(ScreenType.LEVELS);
- }
- }
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/tutorial/BreakPoint.java b/app/src/main/java/com/example/julian/endlessroll/main/tutorial/BreakPoint.java
deleted file mode 100644
index e26f039..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/tutorial/BreakPoint.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.example.julian.endlessroll.main.tutorial;
-
-import android.support.annotation.IdRes;
-import android.support.annotation.LayoutRes;
-import android.view.View;
-
-/**
- * Created by Julian on 14.03.2017.
- */
-
-public class BreakPoint {
-
- private float x;
- private @IdRes int viewId;
-
- public BreakPoint(float x, @IdRes int viewId)
- {
- this.x = x;
- this.viewId = viewId;
- }
-
- public float getX() {
- return x;
- }
-
- public @IdRes int getViewId() {
- return viewId;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/tutorial/Tutorial.java b/app/src/main/java/com/example/julian/endlessroll/main/tutorial/Tutorial.java
deleted file mode 100644
index 91bc43b..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/tutorial/Tutorial.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package com.example.julian.endlessroll.main.tutorial;
-
-import android.util.Log;
-
-import com.example.julian.endlessroll.main.GameLog;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-/**
- * Created by Julian on 14.03.2017.
- */
-
-public class Tutorial {
-
- private int levelId, levelPackId;
- private List breakPoints;
-
- private List currentBreakPointIds = new ArrayList<>();
- private int lastBreakPointId = -1;
- private boolean overNewBreakPoints;
-
- public Tutorial(int levelId, int levelPackId, BreakPoint... breakPoints) {
- this.levelId = levelId;
- this.levelPackId = levelPackId;
- this.breakPoints = Arrays.asList(breakPoints);
- }
-
- public void reset(){
- currentBreakPointIds.clear();
- lastBreakPointId = -1;
- overNewBreakPoints = false;
- }
-
- public void update(float playerProgress) {
- playerProgress *= 2f;
- int nextBreakPoint = lastBreakPointId + 1;
- if (!currentBreakPointIds.isEmpty())
- currentBreakPointIds.clear();
- overNewBreakPoints = false;
-
- while (breakPoints.size() > nextBreakPoint && playerProgress >= breakPoints.get(nextBreakPoint).getX()) {
- currentBreakPointIds.add(nextBreakPoint);
- lastBreakPointId = nextBreakPoint;
- nextBreakPoint++;
- overNewBreakPoints = true;
- }
- }
-
- public boolean isOverNewBreakPoints() {
- return overNewBreakPoints;
- }
-
- public List getCurrentBreakPoints() {
- List list = new ArrayList<>();
- for (int i : currentBreakPointIds) {
- list.add(breakPoints.get(i));
- }
- return list;
- }
-
- public int getLevelId() {
- return levelId;
- }
-
- public int getLevelPackId() {
- return levelPackId;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/tutorial/TutorialManager.java b/app/src/main/java/com/example/julian/endlessroll/main/tutorial/TutorialManager.java
deleted file mode 100644
index 9fd916f..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/tutorial/TutorialManager.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package com.example.julian.endlessroll.main.tutorial;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.levels.Level;
-
-import java.util.Arrays;
-import java.util.List;
-
-/**
- * Created by Julian on 17.03.2017.
- */
-
-public class TutorialManager {
-
- private List tutorials;
-
- public TutorialManager() {
- Tutorial t11 = new Tutorial(1, 1, new BreakPoint(0, R.id.tutorial_welcome),
- new BreakPoint(0, R.id.tutorial_tools),
- new BreakPoint(7, R.id.tutorial_place_ramp),
- new BreakPoint(21, R.id.tutorial_place_ramp_2));
- Tutorial t21 = new Tutorial(2, 1, new BreakPoint(11, R.id.tutorial_ramp_in_air));
-
- tutorials = Arrays.asList(t11, t21);
- }
-
- public void resetTutorials(){
- for(Tutorial tutorial : tutorials)
- tutorial.reset();
- }
-
- public Tutorial getTutorial(Level level) {
- for (Tutorial tutorial : tutorials) {
- if (tutorial.getLevelPackId() == level.getPackId() && tutorial.getLevelId() == level
- .getId())
- return tutorial;
- }
- return null;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/main/tutorial/TutorialView.java b/app/src/main/java/com/example/julian/endlessroll/main/tutorial/TutorialView.java
deleted file mode 100644
index 31233eb..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/main/tutorial/TutorialView.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package com.example.julian.endlessroll.main.tutorial;
-
-import android.view.LayoutInflater;
-import android.view.View;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.main.GameActivity;
-
-import java.util.List;
-
-/**
- * Created by Julian on 24.02.2017.
- */
-
-public class TutorialView implements View.OnClickListener {
-
- private View layout;
- private View currentView;
- private GameActivity activity;
-
- private List breakPoints;
-
- public TutorialView(GameActivity activity) {
- this.activity = activity;
- LayoutInflater inflater = LayoutInflater.from(activity);
- layout = inflater.inflate(R.layout.tutorial, null);
- layout.setVisibility(View.GONE);
- layout.setOnClickListener(this);
- }
-
- public View getLayout() {
- return layout;
- }
-
- public void show(List breakPoints) {
- this.breakPoints = breakPoints;
- showFirstBreakPoint();
- }
-
- private void showFirstBreakPoint(){
- currentView = layout.findViewById(breakPoints.get(0).getViewId());
- currentView.setVisibility(View.VISIBLE);
- layout.setVisibility(View.VISIBLE);
- }
-
- @Override
- public void onClick(View v) {
- breakPoints.remove(0);
- if (!breakPoints.isEmpty()) {
- currentView.setVisibility(View.GONE);
- showFirstBreakPoint();
- } else {
- layout.setVisibility(View.GONE);
- currentView.setVisibility(View.GONE);
- activity.onTutorialViewHidden();
- }
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/Fbo.java b/app/src/main/java/com/example/julian/endlessroll/rendering/Fbo.java
deleted file mode 100644
index d1879a3..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/Fbo.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.example.julian.endlessroll.rendering;
-
-import android.opengl.GLES20;
-
-import javax.microedition.khronos.opengles.GL11;
-
-/**
- * Created by Julian on 06.08.2016.
- */
-public class Fbo {
-
- private int frameBuffer;
- private int texture;
-
- public Fbo(int width, int height) {
- int[] frameBuffers = new int[1];
- GLES20.glGenFramebuffers(1, frameBuffers, 0);
- this.frameBuffer = frameBuffers[0];
- bind();
-
- int[] textures = new int[1];
- GLES20.glGenTextures(1, textures, 0);
- this.texture = textures[0];
- GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texture);
- GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, width, height, 0, GLES20.GL_RGBA, GL11.GL_UNSIGNED_BYTE, null);
- GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);
- GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);
- GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_NONE);
- GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_NONE);
- GLES20.glFramebufferTexture2D(GLES20.GL_FRAMEBUFFER, GLES20.GL_COLOR_ATTACHMENT0, GLES20.GL_TEXTURE_2D, texture, 0);
-
- unbind();
- }
-
- public void bind() {
- GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, frameBuffer);
- }
-
- public void unbind() {
- GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);
- GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, 0);
- }
-
- public int getTexture() {
- return texture;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/Lock.java b/app/src/main/java/com/example/julian/endlessroll/rendering/Lock.java
deleted file mode 100644
index a564c9d..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/Lock.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.example.julian.endlessroll.rendering;
-
-public class Lock {
-
- private boolean isLocked = false;
-
- public synchronized void lock() {
- while (isLocked) {
- try {
- wait();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- isLocked = true;
- }
-
- public synchronized void unlock() {
- isLocked = false;
- notify();
- }
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/MatrixCreator.java b/app/src/main/java/com/example/julian/endlessroll/rendering/MatrixCreator.java
deleted file mode 100644
index 02af2ba..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/MatrixCreator.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package com.example.julian.endlessroll.rendering;
-
-import android.opengl.Matrix;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.main.game.Camera;
-
-/**
- * Created by Julian on 23.11.2015.
- */
-public class MatrixCreator {
-
- private float width, height;
-
- public void setMVPMSize(float width, float height) {
- this.width = width;
- this.height = height;
- }
-
- public float[] createModelViewProjectionMatrix(Camera camera) {
- float[] mvpMatrix = new float[16];
- float[] projectionMatrix = new float[16];
- float[] viewMatrix = new float[16];
-
- float ratio = width / height;
- Matrix.frustumM(projectionMatrix, 0, -ratio + camera.getX(), ratio + camera.getX(), -1 + camera.getY(), 1 + camera.getY(), 1, 2);
- Matrix.setLookAtM(viewMatrix, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0);
- Matrix.multiplyMM(mvpMatrix, 0, projectionMatrix, 0, viewMatrix, 0);
- return mvpMatrix;
- }
-
- public float[] createTransformationMatrix(Entity entity) {
- float width = entity.getWidth();
- float height = entity.getHeight();
- float rotation = entity.getRotation();
- Vector position = entity.getPosition();
- return createTransformationMatrix(width, height, rotation, position);
- }
-
- public float[] createTransformationMatrix(float width, float height, float rotation, Vector position) {
- float[] transformationMatrix = new float[16];
- Matrix.setIdentityM(transformationMatrix, 0);
- Matrix.translateM(transformationMatrix, 0, position.x, position.y, 0);
- Matrix.rotateM(transformationMatrix, 0, rotation, 0, 0, 1);
- Matrix.scaleM(transformationMatrix, 0, width * .5f, height * .5f, 0);
- return transformationMatrix;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/Quad.java b/app/src/main/java/com/example/julian/endlessroll/rendering/Quad.java
deleted file mode 100644
index 747ff06..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/Quad.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package com.example.julian.endlessroll.rendering;
-
-import android.opengl.GLES20;
-
-import java.nio.ByteBuffer;
-import java.nio.ByteOrder;
-import java.nio.FloatBuffer;
-
-/**
- * Created by Julian on 26.11.2015.
- */
-public class Quad {
-
- private FloatBuffer vertexBuffer;
- private FloatBuffer textureBuffer;
-
- private float vertices[] = {1.0f, 1.0f, -1.0f, -1.0f, 1.0f, -1.0f,
- 1.0f, 1.0f, -1.0f, 1.0f, -1.0f, -1.0f};
-
- private float textures[] = {1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f,
- 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f};
-
- public Quad() {
- vertexBuffer = createEmptyFloatBuffer();
- vertexBuffer.put(vertices);
- vertexBuffer.position(0);
-
- textureBuffer = createEmptyFloatBuffer();
- textureBuffer.put(textures);
- textureBuffer.position(0);
- }
-
- private FloatBuffer createEmptyFloatBuffer() {
- ByteBuffer bb = ByteBuffer.allocateDirect(vertices.length * 4);
- bb.order(ByteOrder.nativeOrder());
- return bb.asFloatBuffer();
- }
-
- public void draw() {
- GLES20.glEnableVertexAttribArray(0);
- GLES20.glEnableVertexAttribArray(1);
- GLES20.glVertexAttribPointer(0, 2, GLES20.GL_FLOAT, false, 0, vertexBuffer);
- GLES20.glVertexAttribPointer(1, 2, GLES20.GL_FLOAT, false, 0, textureBuffer);
- GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, vertices.length / 2);
- GLES20.glDisableVertexAttribArray(1);
- GLES20.glDisableVertexAttribArray(0);
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/Rendering.java b/app/src/main/java/com/example/julian/endlessroll/rendering/Rendering.java
deleted file mode 100644
index d06975f..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/Rendering.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package com.example.julian.endlessroll.rendering;
-
-import android.content.Context;
-import android.view.View;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.textures.TexturePack;
-import com.example.julian.endlessroll.main.GameActivity;
-import com.example.julian.endlessroll.main.game.Scene;
-import com.example.julian.endlessroll.main.game.Timer;
-
-/**
- * Created by Julian on 26.11.2015.
- */
-public abstract class Rendering implements View.OnTouchListener {
-
- protected S scene;
- private GameActivity gameActivity;
- private boolean alreadyInitiated = false;
-
- public Rendering(GameActivity gameActivity) {
- this.gameActivity = gameActivity;
- }
-
- public void initiate(TexturePack texturePack, Timer timer) {
- this.scene = init(texturePack, timer, !alreadyInitiated);
- alreadyInitiated = true;
- }
-
- protected abstract S init(TexturePack texturePack, Timer timer, boolean isFirstTime);
-
- public abstract void update();
-
- public void onException(Exception e) {
- gameActivity.onException(e);
- }
-
- public void setScreenSize(int width, int height) {
- if (scene != null)
- scene.setScreenSize(new Vector(width, height));
- }
-
- public Scene getScene() {
- return scene;
- }
-
- public Context getContext() {
- return gameActivity;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/renderer/GameRenderer.java b/app/src/main/java/com/example/julian/endlessroll/rendering/renderer/GameRenderer.java
deleted file mode 100644
index 46c722e..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/renderer/GameRenderer.java
+++ /dev/null
@@ -1,163 +0,0 @@
-package com.example.julian.endlessroll.rendering.renderer;
-
-import android.content.Context;
-import android.opengl.GLES20;
-import android.opengl.GLSurfaceView;
-
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.entities.textures.TexturePack;
-import com.example.julian.endlessroll.entities.tileLists.Tile;
-import com.example.julian.endlessroll.entities.tileLists.TileList;
-import com.example.julian.endlessroll.main.GameLog;
-import com.example.julian.endlessroll.main.game.Scene;
-import com.example.julian.endlessroll.main.game.Timer;
-import com.example.julian.endlessroll.rendering.MatrixCreator;
-import com.example.julian.endlessroll.rendering.Quad;
-import com.example.julian.endlessroll.rendering.Rendering;
-import com.example.julian.endlessroll.rendering.shader.EntityShader;
-import com.example.julian.endlessroll.rendering.shader.SimpleShader;
-import com.example.julian.endlessroll.rendering.shader.TerrainShader;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.microedition.khronos.egl.EGLConfig;
-import javax.microedition.khronos.opengles.GL10;
-
-/**
- * Created by Julian on 22.11.2015.
- */
-public class GameRenderer implements GLSurfaceView.Renderer {
-
- private List renderTargets = new ArrayList<>();
- private Rendering currentRendering;
- private MatrixCreator matrixCreator;
-
- private Context context;
- private Quad quad;
- //GL Context
- private ParticleRenderer particleRenderer;
-
- private EntityShader entityShader;
- private TerrainShader terrainShader;
- private SimpleShader simpleShader;
-
- private TexturePack texturePack;
- private Timer timer;
-
- public GameRenderer(Context context) {
- this.context = context;
- matrixCreator = new MatrixCreator();
- quad = new Quad();
- particleRenderer = new ParticleRenderer(context, quad, matrixCreator);
- }
-
- public void addRendering(Rendering rendering) {
- renderTargets.add(rendering);
- }
-
- public void setCurrentRendering(Rendering currentRendering) {
- this.currentRendering = currentRendering;
- }
-
- @Override
- public void onSurfaceCreated(GL10 gl, EGLConfig config) {
- GameLog.d("onSurfaceCreated");
- GLES20.glClearColor(1, 0, 0, 1.0f);
- gl.glEnable(GL10.GL_BLEND);
- gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
- try {
- particleRenderer.createContext();
- entityShader = new EntityShader(context);
- terrainShader = new TerrainShader(context);
- simpleShader = new SimpleShader(context);
- texturePack = new TexturePack(context);
- timer = new Timer();
- } catch (Exception e) {
- for (Rendering rendering : renderTargets)
- rendering.onException(e);
- }
- for (Rendering rendering : renderTargets) {
- rendering.initiate(texturePack, timer);
- }
- }
-
- @Override
- public void onSurfaceChanged(GL10 gl, int width, int height) {
- GameLog.d("onSurfaceChanged: width=" + width + ", height=" + height);
- particleRenderer.createFbo(width, height);
- GLES20.glViewport(0, 0, width, height);
- matrixCreator.setMVPMSize(width, height);
- for (Rendering rendering : renderTargets)
- rendering.setScreenSize(width, height);
- }
-
- @Override
- public void onDrawFrame(GL10 gl) {
- timer.update();
- if (currentRendering != null) {
- currentRendering.update();
- Scene scene = currentRendering.getScene();
-
- particleRenderer.renderParticlesToFbo(gl, scene);
-
- GLES20.glClearColor(1, 1, 1, 1.0f);
- GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);
-
- renderEntities(gl, scene);
- renderTileList(gl, scene.getTerrain(), scene);
- renderTileList(gl, scene.getCeiling(), scene);
- renderFbo(gl);
- }
- }
-
- private void renderEntities(GL10 gl, Scene scene) {
- entityShader.start();
- entityShader.loadMVPMatrix(matrixCreator, scene.getCamera());
- synchronized (scene.getBackground()) {
- for (Entity backgroundPart : scene.getBackground())
- renderEntity(gl, backgroundPart);
- }
- synchronized (scene) {
- for (Entity entity : scene)
- renderEntity(gl, entity);
- }
- entityShader.stop();
- }
-
- private void renderEntity(GL10 gl, Entity entity) {
- gl.glActiveTexture(GL10.GL_TEXTURE0);
- gl.glBindTexture(GL10.GL_TEXTURE_2D, entity.getTexture().getId());
- entityShader.loadTransformationMatrix(matrixCreator, entity);
- entityShader.loadAlpha(entity.getAlpha());
- entityShader.loadTextureAtlasInfos(entity.getTexture(), entity.getTextureAtlasIndex());
- float texScaleX = entity.getMaxTexSize().x == 0 ? 1 : entity.getWidth() / entity.getMaxTexSize().x;
- float texScaleY = entity.getMaxTexSize().y == 0 ? 1 : entity.getHeight() / entity.getMaxTexSize().y;
- entityShader.loadTexCoordScaling(texScaleX, texScaleY);
- quad.draw();
- }
-
- private void renderTileList(GL10 gl, TileList tileList, Scene scene) {
- terrainShader.start();
- terrainShader.loadMVPMatrix(matrixCreator, scene.getCamera());
- synchronized (tileList) {
- for (Tile tile : tileList) {
- gl.glActiveTexture(GL10.GL_TEXTURE0);
- gl.glBindTexture(GL10.GL_TEXTURE_2D, tile.getTexture().getId());
- terrainShader.loadTransformationMatrix(matrixCreator, tile);
- quad.draw();
- }
- }
- terrainShader.stop();
- }
-
- private void renderFbo(GL10 gl) {
- simpleShader.start();
- gl.glActiveTexture(GL10.GL_TEXTURE0);
- gl.glBindTexture(GL10.GL_TEXTURE_2D, particleRenderer.getFboTexture());
- quad.draw();
- simpleShader.stop();
- }
-
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/renderer/ParticleRenderer.java b/app/src/main/java/com/example/julian/endlessroll/rendering/renderer/ParticleRenderer.java
deleted file mode 100644
index fa0949f..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/renderer/ParticleRenderer.java
+++ /dev/null
@@ -1,104 +0,0 @@
-package com.example.julian.endlessroll.rendering.renderer;
-
-import android.content.Context;
-import android.opengl.GLES20;
-
-import com.example.julian.endlessroll.entities.particles.Particle;
-import com.example.julian.endlessroll.entities.particles.ParticleEffect;
-import com.example.julian.endlessroll.entities.particles.ParticleSource;
-import com.example.julian.endlessroll.main.game.Scene;
-import com.example.julian.endlessroll.rendering.Fbo;
-import com.example.julian.endlessroll.rendering.MatrixCreator;
-import com.example.julian.endlessroll.rendering.Quad;
-import com.example.julian.endlessroll.rendering.shader.ParticleShader;
-
-import javax.microedition.khronos.opengles.GL10;
-
-/**
- * Created by Julian on 10.08.2016.
- */
-public class ParticleRenderer {
-
- private Context context;
- private Quad quad;
- private MatrixCreator matrixCreator;
- private boolean additiveBlending = false;
-
- private ParticleShader particleShader;
- private Fbo fbo;
-
- public ParticleRenderer(Context context, Quad quad, MatrixCreator matrixCreator) {
- this.context = context;
- this.quad = quad;
- this.matrixCreator = matrixCreator;
- }
-
- public void createContext() throws Exception {
- particleShader = new ParticleShader(context);
- }
-
- public void createFbo(int width, int height) {
- fbo = new Fbo(width, height);
- }
-
- public void renderParticlesToFbo(GL10 gl, Scene scene) {
- fbo.bind();
- GLES20.glClearColor(0, 0, 0, 0.0f);
- GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);
-
- particleShader.start();
- particleShader.loadMVPMatrix(matrixCreator, scene.getCamera());
- synchronized (scene.getParticleSystem().getEffects()) {
- for (ParticleEffect effect : scene.getParticleSystem().getEffects()) {
- gl.glActiveTexture(GL10.GL_TEXTURE0);
- gl.glBindTexture(GL10.GL_TEXTURE_2D, effect.getTexture().getId());
-
- switchAdditiveBlending(gl, effect.getOptions().isAdditive());
- synchronized (effect.getSources()) {
- for (ParticleSource source : effect.getSources()) {
- source.getActiveParticleLock().lock();
- for (Particle particle : source.getActiveParticles())
- renderParticle(particle);
- source.getActiveParticleLock().unlock();
- }
- }
- }
- }
- disableAdditiveBlending(gl);
-
- particleShader.stop();
- fbo.unbind();
- }
-
-
- private void renderParticle(Particle particle) {
- particleShader.loadTransformationMatrix(matrixCreator, particle);
- particleShader.loadColor(particle.getColor());
- quad.draw();
- }
-
- private void switchAdditiveBlending(GL10 gl, boolean effectAdditive) {
- if (effectAdditive && !additiveBlending)
- enableAdditiveBlending(gl);
- if (effectAdditive && additiveBlending)
- disableAdditiveBlending(gl);
- }
-
- private void enableAdditiveBlending(GL10 gl) {
- if (!additiveBlending) {
- additiveBlending = true;
- gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);
- }
- }
-
- private void disableAdditiveBlending(GL10 gl) {
- if (additiveBlending) {
- additiveBlending = false;
- gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
- }
- }
-
- public int getFboTexture() {
- return fbo.getTexture();
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/shader/EntityShader.java b/app/src/main/java/com/example/julian/endlessroll/rendering/shader/EntityShader.java
deleted file mode 100644
index 6a87e38..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/shader/EntityShader.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package com.example.julian.endlessroll.rendering.shader;
-
-import android.content.Context;
-import android.opengl.GLES20;
-
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.entities.textures.Texture;
-import com.example.julian.endlessroll.main.game.Camera;
-import com.example.julian.endlessroll.rendering.MatrixCreator;
-
-/**
- * Created by Julian on 10.08.2016.
- */
-public class EntityShader extends ShaderProgram {
-
- private int location_mvpMatrix;
- private int location_transformationMatrix;
- private int location_alpha;
- private int location_texAtlasSize;
- private int location_texAtlasIndex;
- private int location_texCoordScaling;
-
- public EntityShader(Context context) throws Exception {
- super(context, "shader/entityVertexShader.glsl", "shader/entityFragmentShader.glsl");
- }
-
- @Override
- protected void loadUniformLocations() {
- location_mvpMatrix = super.getUniformLocation("mvpMatrix");
- location_transformationMatrix = super.getUniformLocation("transformationMatrix");
- location_alpha = super.getUniformLocation("alpha");
- location_texAtlasSize = super.getUniformLocation("texAtlasSize");
- location_texAtlasIndex = super.getUniformLocation("texAtlasIndex");
- location_texCoordScaling = super.getUniformLocation("texCoordScaling");
- }
-
- public void loadMVPMatrix(MatrixCreator matrixCreator, Camera camera) {
- float[] mvpMatrix = matrixCreator.createModelViewProjectionMatrix(camera);
- GLES20.glUniformMatrix4fv(location_mvpMatrix, 1, false, mvpMatrix, 0);
- }
-
- public void loadTransformationMatrix(MatrixCreator matrixCreator, Entity entity) {
- float[] transformationMatrix = matrixCreator.createTransformationMatrix(entity);
- GLES20.glUniformMatrix4fv(location_transformationMatrix, 1, false, transformationMatrix, 0);
- }
-
- public void loadAlpha(float alpha) {
- GLES20.glUniform1f(location_alpha, alpha);
- }
-
- public void loadTextureAtlasInfos(Texture texture, int atlasIndex) {
- GLES20.glUniform2f(location_texAtlasSize, texture.getAtlasWidth(), texture.getAtlasHeight());
- GLES20.glUniform1f(location_texAtlasIndex, atlasIndex);
- }
-
- public void loadTexCoordScaling(float scalingX, float scalingY){
- GLES20.glUniform2f(location_texCoordScaling, scalingX, scalingY);
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/shader/ParticleShader.java b/app/src/main/java/com/example/julian/endlessroll/rendering/shader/ParticleShader.java
deleted file mode 100644
index fe0ece3..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/shader/ParticleShader.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package com.example.julian.endlessroll.rendering.shader;
-
-import android.content.Context;
-import android.opengl.GLES20;
-
-import com.example.julian.endlessroll.data.Color;
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.main.game.Camera;
-import com.example.julian.endlessroll.rendering.MatrixCreator;
-
-/**
- * Created by Julian on 10.08.2016.
- */
-public class ParticleShader extends ShaderProgram {
-
- private int location_mvpMatrix;
- private int location_transformationMatrix;
- private int location_color;
-
- public ParticleShader(Context context) throws Exception {
- super(context, "shader/entityVertexShader.glsl", "shader/particleFragmentShader.glsl");
- }
-
- @Override
- protected void loadUniformLocations() {
- location_mvpMatrix = super.getUniformLocation("mvpMatrix");
- location_transformationMatrix = super.getUniformLocation("transformationMatrix");
- location_color = super.getUniformLocation("color");
- }
-
- public void loadMVPMatrix(MatrixCreator matrixCreator, Camera camera) {
- float[] mvpMatrix = matrixCreator.createModelViewProjectionMatrix(camera);
- GLES20.glUniformMatrix4fv(location_mvpMatrix, 1, false, mvpMatrix, 0);
- }
-
- public void loadTransformationMatrix(MatrixCreator matrixCreator, Entity entity) {
- float[] transformationMatrix = matrixCreator.createTransformationMatrix(entity);
- GLES20.glUniformMatrix4fv(location_transformationMatrix, 1, false, transformationMatrix, 0);
- }
-
- public void loadColor(Color color) {
- GLES20.glUniform3f(location_color, color.getR(), color.getG(), color.getB());
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/shader/ShaderProgram.java b/app/src/main/java/com/example/julian/endlessroll/rendering/shader/ShaderProgram.java
deleted file mode 100644
index a87850a..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/shader/ShaderProgram.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package com.example.julian.endlessroll.rendering.shader;
-
-import android.content.Context;
-import android.opengl.GLES20;
-
-import com.example.julian.endlessroll.main.GameLog;
-
-import java.io.BufferedReader;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-
-/**
- * Created by Julian on 23.11.2015.
- */
-public abstract class ShaderProgram {
-
- private Context context;
- private int vertexShader, fragmentShader, program;
-
- public ShaderProgram(Context context, String vertexShaderPath, String fragmentShaderPath) throws Exception {
- this.context = context;
- vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, vertexShaderPath);
- fragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderPath);
- program = GLES20.glCreateProgram();
- GLES20.glAttachShader(program, vertexShader);
- GLES20.glAttachShader(program, fragmentShader);
- GLES20.glLinkProgram(program);
- int[] linkStatus = new int[1];
- GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);
- if (linkStatus[0] == GLES20.GL_FALSE) {
- GLES20.glDeleteProgram(program);
- throw new Exception("Could not link program: "
- + GLES20.glGetProgramInfoLog(program));
- }
-
- bindAttribLocations();
- loadUniformLocations();
- GameLog.d("ShaderProgram successfully loaded");
- }
-
- private void bindAttribLocations() {
- GLES20.glBindAttribLocation(program, 0, "position");
- GLES20.glBindAttribLocation(program, 1, "texCoords");
- }
-
- protected abstract void loadUniformLocations();
-
- protected int getUniformLocation(String name) {
- return GLES20.glGetUniformLocation(program, name);
- }
-
- public void start() {
- GLES20.glUseProgram(program);
- }
-
- public void stop() {
- GLES20.glUseProgram(0);
- }
-
-
- private int loadShader(int type, String shaderName) throws Exception {
- try {
- InputStream is = context.getAssets().open(shaderName);
- InputStreamReader isReader = new InputStreamReader(is);
- BufferedReader reader = new BufferedReader(isReader);
- StringBuilder source = new StringBuilder();
- String line;
- while ((line = reader.readLine()) != null)
- source.append(line);
-
- int shader = GLES20.glCreateShader(type);
- GLES20.glShaderSource(shader, source.toString());
- GLES20.glCompileShader(shader);
-
- int[] compiled = new int[1];
- GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0);
- if (compiled[0] == GLES20.GL_FALSE) {
- GLES20.glDeleteShader(shader);
- throw new Exception("Could not compile shader \"" + shaderName + "\": "
- + GLES20.glGetShaderInfoLog(shader));
- }
- GameLog.d("Shader \"" + shaderName + "\" successfully loaded");
- return shader;
- } catch (Exception e) {
- throw new Exception("Could not load Shader \"" + shaderName + "\"", e);
- }
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/shader/SimpleShader.java b/app/src/main/java/com/example/julian/endlessroll/rendering/shader/SimpleShader.java
deleted file mode 100644
index 3bcfcae..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/shader/SimpleShader.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.example.julian.endlessroll.rendering.shader;
-
-import android.content.Context;
-
-/**
- * Created by Julian on 10.08.2016.
- */
-public class SimpleShader extends ShaderProgram {
-
- public SimpleShader(Context context) throws Exception {
- super(context, "shader/simpleVertexShader.glsl", "shader/simpleFragmentShader.glsl");
- }
-
- @Override
- protected void loadUniformLocations() {
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/rendering/shader/TerrainShader.java b/app/src/main/java/com/example/julian/endlessroll/rendering/shader/TerrainShader.java
deleted file mode 100644
index a04c6b3..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/rendering/shader/TerrainShader.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.example.julian.endlessroll.rendering.shader;
-
-import android.content.Context;
-import android.opengl.GLES20;
-
-import com.example.julian.endlessroll.entities.Entity;
-import com.example.julian.endlessroll.main.game.Camera;
-import com.example.julian.endlessroll.rendering.MatrixCreator;
-
-/**
- * Created by Julian on 10.08.2016.
- */
-public class TerrainShader extends ShaderProgram {
-
- private int location_mvpMatrix;
- private int location_transformationMatrix;
-
- public TerrainShader(Context context) throws Exception {
- super(context, "shader/terrainVertexShader.glsl", "shader/simpleFragmentShader.glsl");
- }
-
- @Override
- protected void loadUniformLocations() {
- location_mvpMatrix = super.getUniformLocation("mvpMatrix");
- location_transformationMatrix = super.getUniformLocation("transformationMatrix");
- }
-
- public void loadMVPMatrix(MatrixCreator matrixCreator, Camera camera) {
- float[] mvpMatrix = matrixCreator.createModelViewProjectionMatrix(camera);
- GLES20.glUniformMatrix4fv(location_mvpMatrix, 1, false, mvpMatrix, 0);
- }
-
- public void loadTransformationMatrix(MatrixCreator matrixCreator, Entity entity) {
- float[] transformationMatrix = matrixCreator.createTransformationMatrix(entity);
- GLES20.glUniformMatrix4fv(location_transformationMatrix, 1, false, transformationMatrix, 0);
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/sounds/Music.java b/app/src/main/java/com/example/julian/endlessroll/sounds/Music.java
deleted file mode 100644
index b0f7524..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/sounds/Music.java
+++ /dev/null
@@ -1,79 +0,0 @@
-package com.example.julian.endlessroll.sounds;
-
-import android.content.Context;
-import android.media.MediaPlayer;
-
-import com.example.julian.endlessroll.main.ExceptionHandler;
-
-/**
- * Created by Julian on 18.12.2015.
- */
-public class Music {
-
- private ExceptionHandler handler;
- private MediaPlayer player;
- private boolean mute;
- private boolean paused = true;
- private int pausedPosition;
-
- public Music(ExceptionHandler handler, Context context, int id) {
- this.handler = handler;
- player = MediaPlayer.create(context, id);
- }
-
- public void setMute(boolean mute) {
- this.mute = mute;
- if (mute && !paused) {
- stop();
- paused = false;
- }
- if (!mute && !paused)
- start();
- }
-
- public void pause() {
- try {
- player.pause();
- paused = true;
- pausedPosition = player.getCurrentPosition();
- } catch (Exception e) {
- handler.onException(e);
- }
- }
-
- public void start() {
- try {
- if (!mute)
- player.start();
- paused = false;
- } catch (Exception e) {
- handler.onException(e);
- }
- }
-
- public void stop() {
- try {
- player.pause();
- player.seekTo(0);
- paused = true;
- } catch (Exception e) {
- handler.onException(e);
- }
- }
-
-
- public void resume() {
- try {
- if (paused) {
- player.seekTo(pausedPosition);
- start();
- }
- } catch (Exception e) {
- handler.onException(e);
- }
- }
-
- public MediaPlayer getPlayer() {
- return player;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/sounds/SoundManager.java b/app/src/main/java/com/example/julian/endlessroll/sounds/SoundManager.java
deleted file mode 100644
index cd3ff6f..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/sounds/SoundManager.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package com.example.julian.endlessroll.sounds;
-
-import android.content.Context;
-import android.media.AudioManager;
-import android.media.SoundPool;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.main.GameActivity;
-import com.example.julian.endlessroll.main.GameLog;
-
-/**
- * Created by Julian on 18.12.2015.
- */
-public class SoundManager {
-
- private Context context;
- private SoundPool soundPool;
- private boolean soundOn;
-
- public final Music backgroundMusic;
-
- public SoundManager(GameActivity activity) {
- this.context = activity;
- soundPool = new SoundPool(2, AudioManager.STREAM_MUSIC, 0);
-
- backgroundMusic = new Music(activity, activity, R.raw.background);
- ToolType.NONE.loadAllPlacingSounds(this);
- }
-
- public void setSoundOn(boolean on) {
- this.soundOn = on;
- backgroundMusic.setMute(!on);
- }
-
- public boolean isSoundOn() {
- return soundOn;
- }
-
- public void pause() {
- soundPool.autoPause();
- backgroundMusic.pause();
- }
-
- public void resume() {
- soundPool.autoResume();
- backgroundMusic.resume();
- }
-
- public void destroy() {
- backgroundMusic.getPlayer().release();
- soundPool.release();
- }
-
- public int loadSound(int id) {
- int sound = soundPool.load(context, id, 1);
- return sound;
- }
-
- public void playSound(int id) {
- float volume = getVolume();
- int feedback = soundPool.play(id, volume, volume, 1, 0, 1);
- if (feedback == 0)
- GameLog.e("SoundId: " + id + " cannot be played");
- }
-
- private float getVolume() {
- if (soundOn) {
- AudioManager manager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
- float volume =
- manager.getStreamVolume(AudioManager.STREAM_MUSIC);
- float maxVolume = manager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
- return volume / maxVolume;
- }
- return 0;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/DatabaseAdapter.java b/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/DatabaseAdapter.java
deleted file mode 100644
index cea9a21..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/DatabaseAdapter.java
+++ /dev/null
@@ -1,88 +0,0 @@
-package com.example.julian.endlessroll.sqlDatabase;
-
-import android.content.ContentValues;
-import android.content.Context;
-import android.database.Cursor;
-import android.database.SQLException;
-import android.database.sqlite.SQLiteDatabase;
-import android.database.sqlite.SQLiteOpenHelper;
-
-import com.example.julian.endlessroll.main.GameLog;
-
-/**
- * Created by Julian on 07.06.2016.
- */
-public abstract class DatabaseAdapter extends SQLiteOpenHelper {
-
- private SQLTable[] tables;
- private SQLiteDatabase database;
-
- public DatabaseAdapter(Context context, String databaseName, int version) {
- super(context, databaseName, null, version);
- createColumns();
- this.tables = createTables();
- }
-
- protected abstract void createColumns();
-
- protected abstract SQLTable[] createTables();
-
- @Override
- public void onCreate(SQLiteDatabase db) {
- GameLog.i("DATABASE CREATE");
- for (SQLTable table : tables)
- db.execSQL(table.getSqlCreateTable());
- }
-
- @Override
- public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
- for (SQLTable table : tables)
- db.execSQL(table.getSqlDeleteTable());
- onCreate(db);
- }
-
- @Override
- public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
- onUpgrade(db, oldVersion, newVersion);
- }
-
- public void open() throws SQLException {
- database = getWritableDatabase();
- }
-
- protected void deleteTableEntry(SQLTable table, SQLTableColumn c0, int c0Condition, SQLTableColumn c1, int c1Condition) {
- database.execSQL("DELETE FROM " + table.getName() + " WHERE " + c0.getKey() + " = " + c0Condition + " AND " + c1.getKey() + " = " + c1Condition);
- }
-
- protected void clearTable(SQLTable table) {
- database.execSQL(table.getSqlClearTable());
- }
-
- protected long insertData(SQLTable table, ContentValues data) {
- return database.insert(table.getName(), null, data);
- }
-
- protected long update(SQLTable table, ContentValues data, SQLTableColumn c0, int c0Condition, SQLTableColumn c1, int c1Condition) {
- int reached = database.delete(table.getName(), c0.getKey() + "=" + c0Condition + " and " + c1.getKey() + "=" + c1Condition, null);
- return insertData(table, data);
- }
-
- protected long update(SQLTable table, ContentValues data, SQLTableColumn c0, int c0Condition) {
- int reached = database.delete(table.getName(), c0.getKey() + "=" + c0Condition, null);
- return insertData(table, data);
- }
-
- protected Cursor getCursor(SQLTable table) {
- return database.rawQuery(table.getSqlGetCursor(), null);
- }
-
- protected Cursor getCursor(SQLTable table, SQLTableColumn c0, int c0Condition, SQLTableColumn c1, int c1Condition) {
- return database.rawQuery(table.getSqlGetCursor() + " where " + c0.getKey() + "=" + c0Condition + " and " + c1.getKey() + "=" + c1Condition, null);
- }
-
- protected Cursor getCursor(SQLTable table, SQLTableColumn c, int cCondition) {
- return database.rawQuery(table.getSqlGetCursor() + " where " + c.getKey() + "=" + cCondition, null);
- }
-
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/MyDatabase.java b/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/MyDatabase.java
deleted file mode 100644
index 566bb86..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/MyDatabase.java
+++ /dev/null
@@ -1,124 +0,0 @@
-package com.example.julian.endlessroll.sqlDatabase;
-
-import android.content.ContentValues;
-import android.content.Context;
-import android.database.Cursor;
-
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.levels.Level;
-import com.example.julian.endlessroll.levels.LevelPack;
-
-/**
- * Created by Julian on 10.05.2016.
- */
-public class MyDatabase extends DatabaseAdapter {
-
- private final static int VERSION = 7;
- private final static String DATABASE_NAME = "DATABASE";
- private SQLTableColumn levelpackColumn, levelColumn, lockedColumn, finishedColumn, starsColumn, energyColumn;
- private SQLTableColumn toolIdColumn, boughtColumn;
- private SQLTable levelTable, levelPackTable, toolTable;
-
- public MyDatabase(Context context) {
- super(context, DATABASE_NAME, VERSION);
- }
-
- @Override
- protected void createColumns() {
- levelpackColumn = new SQLTableColumn("LEVELPACK", SQLTableColumn.ColumnType.INTEGER, SQLTableColumn.ColumnExtra.NOT_NULL);
- levelColumn = new SQLTableColumn("LEVEL", SQLTableColumn.ColumnType.INTEGER, SQLTableColumn.ColumnExtra.NOT_NULL);
- lockedColumn = new SQLTableColumn("LOCKED", SQLTableColumn.ColumnType.INTEGER, SQLTableColumn.ColumnExtra.NOT_NULL);
- finishedColumn = new SQLTableColumn("FINISHED", SQLTableColumn.ColumnType.INTEGER, SQLTableColumn.ColumnExtra.NOT_NULL);
- starsColumn = new SQLTableColumn("STARS", SQLTableColumn.ColumnType.TEXT, SQLTableColumn.ColumnExtra.NOT_NULL);
- energyColumn = new SQLTableColumn("ENERGY", SQLTableColumn.ColumnType.INTEGER, SQLTableColumn.ColumnExtra.NOT_NULL);
-
- toolIdColumn = new SQLTableColumn("TOOL_ID", SQLTableColumn.ColumnType.INTEGER, SQLTableColumn.ColumnExtra.NOT_NULL);
- boughtColumn = new SQLTableColumn("BOUGHT", SQLTableColumn.ColumnType.INTEGER, SQLTableColumn.ColumnExtra.NOT_NULL);
- }
-
- @Override
- protected SQLTable[] createTables() {
- levelPackTable = new SQLTable("LEVELPACK_TABLE", levelpackColumn, lockedColumn);
- levelTable = new SQLTable("LEVEL_TABLE", levelpackColumn, levelColumn, lockedColumn, finishedColumn, starsColumn, energyColumn);
- toolTable = new SQLTable("TOOL_TABLE", toolIdColumn, boughtColumn);
- return new SQLTable[]{levelPackTable, levelTable, toolTable};
- }
-
- public void writeLevelProgress(Level level) {
- ContentValues values = new ContentValues();
- values.put(levelpackColumn.getKey(), level.getPackId());
- values.put(levelColumn.getKey(), level.getId());
- values.put(lockedColumn.getKey(), level.isLocked() ? 1 : 0);
- values.put(finishedColumn.getKey(), level.isFinished() ? 1 : 0);
- values.put(starsColumn.getKey(), level.getCollectedStarCodeForSQL());
- values.put(energyColumn.getKey(), level.isEnergyCollected());
- long update = super.update(levelTable, values, levelpackColumn, level.getPackId(), levelColumn, level.getId());
- }
-
- public void readLevelProgress(Level level) {
- Cursor cursor = super.getCursor(levelTable, levelpackColumn, level.getPackId(), levelColumn, level.getId());
- if (cursor.moveToFirst()) {
- boolean locked = cursor.getInt(2) == 1;
- boolean finished = cursor.getInt(3) == 1;
- String stars = cursor.getString(4);
- boolean energy = cursor.getInt(5) == 1;
-
- level.setLocked(locked);
- level.setFinished(finished);
- level.setCollectedStarsFromSQL(stars);
- level.setEnergyCollected(energy);
- }
- cursor.close();
- }
-
- public void clearLevelProgess() {
- super.clearTable(levelTable);
- }
-
- public void writeLevelPackLocked(LevelPack levelPack) {
- ContentValues values = new ContentValues();
- values.put(levelpackColumn.getKey(), levelPack.getId());
- values.put(lockedColumn.getKey(), levelPack.isLocked() ? 1 : 0);
- super.update(levelPackTable, values, levelpackColumn, levelPack.getId());
- }
-
- public void readLevelPackLocked(LevelPack levelPack) {
- Cursor cursor = super.getCursor(levelPackTable, levelpackColumn, levelPack.getId());
- if (cursor.moveToFirst()) {
- boolean locked = cursor.getInt(1) == 1;
- levelPack.setLocked(locked);
- } else {
- levelPack.setLocked(true);
- }
- cursor.close();
- }
-
- public void clearLevelPackLocked(){
- super.clearTable(levelPackTable);
- }
-
- public void writeBoughtTools() {
- for (ToolType tool : ToolType.values()) {
- if (tool != ToolType.NONE) {
- ContentValues values = new ContentValues();
- values.put(toolIdColumn.getKey(), tool.ordinal());
- values.put(boughtColumn.getKey(), tool.isBought() ? 1 : 0);
- super.update(toolTable, values, toolIdColumn, tool.ordinal());
- }
- }
- }
-
- public void readBoughtTools() {
- Cursor cursor = super.getCursor(toolTable);
- if (cursor.moveToFirst()) {
- do {
- int id = cursor.getInt(0);
- boolean bought = cursor.getInt(1) == 1;
- ToolType.values()[id].setBought(bought);
- }
- while (cursor.moveToNext());
- }
- cursor.close();
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/SQLTable.java b/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/SQLTable.java
deleted file mode 100644
index 0c797cd..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/SQLTable.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.example.julian.endlessroll.sqlDatabase;
-
-public class SQLTable {
-
- private final String name;
- private final String columnsAsText;
-
- public SQLTable(String name, SQLTableColumn... columns) {
- this.name = name;
- StringBuilder builder = new StringBuilder();
- for (int i = 0; i < columns.length; i++) {
- builder.append(columns[i].toString());
- if (i != columns.length - 1)
- builder.append(", ");
- }
- columnsAsText = builder.toString();
- }
-
- public String getName() {
- return name;
- }
-
- public String getSqlCreateTable() {
- return "CREATE TABLE " + name + "(" + columnsAsText + ");";
- }
-
- public String getSqlDeleteTable() {
- return "DROP TABLE IF EXISTS " + name;
- }
-
- public String getSqlClearTable() {
- return "DELETE FROM " + name;
- }
-
- public String getSqlGetCursor() {
- return "SELECT * FROM " + name;
- }
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/SQLTableColumn.java b/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/SQLTableColumn.java
deleted file mode 100644
index c3243b1..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/SQLTableColumn.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package com.example.julian.endlessroll.sqlDatabase;
-
-public class SQLTableColumn {
-
- public enum ColumnType {
- TEXT, INTEGER, REAL;
- }
-
- public enum ColumnExtra {
- NONE(""), PRIMARY_KEY("PRIMARY KEY"), NOT_NULL("NOT NULL");
-
- private String name;
-
- ColumnExtra(String name) {
- this.name = name;
- }
-
- @Override
- public String toString() {
- return name;
- }
- }
-
- private final String title;
- private final ColumnType type;
- private final ColumnExtra extra;
-
- public SQLTableColumn(String title, ColumnType type, ColumnExtra extra) {
- this.title = title;
- this.type = type;
- this.extra = extra;
- }
-
- public String getKey() {
- return title;
- }
-
- @Override
- public String toString() {
- return title + " " + type.toString() + " " + extra.toString();
- }
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/SQLTablePrimaryKeyColumn.java b/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/SQLTablePrimaryKeyColumn.java
deleted file mode 100644
index 5a65bcb..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/sqlDatabase/SQLTablePrimaryKeyColumn.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.example.julian.endlessroll.sqlDatabase;
-
-/**
- * Created by Julian on 30.05.2016.
- */
-public class SQLTablePrimaryKeyColumn extends SQLTableColumn {
-
- private boolean autoincrement;
-
- public SQLTablePrimaryKeyColumn(boolean autoincrement) {
- super("_ID", ColumnType.INTEGER, ColumnExtra.PRIMARY_KEY);
- this.autoincrement = autoincrement;
- }
-
- @Override
- public String toString() {
- if (autoincrement)
- return super.toString() + " AUTOINCREMENT";
- return super.toString();
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/user/LevelBounty.java b/app/src/main/java/com/example/julian/endlessroll/user/LevelBounty.java
deleted file mode 100644
index a768242..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/user/LevelBounty.java
+++ /dev/null
@@ -1,59 +0,0 @@
-package com.example.julian.endlessroll.user;
-
-import android.content.Context;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.main.screens.Screen;
-import com.example.julian.endlessroll.views.BountyMessage;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 26.01.2017.
- */
-
-public class LevelBounty {
-
- private int starCount = 0;
- private int energyCount = 0;
- private ToolType toolType = ToolType.NONE;
- private boolean toolSlot = false;
-
- public LevelBounty(int starCount, int energyCount, ToolType toolType, boolean toolSlot) {
- this.starCount = starCount;
- this.energyCount = energyCount;
- this.toolType = toolType;
- this.toolSlot = toolSlot;
- }
-
- public List createBountyMessages(Context context, BountyMessage.ScreenSwitchCaller caller) {
- List list = new ArrayList();
- if (starCount != 0)
- list.add(new BountyMessage(context, R.drawable.currency_star, starCount + "", caller, Screen.ScreenType.NONE));
- if (energyCount != 0)
- list.add(new BountyMessage(context, R.drawable.currency_energy, energyCount + "", caller, Screen.ScreenType.NONE));
- if (toolType != ToolType.NONE)
- list.add(new BountyMessage(context, toolType.getButtonDrawable(), toolType.getName() + " unlocked!", caller, Screen.ScreenType.TOOL_SHOP));
- if (toolSlot)
- list.add(new BountyMessage(context, R.drawable.tools_unlockedbutton, "You unlocked a ToolSlot!", caller, Screen.ScreenType.TOOL_SHOP));
- return list;
- }
-
- public ToolType getToolType() {
- return toolType;
- }
-
- public boolean isToolSlot() {
- return toolSlot;
- }
-
- public int getStarCount() {
- return starCount;
- }
-
- public int getEnergyCount() {
- return energyCount;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/user/LevelUpBounties.java b/app/src/main/java/com/example/julian/endlessroll/user/LevelUpBounties.java
deleted file mode 100644
index da97b64..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/user/LevelUpBounties.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package com.example.julian.endlessroll.user;
-
-import com.example.julian.endlessroll.entities.tools.ToolType;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-
-/**
- * Created by Julian on 17.07.2016.
- */
-public class LevelUpBounties extends HashMap {
-
- private List unlockedTools = new ArrayList<>();
- private int unlockedToolSlots;
-
- public LevelUpBounties(int level) {
- super.put(1, new LevelBounty(0, 0, ToolType.RAMP, true));
- super.put(2, new LevelBounty(5, 0, ToolType.SPRING, false));
- super.put(3, new LevelBounty(6, 0, ToolType.MAGNET, true));
- super.put(4, new LevelBounty(7, 0, ToolType.BOMB, true));
- super.put(5, new LevelBounty(8, 2, ToolType.NONE, false));
- super.put(6, new LevelBounty(8, 1, ToolType.NONE, false));
- super.put(7, new LevelBounty(8, 1, ToolType.NONE, false));
- loadAllForLevel(level);
- }
-
- public void loadAllForLevel(int level) {
- unlockedTools.clear();
- unlockedToolSlots = 0;
- for (int i = level; i > 0; i--)
- loadBounty(super.get(i));
- }
-
- private void loadBounty(LevelBounty bounty) {
- if (bounty != null) {
- if (bounty.getToolType() != ToolType.NONE)
- unlockedTools.add(bounty.getToolType());
- if (bounty.isToolSlot())
- unlockedToolSlots++;
- }
- }
-
- public boolean isToolLocked(ToolType tool) {
- return !unlockedTools.contains(tool);
- }
-
- public boolean isToolSlotLocked(int index) {
- return index >= unlockedToolSlots;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/user/ToolSlotSettings.java b/app/src/main/java/com/example/julian/endlessroll/user/ToolSlotSettings.java
deleted file mode 100644
index a80c7e4..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/user/ToolSlotSettings.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package com.example.julian.endlessroll.user;
-
-import com.example.julian.endlessroll.entities.tools.ToolSlot;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.user.LevelUpBounties;
-
-import java.util.ArrayList;
-
-/**
- * Created by Julian on 15.07.2016.
- */
-public class ToolSlotSettings extends ArrayList {
-
- public ToolSlotSettings(String slot1, String slot2, String slot3, String slot4, int slotsLocked) throws Exception {
- super.add(new ToolSlot(ToolType.valueOf(slot1), false));
- super.add(new ToolSlot(ToolType.valueOf(slot2), slotsLocked >= 3));
- super.add(new ToolSlot(ToolType.valueOf(slot3), slotsLocked >= 2));
- super.add(new ToolSlot(ToolType.valueOf(slot4), slotsLocked >= 1));
- }
-
- public void reset() {
- super.set(0, new ToolSlot(ToolType.RAMP, false));
- super.set(1, new ToolSlot(ToolType.NONE, true));
- super.set(2, new ToolSlot(ToolType.NONE, true));
- super.set(3, new ToolSlot(ToolType.NONE, true));
- }
-
- public void changeToolSlotType(int slot, ToolType newType) {
- for (ToolSlot toolSlot : this) {
- if (super.indexOf(toolSlot) == slot)
- toolSlot.setToolType(newType);
- else if (toolSlot.getToolType() == newType)
- toolSlot.setToolType(ToolType.NONE);
- }
- }
-
- public void unlockSlotsIfLevelReached(LevelUpBounties levelUpBounties) {
- for (int i = 0; i < 4; i++)
- super.get(i).setLocked(levelUpBounties.isToolSlotLocked(i));
- }
-
- public int getLockedSlotCount() {
- int count = 0;
- for (ToolSlot slot : this)
- if(slot.isLocked())
- count ++;
- return count;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/user/User.java b/app/src/main/java/com/example/julian/endlessroll/user/User.java
deleted file mode 100644
index 7042926..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/user/User.java
+++ /dev/null
@@ -1,124 +0,0 @@
-package com.example.julian.endlessroll.user;
-
-import com.example.julian.endlessroll.main.GameLog;
-
-/**
- * Created by Julian on 10.07.2016.
- */
-public class User {
-
- public interface LvUpListener {
- public void onLvUp(int level);
- }
-
- private final int LV_DONE_EP = 20;
- private final int STAR_EP = 2;
- private final int ENERGY_EP = 10;
- //MAX EP IN ONE LEVEL: 36 (20 + 3*2 + 10)
-
- private LvUpListener lvUpListener;
- private int ep;
- private int level;
- private int starCount;
- private int energyCount;
- private ToolSlotSettings toolSlotSettings;
-
- private LevelUpBounties levelUpBounties;
-
- public User(LvUpListener lvUpListener, int ep, int level, int starCount, int energyCount, ToolSlotSettings toolSlotSettings) {
- this.lvUpListener = lvUpListener;
- this.ep = ep;
- this.level = level;
- this.starCount = starCount;
- this.energyCount = energyCount;
- this.toolSlotSettings = toolSlotSettings;
-
- levelUpBounties = new LevelUpBounties(level);
- }
-
- public void clearData() {
- ep = 0;
- level = 1;
- starCount = 0;
- energyCount = 0;
- toolSlotSettings.reset();
- }
-
- public void onStarCollected() {
- increaseStarCount(1, true);
- }
-
- public void increaseStarCount(int starCount, boolean gainEp) {
- this.starCount += starCount;
- if(gainEp)
- gainEp(STAR_EP * starCount);
- }
-
- public void onEnergyCollected() {
- increaseEnergyCount(1, true);
- }
-
- public void increaseEnergyCount(int energyCount, boolean gainEp) {
- this.energyCount += energyCount;
- if(gainEp)
- gainEp(ENERGY_EP * energyCount);
- }
-
- public void gainLvFinishedEp() {
- gainEp(LV_DONE_EP);
- }
-
- public void gainEp(int amount) {
- ep += amount;
- if (ep >= 100) {
- ep -= 100;
- levelUp();
- }
- }
-
- private void levelUp() {
- level++;
- levelUpBounties.loadAllForLevel(level);
-
- toolSlotSettings.unlockSlotsIfLevelReached(levelUpBounties);
- LevelBounty bounty = levelUpBounties.get(level);
- if (bounty != null) {
- increaseStarCount(bounty.getStarCount(), false);
- increaseEnergyCount(bounty.getEnergyCount(), false);
- }
- lvUpListener.onLvUp(level);
- }
-
- public int getEp() {
- return ep;
- }
-
- public int getLevel() {
- return level;
- }
-
- public int getStarCount() {
- return starCount;
- }
-
- public int getEnergyCount() {
- return energyCount;
- }
-
- public ToolSlotSettings getToolSlotSettings() {
- return toolSlotSettings;
- }
-
- public LevelUpBounties getLevelUpBounties() {
- return levelUpBounties;
- }
-
- //CHEAT
- public void setLevel(int level) {
- this.level = level;
- }
-
- public void setStarCount(int starCount) {
- this.starCount = starCount;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/BountyMessage.java b/app/src/main/java/com/example/julian/endlessroll/views/BountyMessage.java
deleted file mode 100644
index 403302c..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/BountyMessage.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.content.Context;
-import android.support.annotation.DrawableRes;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.widget.ImageView;
-import android.widget.LinearLayout;
-import android.widget.TextView;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.main.screens.Screen;
-
-/**
- * Created by Julian on 15.07.2016.
- */
-public class BountyMessage implements View.OnClickListener {
-
- public interface ScreenSwitchCaller {
- public void switchScreen(Screen.ScreenType screenType);
- }
-
- private LinearLayout layout;
- private ImageView image;
- private TextView text;
-
- private ScreenSwitchCaller screenSwitchCaller;
- private Screen.ScreenType goalScreen;
-
- public BountyMessage(Context context, @DrawableRes int drawableId, String text, ScreenSwitchCaller screenSwitchCaller, Screen.ScreenType goalScreenType) {
- findViews(context);
- this.image.setImageResource(drawableId);
- this.text.setText(text);
- this.screenSwitchCaller = screenSwitchCaller;
- this.goalScreen = goalScreenType;
- }
-
- private void findViews(Context context) {
- LayoutInflater inflater = LayoutInflater.from(context);
- layout = (LinearLayout) inflater.inflate(R.layout.unlock_message, null);
- layout.setOnClickListener(this);
- image = (ImageView) layout.findViewById(R.id.unlockmessage_toolimage);
- text = (TextView) layout.findViewById(R.id.unlockmessage_message);
- }
-
- @Override
- public void onClick(View v) {
- if (goalScreen != Screen.ScreenType.NONE)
- screenSwitchCaller.switchScreen(goalScreen);
- }
-
- public LinearLayout getLayout() {
- return layout;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/Countdown.java b/app/src/main/java/com/example/julian/endlessroll/views/Countdown.java
deleted file mode 100644
index 041b681..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/Countdown.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.graphics.Typeface;
-import android.view.animation.Animation;
-import android.view.animation.AnimationSet;
-import android.view.animation.AnimationUtils;
-import android.widget.TextView;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.main.game.Game;
-
-/**
- * Created by Julian on 31.07.2016.
- */
-public class Countdown implements Animation.AnimationListener {
-
- private Game game;
- private AnimationSet animations;
- private TextView textView;
-
- private boolean firstHalfRepeated = true;
- private int repeatCount = 0;
-
- public Countdown(Game game, Typeface typeface, TextView textView) {
- this.game = game;
- this.textView = textView;
- this.textView.setTypeface(typeface);
- animations = (AnimationSet) AnimationUtils.loadAnimation(game.getContext(), R.anim.countdown);
- for (Animation animation : animations.getAnimations())
- animation.setAnimationListener(this);
- }
-
- public void start() {
- textView.startAnimation(animations);
- }
-
- public void stop() {
- textView.clearAnimation();
- reset();
- }
-
- private void reset() {
- repeatCount = 0;
- textView.setText("3");
- textView.setTextColor(game.getContext().getResources().getColor(R.color.countdown3));
- }
-
- @Override
- public void onAnimationStart(Animation animation) {
- }
-
- @Override
- public void onAnimationEnd(Animation animation) {
- reset();
- game.countdownFinished();
- }
-
- @Override
- public void onAnimationRepeat(Animation animation) {
- if (!firstHalfRepeated)
- repeatCount++;
- firstHalfRepeated = !firstHalfRepeated;
- textView.setText((3 - repeatCount) + "");
- if (repeatCount == 1) {
- textView.setTextColor(game.getContext().getResources().getColor(R.color.countdown2));
- } else if (repeatCount == 2) {
- textView.setTextColor(game.getContext().getResources().getColor(R.color.countdown1));
- }
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/LevelButton.java b/app/src/main/java/com/example/julian/endlessroll/views/LevelButton.java
deleted file mode 100644
index 6863ff5..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/LevelButton.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.content.Context;
-import android.graphics.Typeface;
-import android.view.LayoutInflater;
-import android.widget.ImageView;
-import android.widget.RelativeLayout;
-import android.widget.TextView;
-
-import com.example.julian.endlessroll.R;
-
-/**
- * Created by Julian on 23.04.2016.
- */
-public class LevelButton extends RelativeLayout {
-
- private TextView text;
- private ImageView star1;
- private ImageView star2;
- private ImageView star3;
- private ImageView energy;
- private ImageView lockImage;
-
- public LevelButton(Context context, Typeface typeface, OnClickListener clickListener, int level, boolean locked) {
- super(context);
- LayoutInflater inflater = LayoutInflater.from(context);
- inflater.inflate(R.layout.levelbutton, this);
- super.setOnClickListener(clickListener);
-
- text = (TextView) super.findViewById(R.id.levelbutton_textview);
- text.setTypeface(typeface);
- star1 = (ImageView) super.findViewById(R.id.levelbutton_star1);
- star2 = (ImageView) super.findViewById(R.id.levelbutton_star2);
- star3 = (ImageView) super.findViewById(R.id.levelbutton_star3);
- energy = (ImageView) super.findViewById(R.id.levelbutton_energy);
- lockImage = (ImageView) super.findViewById(R.id.levelbutton_lock);
-
- setLockVisible(locked);
- text.setText("Level: " + level);
- }
-
- public void setLockVisible(boolean locked) {
- int visibility = locked ? VISIBLE : INVISIBLE;
- lockImage.setVisibility(visibility);
- }
-
- public void showCollectedCurrency(boolean[] stars, boolean energy) {
- if (stars[0])
- this.star1.setImageResource(R.drawable.currency_star);
- if (stars[1])
- this.star2.setImageResource(R.drawable.currency_star);
- if (stars[2])
- this.star3.setImageResource(R.drawable.currency_star);
- if(energy)
- this.energy.setImageResource(R.drawable.currency_energy);
- }
-
- public boolean isLocked() {
- if (lockImage.getVisibility() == VISIBLE)
- return true;
- return false;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/LevelupMessage.java b/app/src/main/java/com/example/julian/endlessroll/views/LevelupMessage.java
deleted file mode 100644
index d7859eb..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/LevelupMessage.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.graphics.Typeface;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-import android.widget.FrameLayout;
-import android.widget.LinearLayout;
-import android.widget.TextView;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.user.LevelBounty;
-import com.example.julian.endlessroll.main.GameActivity;
-import com.example.julian.endlessroll.user.User;
-import com.example.julian.endlessroll.main.screens.Screen;
-
-/**
- * Created by Julian on 15.07.2016.
- */
-public class LevelupMessage implements View.OnClickListener, BountyMessage.ScreenSwitchCaller {
-
- private GameActivity gameActivity;
- private User user;
- private FrameLayout layout;
-
- private TextView levelView;
- private TextView text;
- private LinearLayout unlockMessages;
-
- public LevelupMessage(GameActivity gameActivity, Typeface typeface, User user) {
- this.gameActivity = gameActivity;
- this.user = user;
-
- LayoutInflater inflater = LayoutInflater.from(gameActivity);
- layout = (FrameLayout) inflater.inflate(R.layout.levelup_message, null);
- layout.setOnClickListener(this);
- layout.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
- layout.setVisibility(View.GONE);
- levelView = (TextView) layout.findViewById(R.id.levelup_level);
- levelView.setTypeface(typeface);
- text = (TextView) layout.findViewById(R.id.levelup_text);
- text.setTypeface(typeface);
- unlockMessages = (LinearLayout) layout.findViewById(R.id.levelup_unlocklist);
- }
-
- public void show(int level) {
- LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
- params.setMargins(0, 5, 0, 5);
-
- levelView.setText(level + "");
- layout.setVisibility(View.VISIBLE);
-
- LevelBounty bounty = user.getLevelUpBounties().get(level);
- if (bounty != null)
- for (BountyMessage message : bounty.createBountyMessages(gameActivity, this))
- unlockMessages.addView(message.getLayout(), params);
- }
-
- private void hide() {
- layout.setVisibility(View.GONE);
- unlockMessages.removeAllViews();
- }
-
- public FrameLayout getLayout() {
- return layout;
- }
-
- @Override
- public void onClick(View v) {
- hide();
- }
-
-
- @Override
- public void switchScreen(Screen.ScreenType screenType) {
- if (screenType == Screen.ScreenType.TOOL_SHOP)
- gameActivity.setToolshopCaller(gameActivity.getCurrentScreenType());
- gameActivity.flipToScreen(screenType);
- hide();
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/Message.java b/app/src/main/java/com/example/julian/endlessroll/views/Message.java
deleted file mode 100644
index 603a305..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/Message.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.graphics.Typeface;
-import android.view.View;
-import android.view.animation.Animation;
-import android.view.animation.AnimationUtils;
-import android.widget.Button;
-import android.widget.RelativeLayout;
-import android.widget.TextView;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.main.game.Game;
-
-/**
- * Created by Julian on 09.07.2016.
- */
-public class Message implements View.OnClickListener {
-
- private RelativeLayout layout;
- private Animation fadeIn;
- private MessageType messageType;
-
- private Game game;
- private TextView title;
- private Button leftButton;
- private Button exitButton;
- private Button tryAgainButton;
-
- public Message(Game game, Typeface typeface, RelativeLayout layout) {
- this.game = game;
- this.layout = layout;
- fadeIn = AnimationUtils.loadAnimation(game.getContext(), R.anim.fade_in);
- title = (TextView) layout.findViewById(R.id.message_title);
- title.setTypeface(typeface);
- leftButton = (Button) layout.findViewById(R.id.message_leftbutton);
- leftButton.setOnClickListener(this);
- leftButton.setTypeface(typeface);
- exitButton = (Button) layout.findViewById(R.id.message_exitbutton);
- exitButton.setOnClickListener(this);
- exitButton.setTypeface(typeface);
- tryAgainButton = (Button) layout.findViewById(R.id.message_tryagainbutton);
- tryAgainButton.setOnClickListener(this);
- tryAgainButton.setTypeface(typeface);
- }
-
- public void setMessageType(MessageType messageType) {
- this.messageType = messageType;
- title.setText(messageType.getMessage());
- title.setTextColor(game.getContext().getResources().getColor(messageType.getColor()));
- leftButton.setText(messageType.getLeftButtonText());
- tryAgainButton.setVisibility(messageType == MessageType.WIN ? View.VISIBLE : View.INVISIBLE);
- }
-
- public void fadeIn(boolean wasLastLevel) {
- leftButton.setEnabled(!wasLastLevel);
- layout.startAnimation(fadeIn);
- }
-
- public void setInvisible() {
- layout.clearAnimation();
- layout.setVisibility(View.INVISIBLE);
- }
-
- @Override
- public void onClick(View v) {
- if (v.equals(leftButton)) {
- setInvisible();
- if (messageType.equals(MessageType.GAME_OVER)) {
- game.restartLevel();
- } else {
- game.startNextLevel();
- }
- } else if (v.equals(tryAgainButton)) {
- setInvisible();
- game.restartLevel();
- } else if (v.equals(exitButton)) {
- setInvisible();
- game.toLevelsScreen();
- }
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/MessageType.java b/app/src/main/java/com/example/julian/endlessroll/views/MessageType.java
deleted file mode 100644
index 745093d..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/MessageType.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.support.annotation.ColorRes;
-
-import com.example.julian.endlessroll.R;
-
-public enum MessageType {
- GAME_OVER("GAME OVER", "Retry", R.color.loose), WIN("YOU DID IT!", "Next Level", R.color.win);
-
- private String message;
- private String leftButtonText;
- @ColorRes
- private int color;
-
- MessageType(String message, String leftButtonText, @ColorRes int color) {
- this.message = message;
- this.leftButtonText = leftButtonText;
- this.color = color;
- }
-
- public String getMessage() {
- return message;
- }
-
- public String getLeftButtonText() {
- return leftButtonText;
- }
-
- @ColorRes
- public int getColor() {
- return color;
- }
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/ShortMenu.java b/app/src/main/java/com/example/julian/endlessroll/views/ShortMenu.java
deleted file mode 100644
index b77cf6a..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/ShortMenu.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.content.Context;
-import android.view.View;
-import android.view.animation.Animation;
-import android.view.animation.AnimationUtils;
-import android.widget.FrameLayout;
-import android.widget.RelativeLayout;
-import android.widget.TextView;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.main.game.Game;
-import com.example.julian.endlessroll.main.screens.Screen;
-
-import java.util.Random;
-
-/**
- * Created by Julian on 23.01.2016.
- */
-public class ShortMenu implements View.OnClickListener {
-
- private Game game;
- private Random random;
- private Animation slideLeft;
- private Animation slideRight;
- private Animation slideTop;
-
- private FrameLayout layout;
- private TopBar topBar;
- private TextView continueView;
- private TextView restartView;
- private TextView exitView;
-
- public ShortMenu(final Game game, TopBarData topBarData, FrameLayout layout) {
- this.game = game;
- this.layout = layout;
- topBar = new TopBar(topBarData, Screen.ScreenType.GAME, (RelativeLayout) layout.findViewById(R.id.shortmenu_topbar));
- continueView = (TextView) layout.findViewById(R.id.shortmenu_continue);
- continueView.setTypeface(topBarData.getTypeface());
- continueView.setOnClickListener(this);
- restartView = (TextView) layout.findViewById(R.id.shortmenu_restart);
- restartView.setTypeface(topBarData.getTypeface());
- restartView.setOnClickListener(this);
- exitView = (TextView) layout.findViewById(R.id.shortmenu_exit);
- exitView.setTypeface(topBarData.getTypeface());
- exitView.setOnClickListener(this);
-
- random = new Random();
- Context context = game.getContext();
- slideLeft = AnimationUtils.loadAnimation(context, R.anim.slide_in_left);
- slideRight = AnimationUtils.loadAnimation(context, R.anim.slide_in_right);
- slideTop = AnimationUtils.loadAnimation(context, R.anim.slide_in_top);
- }
-
- public void startAnims() {
- startRandomAnimation(continueView);
- startRandomAnimation(restartView);
- startRandomAnimation(exitView);
- topBar.startAnimation(slideTop);
- }
-
- public void setVisible(boolean visible) {
- layout.setVisibility(visible ? View.VISIBLE : View.INVISIBLE);
- if (visible)
- topBar.update();
- }
-
- private void startRandomAnimation(View view) {
- float r = random.nextFloat();
- if (r >= 0.5)
- view.startAnimation(slideRight);
- else
- view.startAnimation(slideLeft);
- }
-
- @Override
- public void onClick(View v) {
- if (v.equals(continueView)) {
- setVisible(false);
- game.continueGame();
- } else if (v.equals(restartView)) {
- setVisible(false);
- game.restartLevel();
- } else if (v.equals(exitView)) {
- setVisible(false);
- game.toLevelsScreen();
- }
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/ToolButton.java b/app/src/main/java/com/example/julian/endlessroll/views/ToolButton.java
deleted file mode 100644
index 81f7e4a..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/ToolButton.java
+++ /dev/null
@@ -1,122 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.content.Context;
-import android.graphics.drawable.Drawable;
-import android.graphics.drawable.GradientDrawable;
-import android.view.animation.Animation;
-import android.view.animation.AnimationUtils;
-import android.widget.ImageView;
-import android.widget.ProgressBar;
-import android.widget.RelativeLayout;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.entities.tools.ToolSlot;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-
-/**
- * Created by Julian on 15.01.2016.
- */
-public class ToolButton {
-
- private boolean locked;
- private ToolType toolType;
- private Context context;
- private float progress = 100;
- private boolean active = false;
-
- private RelativeLayout layout;
- private ProgressBar progressBar;
- private ImageView backgroundView;
- private ImageView animationView;
- private Animation scaleAnimation;
-
- public ToolButton(ToolSlot slot, Context context, RelativeLayout layout) {
- this.context = context;
- this.layout = layout;
- progressBar = (ProgressBar) layout.findViewById(R.id.toolProgressBar);
-
- scaleAnimation = AnimationUtils.loadAnimation(context, R.anim.scale_up);
- changeToolSlot(slot);
- }
-
- public void changeToolSlot(ToolSlot toolSlot) {
- this.toolType = toolSlot.getToolType();
- this.locked = toolSlot.isLocked();
- backgroundView = createImageView(toolType, R.id.toolProgressBarView);
- animationView = createImageView(toolType, R.id.toolProgressButtonAnimation);
- }
-
- private ImageView createImageView(ToolType type, int id) {
- ImageView view = (ImageView) layout.findViewById(id);
- if (locked)
- view.setImageResource(R.drawable.tools_lockedbutton);
- else
- view.setImageResource(type.getButtonDrawable());
- view.setBackgroundDrawable(createColoredBackground());
- return view;
- }
-
- private Drawable createColoredBackground() {
- GradientDrawable gd = new GradientDrawable();
- gd.setColor(context.getResources().getColor(R.color.toolbuttonInactiveNotReady));
- if (locked || toolType == ToolType.NONE) {
- gd.setColor(context.getResources().getColor(R.color.toolbuttonLocked));
- }
- gd.setCornerRadius(15);
- return gd;
- }
-
- public void update(float frameTime) {
- if (progress != 100) {
- progress += (frameTime) / (10 * toolType.getRegenerationTime());
- progress = Math.min(progress, 100);
- if (progress == 100)
- animationView.startAnimation(scaleAnimation);
- }
- progressBar.setProgress(100 - (int) progress);
- if (!locked && toolType != ToolType.NONE) {
- if (active) {
- if (progress == 100)
- setColor(R.color.toolbuttonActiveReady);
- else
- setColor(R.color.toolbuttonActiveNotReady);
- } else {
- if (progress == 100)
- setColor(R.color.toolbuttonInactiveReady);
- else
- setColor(R.color.toolbuttonInactiveNotReady);
- }
- }
- }
-
- private void setColor(int id) {
- GradientDrawable gd = (GradientDrawable) backgroundView.getBackground();
- GradientDrawable animGd = (GradientDrawable) animationView.getBackground();
- gd.setColor(context.getResources().getColor(id));
- animGd.setColor(context.getResources().getColor(id));
- }
-
- public void setActive(boolean active) {
- this.active = active;
- }
-
- public boolean isActive() {
- return active;
- }
-
- public void setProgress(int progress) {
- this.progress = progress;
- }
-
- public boolean finishedLoading() {
- return progress == 100;
- }
-
- public ToolType getToolType() {
- return toolType;
- }
-
- public boolean isLocked() {
- return locked;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/ToolButtonBar.java b/app/src/main/java/com/example/julian/endlessroll/views/ToolButtonBar.java
deleted file mode 100644
index c248560..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/ToolButtonBar.java
+++ /dev/null
@@ -1,149 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.content.Context;
-import android.view.View;
-import android.view.animation.Animation;
-import android.view.animation.AnimationUtils;
-import android.widget.LinearLayout;
-import android.widget.RelativeLayout;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.main.GameLog;
-import com.example.julian.endlessroll.user.ToolSlotSettings;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.main.game.Game;
-import com.example.julian.endlessroll.main.game.GameState;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 16.01.2016.
- */
-public class ToolButtonBar implements View.OnClickListener, Animation.AnimationListener {
-
- @Override
- public void onAnimationStart(Animation animation) {
- }
-
- @Override
- public void onAnimationEnd(Animation animation) {
- }
-
- @Override
- public void onAnimationRepeat(Animation animation) {
-
- }
-
- private Animation fadeIn, fadeOut;
- private Game game;
- private List buttons = new ArrayList<>(4);
- private RelativeLayout button1;
- private RelativeLayout button2;
- private RelativeLayout button3;
- private RelativeLayout button4;
-
-
- public ToolButtonBar(Game game, ToolSlotSettings toolSlotSettings, LinearLayout layout1) {
- this.game = game;
- Context context = game.getContext();
- fadeIn = AnimationUtils.loadAnimation(game.getContext(), R.anim.fade_in);
- fadeIn.setAnimationListener(this);
- fadeOut = AnimationUtils.loadAnimation(game.getContext(), R.anim.fade_out);
-
- button1 = (RelativeLayout) layout1.findViewById(R.id.toolbutton_1);
- button1.setOnClickListener(this);
- button2 = (RelativeLayout) layout1.findViewById(R.id.toolbutton_2);
- button2.setOnClickListener(this);
- button3 = (RelativeLayout) layout1.findViewById(R.id.toolbutton_3);
- button3.setOnClickListener(this);
- button4 = (RelativeLayout) layout1.findViewById(R.id.toolbutton_4);
- button4.setOnClickListener(this);
- buttons.add(new ToolButton(toolSlotSettings.get(0), context, button1));
- buttons.add(new ToolButton(toolSlotSettings.get(1), context, button2));
- buttons.add(new ToolButton(toolSlotSettings.get(2), context, button3));
- buttons.add(new ToolButton(toolSlotSettings.get(3), context, button4));
- }
-
- public void setTopPrimary() {
- button1.startAnimation(fadeIn);
- button2.startAnimation(fadeIn);
- button3.startAnimation(fadeIn);
- button4.startAnimation(fadeIn);
- }
-
- public void setBottomPrimary() {
- button1.startAnimation(fadeOut);
- button2.startAnimation(fadeOut);
- button3.startAnimation(fadeOut);
- button4.startAnimation(fadeOut);
- }
-
- public void changeToolButtonTypes(ToolSlotSettings toolSlotSettings) {
- for (int i = 0; i < 4; i++) {
- buttons.get(i).changeToolSlot(toolSlotSettings.get(i));
- }
- }
-
- public void reset(ToolSlotSettings toolSlotSettings) {
- GameLog.i("Reset toolbuttonBar");
- changeToolButtonTypes(toolSlotSettings);
- for (int i = 0; i < 4; i++) {
- if (toolSlotSettings.get(i).getToolType() != ToolType.NONE) {
- setActive(i);
- break;
- }
- }
- for (ToolButton button : buttons)
- button.setProgress(100);
- }
-
- public void update(float frameTime) {
- for (ToolButton button : buttons)
- button.update(frameTime);
- }
-
- public void setActive(ToolType activeType) {
- for (ToolButton button : buttons)
- button.setActive(button.getToolType() == activeType);
- }
-
- private void setActive(int index) {
- for (ToolButton button : buttons)
- button.setActive(buttons.indexOf(button) == index);
- }
-
- public ToolButton getByToolType(ToolType type) {
- for (ToolButton button : buttons)
- if (button.getToolType() == type)
- return button;
- return null;
- }
-
- public ToolButton getActiveButton() {
- for (ToolButton button : buttons)
- if (button.isActive())
- return button;
- return null;
- }
-
- @Override
- public void onClick(View v) {
- if (game.getGameState() == GameState.RUNNING) {
- ToolType clickedType = ToolType.NONE;
- if (v.equals(button1) && !buttons.get(0).isLocked() && buttons.get(0).getToolType() != ToolType.NONE) {
- clickedType = buttons.get(0).getToolType();
- } else if (v.equals(button2) && !buttons.get(1).isLocked() && buttons.get(0).getToolType() != ToolType.NONE) {
- clickedType = buttons.get(1).getToolType();
- } else if (v.equals(button3) && !buttons.get(2).isLocked() && buttons.get(0).getToolType() != ToolType.NONE) {
- clickedType = buttons.get(2).getToolType();
- } else if (v.equals(button4) && !buttons.get(3).isLocked() && buttons.get(0).getToolType() != ToolType.NONE) {
- clickedType = buttons.get(3).getToolType();
- }
- if (clickedType != ToolType.NONE) {
- game.setCurrentTool(clickedType);
- setActive(clickedType);
- }
- }
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/ToolOfferSlot.java b/app/src/main/java/com/example/julian/endlessroll/views/ToolOfferSlot.java
deleted file mode 100644
index cf5211b..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/ToolOfferSlot.java
+++ /dev/null
@@ -1,135 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.content.Context;
-import android.graphics.Typeface;
-import android.graphics.drawable.Drawable;
-import android.graphics.drawable.GradientDrawable;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.widget.FrameLayout;
-import android.widget.ImageView;
-import android.widget.LinearLayout;
-import android.widget.TextView;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.main.screens.ToolShopScreen;
-
-/**
- * Created by Julian on 16.07.2016.
- */
-public class ToolOfferSlot implements View.OnClickListener {
-
- private ToolShopScreen toolShopScreen;
- private Context context;
- private ToolType toolType;
- private boolean locked;
- private boolean bought;
- private boolean selected;
-
- private int colorDisabled;
- private int colorEnabled;
- private int colorEnabledSelected;
-
- private LinearLayout layout;
- private TextView title;
- private ImageView image;
-
- public ToolOfferSlot(ToolShopScreen toolShopScreen, Context context, Typeface typeface, ToolType toolType) {
- this.toolShopScreen = toolShopScreen;
- this.context = context;
- this.toolType = toolType;
- bought = toolType.isBought();
- LayoutInflater inflater = LayoutInflater.from(context);
- layout = (LinearLayout) inflater.inflate(R.layout.tool_offer_slot, null);
- layout.setOnClickListener(this);
- FrameLayout slotLayout = (FrameLayout) layout.findViewById(R.id.toolofferslot_slot);
- title = (TextView) layout.findViewById(R.id.toolofferslot_title);
- title.setTypeface(typeface);
- image = (ImageView) slotLayout.findViewById(R.id.toolslot_image);
- image.setBackgroundDrawable(createColoredBackground());
- setLocked(false);
-
- colorDisabled = context.getResources().getColor(R.color.toolslotDisabled);
- colorEnabled = context.getResources().getColor(R.color.toolslotEnabled);
- colorEnabledSelected = context.getResources().getColor(R.color.toolslotEnabledSelected);
- }
-
- public void setLocked(boolean locked) {
- this.locked = locked;
- if (locked) {
- title.setText("Level up to unlock");
- image.setImageResource(R.drawable.tools_lockedbutton);
- } else {
- title.setText(toolType.getName());
- image.setImageResource(toolType.getButtonDrawable());
- }
- }
-
- public boolean isBought() {
- return bought;
- }
-
- public void updateIsBought() {
- bought = toolType.isBought();
- image.setBackgroundDrawable(createColoredBackground());
- }
-
- public void setSelected(boolean selected) {
- this.selected = selected;
- image.setBackgroundDrawable(createColoredBackground());
- }
-
- public void buy() {
- this.bought = true;
- toolType.setBought(true);
- toolShopScreen.setSelectedToolOfferSlot(null);
- setColor(R.color.toolslotEnabled);
- }
-
- private Drawable createColoredBackground() {
- GradientDrawable gd = new GradientDrawable();
- if (bought) {
- if (selected)
- gd.setColor(colorEnabledSelected);
- else
- gd.setColor(colorEnabled);
- } else {
- gd.setColor(colorDisabled);
- }
- gd.setCornerRadius(10);
- return gd;
- }
-
- private void setColor(int id) {
- GradientDrawable gd = (GradientDrawable) image.getBackground();
- gd.setColor(context.getResources().getColor(id));
- }
-
- public boolean isLocked() {
- return locked;
- }
-
- public ToolType getToolType() {
- return toolType;
- }
-
- public LinearLayout getLayout() {
- return layout;
- }
-
- public ImageView getImage() {
- return image;
- }
-
- @Override
- public void onClick(View v) {
- if (!locked && !bought) {
- toolShopScreen.showPriceButton(this);
- } else if (bought) {
- selected = true;
- image.setBackgroundDrawable(createColoredBackground());
- toolShopScreen.setSelectedToolOfferSlot(this);
- }
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/TopBar.java b/app/src/main/java/com/example/julian/endlessroll/views/TopBar.java
deleted file mode 100644
index 98d94ad..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/TopBar.java
+++ /dev/null
@@ -1,103 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.view.View;
-import android.view.animation.Animation;
-import android.view.animation.AnimationUtils;
-import android.widget.Button;
-import android.widget.ProgressBar;
-import android.widget.RelativeLayout;
-import android.widget.TextView;
-import android.widget.ToggleButton;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.entities.tools.ToolType;
-import com.example.julian.endlessroll.main.screens.Screen;
-
-/**
- * Created by Julian on 08.07.2016.
- */
-public class TopBar extends TopBarData implements View.OnClickListener {
-
- private Animation decreaseAnimation;
- //TEST
- private Screen.ScreenType parent;
- private RelativeLayout layout;
- private TextView levelDisplay;
- private ProgressBar levelProgress;
- private TextView starCount;
- private TextView energyCount;
- private ToggleButton soundToggle;
- private Button toolshopButton;
- private Button resetButton;
- private TextView starCountDecrease;
-
- public TopBar(TopBarData topBarData, Screen.ScreenType parent, RelativeLayout layout) {
- super(topBarData);
- this.parent = parent;
- this.layout = layout;
- decreaseAnimation = AnimationUtils.loadAnimation(gameActivity, R.anim.decrease);
-
- levelDisplay = (TextView) layout.findViewById(R.id.topbar_leveldisplay);
- levelDisplay.setTypeface(typeface);
- levelProgress = (ProgressBar) layout.findViewById(R.id.topbar_levelprogress);
- starCount = (TextView) layout.findViewById(R.id.topbar_starcount);
- starCount.setTypeface(typeface);
- energyCount = (TextView) layout.findViewById(R.id.topbar_energycount);
- energyCount.setTypeface(typeface);
- soundToggle = (ToggleButton) layout.findViewById(R.id.topbar_soundtoggle);
- soundToggle.setTypeface(typeface);
- soundToggle.setOnClickListener(this);
- toolshopButton = (Button) layout.findViewById(R.id.topbar_toolshop);
- toolshopButton.setTypeface(typeface);
- toolshopButton.setOnClickListener(this);
- if (parent == Screen.ScreenType.TOOL_SHOP || parent == Screen.ScreenType.GAME)
- toolshopButton.setEnabled(false);
- resetButton = (Button) layout.findViewById(R.id.topbar_resetButton);
- resetButton.setTypeface(typeface);
- resetButton.setOnClickListener(this);
- if (parent == Screen.ScreenType.GAME)
- resetButton.setEnabled(false);
- starCountDecrease = (TextView) layout.findViewById(R.id.topbar_starcount_decrease);
- starCountDecrease.setTypeface(typeface);
- }
-
- public void startAnimation(Animation animation) {
- layout.startAnimation(animation);
- }
-
- public void update() {
- levelDisplay.setText("Level: " + user.getLevel());
- levelProgress.setProgress(user.getEp());
- starCount.setText(user.getStarCount() + "");
- energyCount.setText(user.getEnergyCount() + "");
- soundToggle.setChecked(soundManager.isSoundOn());
- }
-
- private void flipToToolshop() {
- gameActivity.setToolshopCaller(parent);
- gameActivity.flipToScreen(Screen.ScreenType.TOOL_SHOP);
- }
-
- public void showStarcountDecrease(int decrease) {
- starCountDecrease.setText(decrease + "");
- starCountDecrease.startAnimation(decreaseAnimation);
- }
-
- @Override
- public void onClick(View v) {
- if (v.equals(soundToggle)) {
- soundManager.setSoundOn(soundToggle.isChecked());
- } else if (v.equals(toolshopButton)) {
- flipToToolshop();
- } else if (v.equals(resetButton)) {
- user.clearData();
- dataStorageHandler.writeUserData(user);
- levelManager.reset();
- dataStorageHandler.clearLevelProgess();
- dataStorageHandler.clearLevelPackLocked();
- for (ToolType type : ToolType.values())
- type.setBought(false);
- dataStorageHandler.writeBoughtTools();
- }
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/TopBarData.java b/app/src/main/java/com/example/julian/endlessroll/views/TopBarData.java
deleted file mode 100644
index 8f3cb41..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/TopBarData.java
+++ /dev/null
@@ -1,59 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.graphics.Typeface;
-
-import com.example.julian.endlessroll.levels.LevelManager;
-import com.example.julian.endlessroll.main.DataStorageHandler;
-import com.example.julian.endlessroll.main.GameActivity;
-import com.example.julian.endlessroll.user.User;
-import com.example.julian.endlessroll.sounds.SoundManager;
-
-/**
- * Created by Julian on 15.07.2016.
- */
-public class TopBarData {
-
- protected GameActivity gameActivity;
- protected DataStorageHandler dataStorageHandler;
- protected SoundManager soundManager;
- protected LevelManager levelManager;
- protected User user;
- protected Typeface typeface;
-
- public TopBarData(TopBarData data) {
- this(data.getGameActivity(), data.getDataStorageHandler(), data.getSoundManager(), data.getLevelManager(), data.getUser(), data.getTypeface());
- }
-
- public TopBarData(GameActivity gameActivity, DataStorageHandler dataStorageHandler, SoundManager soundManager, LevelManager levelManager, User user, Typeface typeface) {
- this.gameActivity = gameActivity;
- this.dataStorageHandler = dataStorageHandler;
- this.soundManager = soundManager;
- this.levelManager = levelManager;
- this.user = user;
- this.typeface = typeface;
- }
-
- public GameActivity getGameActivity() {
- return gameActivity;
- }
-
- public DataStorageHandler getDataStorageHandler() {
- return dataStorageHandler;
- }
-
- public SoundManager getSoundManager() {
- return soundManager;
- }
-
- public LevelManager getLevelManager() {
- return levelManager;
- }
-
- public User getUser() {
- return user;
- }
-
- public Typeface getTypeface() {
- return typeface;
- }
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/ViewManager.java b/app/src/main/java/com/example/julian/endlessroll/views/ViewManager.java
deleted file mode 100644
index 9de80b5..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/ViewManager.java
+++ /dev/null
@@ -1,118 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.view.View;
-import android.widget.FrameLayout;
-import android.widget.ImageView;
-import android.widget.LinearLayout;
-import android.widget.RelativeLayout;
-import android.widget.TextView;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.data.Vector;
-import com.example.julian.endlessroll.main.GameHandler;
-import com.example.julian.endlessroll.main.game.Camera;
-import com.example.julian.endlessroll.main.game.Game;
-import com.example.julian.endlessroll.main.game.Timer;
-import com.example.julian.endlessroll.user.User;
-
-/**
- * Created by Julian on 11.12.2015.
- */
-public class ViewManager implements View.OnClickListener {
-
- private GameHandler gameViewHandler;
- private Game game;
-
- private TextView fpsView;
- private TextView playerProgress;
- private TextView playerSpeed;
- private ImageView pauseButton;
- private Message message;
- public ToolButtonBar toolButtonBar;
- public ShortMenu shortMenu;
- private Countdown countdown;
-
- public ViewManager(final Game game, final GameHandler gameViewHandler, final TopBarData topBarData) {
- this.game = game;
- this.gameViewHandler = gameViewHandler;
-
- final RelativeLayout layout = gameViewHandler.getRootLayout();
- gameViewHandler.startInUiThread(new Runnable() {
- @Override
- public void run() {
- toolButtonBar = new ToolButtonBar(game, topBarData.getUser().getToolSlotSettings(), (LinearLayout) layout.findViewById(R.id.game_toolbuttonbar));
- shortMenu = new ShortMenu(game, topBarData, (FrameLayout) layout.findViewById(R.id.game_shortmenu));
- message = new Message(game, topBarData.getTypeface(), (RelativeLayout) layout.findViewById(R.id.game_message));
- countdown = new Countdown(game, topBarData.getTypeface(), (TextView) layout.findViewById(R.id.game_countdown));
- }
- });
- pauseButton = (ImageView) layout.findViewById(R.id.game_pausebutton);
- pauseButton.setOnClickListener(this);
- playerProgress = (TextView) layout.findViewById(R.id.game_playerprogress);
- playerSpeed = (TextView) layout.findViewById(R.id.game_playerspeed);
- fpsView = (TextView) layout.findViewById(R.id.game_fps);
- }
-
- @Override
- public void onClick(View v) {
- game.tryToPause();
- }
-
- public void resetViews(final User user) {
- gameViewHandler.startInUiThread(new Runnable() {
- @Override
- public void run() {
- toolButtonBar.reset(user.getToolSlotSettings());
- toolButtonBar.update(0);
- playerProgress.setText("0.0m");
- playerSpeed.setText("0.0m/s");
- }
- });
- }
-
- public void showMessage(final boolean wasLastLevel, final MessageType messageType) {
- gameViewHandler.startInUiThread(new Runnable() {
- @Override
- public void run() {
- message.setMessageType(messageType);
- message.fadeIn(wasLastLevel);
- }
- });
- }
-
- public void showShortMenu() {
- shortMenu.startAnims();
- shortMenu.setVisible(true);
- }
-
- public void hideShortMenu() {
- shortMenu.setVisible(false);
- }
-
- public void startCountdown() {
- countdown.start();
- }
-
- public void stopCountdown(){
- countdown.stop();
- }
-
- public void update(final boolean gameRunning, final Timer timer, final float playerX, final float playerXMov) {
- gameViewHandler.startInUiThread(new Runnable() {
- @Override
- public void run() {
- fpsView.setText("Fps: " + timer.getFps());
- if (gameRunning) {
- playerProgress.setText(toMeters(playerX) + "m");
- playerSpeed.setText(toMeters(playerXMov * 1000) + "m/s");
- toolButtonBar.update(timer.getFrameTimeSeconds());
- }
- }
- });
- }
-
- private float toMeters(float value) {
- return ((int) (value * 20)) / 10f;
- }
-
-}
diff --git a/app/src/main/java/com/example/julian/endlessroll/views/WorldButton.java b/app/src/main/java/com/example/julian/endlessroll/views/WorldButton.java
deleted file mode 100644
index 6ef9d71..0000000
--- a/app/src/main/java/com/example/julian/endlessroll/views/WorldButton.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package com.example.julian.endlessroll.views;
-
-import android.content.Context;
-import android.graphics.Typeface;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.widget.ImageView;
-import android.widget.RelativeLayout;
-import android.widget.TextView;
-
-import com.example.julian.endlessroll.R;
-import com.example.julian.endlessroll.levels.LevelPack;
-import com.example.julian.endlessroll.levels.worlds.World;
-
-/**
- * Created by Julian on 01.08.2016.
- */
-public class WorldButton extends RelativeLayout {
-
- private LevelPack levelPack;
- private World world;
-
- private TextView title;
- private ImageView previewImage;
- private ImageView lockImage;
- private TextView levelCount;
- private TextView starCount;
- private TextView energyCount;
-
- public WorldButton(Context context, Typeface typeface, View.OnClickListener clickListener, LevelPack levelPack) {
- super(context);
- this.levelPack = levelPack;
- this.world = levelPack.getWorld();
-
- LayoutInflater inflater = LayoutInflater.from(context);
- inflater.inflate(R.layout.world_button, this);
- super.setOnClickListener(clickListener);
-
- title = (TextView) super.findViewById(R.id.worldbutton_title);
- title.setTypeface(typeface);
- previewImage = (ImageView) super.findViewById(R.id.worldbutton_preview);
- lockImage = (ImageView) super.findViewById(R.id.worldbutton_lock);
- levelCount = (TextView) super.findViewById(R.id.worldbutton_levelcount);
- levelCount.setTypeface(typeface);
- starCount = (TextView) super.findViewById(R.id.worldbutton_starcount);
- starCount.setTypeface(typeface);
- energyCount = (TextView) super.findViewById(R.id.worldbutton_energycount);
- energyCount.setTypeface(typeface);
-
- updateInformation();
- }
-
- public void updateInformation() {
- title.setText(levelPack.getName());
- previewImage.setImageDrawable(getContext().getResources().getDrawable(world.getPreviewId()));
- levelCount.setText(levelPack.getFinishedLevelCount() + "/" + levelPack.getLevels().size());
- starCount.setText(levelPack.getCollectedStarCount() + "/" + levelPack.getAvailableStars());
- energyCount.setText(levelPack.getCollectedEnergyCount() + "/" + levelPack.getAvailableEnergy());
- setLockVisible(levelPack.isLocked());
- }
-
- public void setLockVisible(boolean locked) {
- int visibility = locked ? VISIBLE : INVISIBLE;
- lockImage.setVisibility(visibility);
- }
-
- public boolean isLocked() {
- if (lockImage.getVisibility() == VISIBLE)
- return true;
- return false;
- }
-
- public LevelPack getLevelPack() {
- return levelPack;
- }
-}
diff --git a/app/src/test/java/com/example/julian/endlessroll/ExampleUnitTest.java b/app/src/test/java/com/example/julian/endlessroll/ExampleUnitTest.java
index 26917b8..8eb783e 100644
--- a/app/src/test/java/com/example/julian/endlessroll/ExampleUnitTest.java
+++ b/app/src/test/java/com/example/julian/endlessroll/ExampleUnitTest.java
@@ -1,4 +1,4 @@
-package com.example.julian.endlessroll;
+package de.frajul.endlessroll;
import org.junit.Test;
diff --git a/particlelab/build.gradle b/particlelab/build.gradle
index 07ed16d..c57e686 100644
--- a/particlelab/build.gradle
+++ b/particlelab/build.gradle
@@ -4,7 +4,7 @@ android {
compileSdkVersion 23
buildToolsVersion '25.0.0'
defaultConfig {
- applicationId "com.example.particlelab"
+ applicationId "de.frajul.particlelab"
minSdkVersion 12
targetSdkVersion 23
versionCode 1
diff --git a/particlelab/src/androidTest/java/com/example/particlelab/ApplicationTest.java b/particlelab/src/androidTest/java/com/example/particlelab/ApplicationTest.java
deleted file mode 100644
index 788c0ba..0000000
--- a/particlelab/src/androidTest/java/com/example/particlelab/ApplicationTest.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.example.particlelab;
-
-import android.app.Application;
-import android.test.ApplicationTestCase;
-
-/**
- * Testing Fundamentals
- */
-public class ApplicationTest extends ApplicationTestCase {
- public ApplicationTest() {
- super(Application.class);
- }
-}
\ No newline at end of file
diff --git a/particlelab/src/main/AndroidManifest.xml b/particlelab/src/main/AndroidManifest.xml
index 93057ed..68cde82 100644
--- a/particlelab/src/main/AndroidManifest.xml
+++ b/particlelab/src/main/AndroidManifest.xml
@@ -1,5 +1,5 @@
+ package="de.frajul.particlelab">
= maxLife)
- active = false;
- float lifetimePercent = passedLifetime / maxLife;
- setScale(scale.createValue(random, scaleTimeline.getValueAtTime(lifetimePercent)));
- setMovement(velocity.createValue(random, velocityTimeline.getValueAtTime(lifetimePercent)),
- angle.createValue(random, angleTimeline.getValueAtTime(lifetimePercent)), windStrength, gravityStrength);
- super.setRotation(-rotation.createValue(random, rotationTimeline.getValueAtTime(lifetimePercent)));
- super.setAlpha(transparencyTimeline.getValueAtTime(lifetimePercent));
- super.setColor(tintTimeline.getValueAtTime(lifetimePercent));
- }
- }
-
- private void setScale(float scale) {
- super.setWidth(scale * ParticleSystem.TRANSFER_VALUE);
- super.setHeight(scale * ParticleSystem.TRANSFER_VALUE);
- }
-
- private void setMovement(float velocity, float angle, float windStrength, float gravityStrength) {
- float radians = (float) Math.toRadians(angle);
- Vector normalMovement = new Vector();
- normalMovement.setX((float) Math.cos(radians));
- normalMovement.setY((float) Math.sin(radians));
- normalMovement.mul(velocity * ParticleSystem.TRANSFER_VALUE);
- normalMovement.translate(windStrength * ParticleSystem.TRANSFER_VALUE, gravityStrength * ParticleSystem.TRANSFER_VALUE);
- super.setMovement(normalMovement);
- }
-
- public boolean isActive() {
- return active;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleData.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleData.java
deleted file mode 100644
index 3ec4217..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleData.java
+++ /dev/null
@@ -1,59 +0,0 @@
-package com.example.particlelab.entities.particles;
-
-import com.example.particlelab.entities.particles.attributes.attributeValues.Range;
-import com.example.particlelab.entities.particles.attributes.attributeValues.Timeline;
-import com.example.particlelab.entities.particles.attributes.attributeValues.TimelineRange;
-import com.example.particlelab.entities.particles.attributes.attributeValues.TintTimeline;
-import com.example.particlelab.entities.textures.Texture;
-
-/**
- * Created by Julian on 03.08.2016.
- */
-public class ParticleData {
-
- private Range life;
- private TimelineRange scaleTR;
- private TimelineRange velocityTR;
- private TimelineRange angleTR;
- private TimelineRange rotationTR;
- private Timeline transparencyT;
- private TintTimeline tint;
-
- public ParticleData(Range life, TimelineRange scaleTR, TimelineRange velocityTR, TimelineRange angleTR, TimelineRange rotationTR, Timeline transparencyT, TintTimeline tint) {
- this.life = life;
- this.scaleTR = scaleTR;
- this.velocityTR = velocityTR;
- this.angleTR = angleTR;
- this.rotationTR = rotationTR;
- this.transparencyT = transparencyT;
- this.tint = tint;
- }
-
- public Range getLife() {
- return life;
- }
-
- public TimelineRange getScaleTR() {
- return scaleTR;
- }
-
- public TimelineRange getVelocityTR() {
- return velocityTR;
- }
-
- public TimelineRange getAngleTR() {
- return angleTR;
- }
-
- public TimelineRange getRotationTR() {
- return rotationTR;
- }
-
- public Timeline getTransparencyT() {
- return transparencyT;
- }
-
- public TintTimeline getTint() {
- return tint;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleEffect.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleEffect.java
deleted file mode 100644
index 203caa0..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleEffect.java
+++ /dev/null
@@ -1,218 +0,0 @@
-package com.example.particlelab.entities.particles;
-
-import com.example.particlelab.entities.particles.attributes.attributeValues.Options;
-import com.example.particlelab.entities.particles.attributes.attributeValues.Range;
-import com.example.particlelab.entities.particles.attributes.attributeValues.SpawnShape;
-import com.example.particlelab.entities.particles.attributes.attributeValues.Timeline;
-import com.example.particlelab.entities.particles.attributes.attributeValues.TimelineRange;
-import com.example.particlelab.entities.particles.attributes.attributeValues.TintTimeline;
-import com.example.particlelab.entities.textures.Texture;
-import com.example.particlelab.rendering.Timer;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Random;
-
-/**
- * Created by Julian on 05.08.2016.
- */
-public class ParticleEffect {
-
- private TimelineRange life;
- //Particle Timeline
- private TimelineRange scale;
- private TimelineRange velocity;
- private TimelineRange angle;
- private TimelineRange rotation;
- private Timeline transparency;
- private TintTimeline tint;
-
- //Source Timeline
- private Range delay;
- private Range duration;
- private TimelineRange emission;
- private Range xOffset;
- private Range yOffset;
- private SpawnShape.Shape spawnShape;
- private TimelineRange spawnWidth;
- private TimelineRange spawnHeight;
- private TimelineRange wind;
- private TimelineRange gravity;
-
- private Options options;
- private Texture texture;
- private String textureName;
-
- private Random random;
- private List sources = new ArrayList<>();
-
- public ParticleEffect() {
- this.random = new Random();
- }
-
- public void update(Timer timer) {
- for (ParticleSource source : sources)
- source.update(timer);
- }
-
- public ParticleData createParticleData(){
- return new ParticleData(life.getRange(), scale, velocity, angle, rotation, transparency, tint);
- }
-
- public Random getRandom() {
- return random;
- }
-
- public void addSource(ParticleSource source) {
- sources.add(source);
- }
-
- public void setDelay(Range delay) {
- this.delay = delay;
- }
-
- public void setDuration(Range duration) {
- this.duration = duration;
- }
-
- public void setEmission(TimelineRange emission) {
- this.emission = emission;
- }
-
- public void setLife(TimelineRange life) {
- this.life = life;
- }
-
- public void setxOffset(Range xOffset) {
- this.xOffset = xOffset;
- }
-
- public void setyOffset(Range yOffset) {
- this.yOffset = yOffset;
- }
-
- public void setSpawnShape(SpawnShape.Shape spawnShape) {
- this.spawnShape = spawnShape;
- }
-
- public void setSpawnWidth(TimelineRange spawnWidth) {
- this.spawnWidth = spawnWidth;
- }
-
- public void setSpawnHeight(TimelineRange spawnHeight) {
- this.spawnHeight = spawnHeight;
- }
-
- public void setScale(TimelineRange scale) {
- this.scale = scale;
- }
-
- public void setVelocity(TimelineRange velocity) {
- this.velocity = velocity;
- }
-
- public void setAngle(TimelineRange angle) {
- this.angle = angle;
- }
-
- public void setRotation(TimelineRange rotation) {
- this.rotation = rotation;
- }
-
- public void setWind(TimelineRange wind) {
- this.wind = wind;
- }
-
- public void setGravity(TimelineRange gravity) {
- this.gravity = gravity;
- }
-
- public void setTint(TintTimeline tint) {
- this.tint = tint;
- }
-
- public void setTransparency(Timeline transparency) {
- this.transparency = transparency;
- }
-
- public Timeline getTransparency() {
- return transparency;
- }
-
- public TintTimeline getTint() {
- return tint;
- }
-
- public void setOptions(Options options) {
- this.options = options;
- }
-
- public void setTexture(Texture texture) {
- this.texture = texture;
- }
-
- public void setTextureName(String textureName) {
- this.textureName = textureName;
- }
-
- public String getTextureName() {
- return textureName;
- }
-
- public Texture getTexture() {
- return texture;
- }
-
- public Range getDelay() {
- return delay;
- }
-
- public Range getDuration() {
- return duration;
- }
-
- public TimelineRange getEmission() {
- return emission;
- }
-
- public Options getOptions() {
- return options;
- }
-
- public TimelineRange getWind() {
- return wind;
- }
-
- public TimelineRange getGravity() {
- return gravity;
- }
-
- public Range getxOffset() {
- return xOffset;
- }
-
- public Range getyOffset() {
- return yOffset;
- }
-
- public List getSources() {
- return sources;
- }
-
- public TimelineRange getLife() {
- return life;
- }
-
- public SpawnShape.Shape getSpawnShape() {
- return spawnShape;
- }
-
- public TimelineRange getSpawnHeight() {
- return spawnHeight;
- }
-
- public TimelineRange getSpawnWidth() {
- return spawnWidth;
- }
-}
-
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleReader.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleReader.java
deleted file mode 100644
index 3e6e9b6..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleReader.java
+++ /dev/null
@@ -1,164 +0,0 @@
-package com.example.particlelab.entities.particles;
-
-import android.content.Context;
-
-import com.example.particlelab.entities.particles.attributes.Attribute;
-import com.example.particlelab.entities.particles.attributes.AttributeValueReader;
-import com.example.particlelab.entities.particles.attributes.ParticleAttributeType;
-import com.example.particlelab.entities.particles.attributes.attributeValues.ImagePath;
-import com.example.particlelab.entities.particles.attributes.attributeValues.Options;
-import com.example.particlelab.entities.particles.attributes.attributeValues.ParticleAttributeValueType;
-import com.example.particlelab.entities.particles.attributes.attributeValues.Range;
-import com.example.particlelab.entities.particles.attributes.attributeValues.SpawnShape;
-import com.example.particlelab.entities.particles.attributes.attributeValues.Timeline;
-import com.example.particlelab.entities.particles.attributes.attributeValues.TimelineRange;
-import com.example.particlelab.entities.particles.attributes.attributeValues.TintTimeline;
-import com.example.particlelab.main.GameLog;
-
-import java.io.BufferedReader;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class ParticleReader {
-
- private Context context;
- private AttributeValueReader attributeValueReader;
-
- private List attributes;
- private Attribute currentAttribute;
-
- public ParticleReader(Context context) {
- this.context = context;
- attributeValueReader = new AttributeValueReader();
- }
-
- /**
- * reads ParticleEffect from *.pe files
- * !Ignores COUNT, LIFE_OFFSET!
- */
- public ParticleEffect read(String filename) throws Exception {
- try {
- attributes = new ArrayList<>();
- currentAttribute = null;
- InputStream is = context.getAssets().open(filename);
- BufferedReader reader = new BufferedReader(new InputStreamReader(is));
- String line;
- while ((line = reader.readLine()) != null) {
- line = line.trim();
- handleLine(line);
- }
- reader.close();
- return createParticleEffect();
- } catch (Exception e) {
- throw new Exception("Could not read particleFile: ", e);
- }
- }
-
- private void handleLine(String line) throws Exception {
- if (line.startsWith("- ")) {
- Attribute attrib = ParticleAttributeType.getByInFileTitle(line).createInstance();
- attributes.add(attrib);
- currentAttribute = attrib;
- } else if (currentAttribute != null)
- attributeValueReader.addValueForAttribute(currentAttribute, line);
- }
-
- private ParticleEffect createParticleEffect() throws Exception {
- ParticleEffect effect = new ParticleEffect();
- Timeline timeline = null;
- Range range = null;
- for (Attribute attribute : attributes) {
- switch (attribute.getType()) {
- case DELAY:
- effect.setDelay((Range) attribute.get(ParticleAttributeValueType.RANGE));
- break;
- case DURATION:
- effect.setDuration((Range) attribute.get(ParticleAttributeValueType.RANGE));
- break;
- case COUNT:
- break;
- case EMISSION:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setEmission(new TimelineRange(timeline, range));
- break;
- case LIFE:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setLife(new TimelineRange(timeline, range));
- break;
- case LIFE_OFFSET:
- break;
- case X_OFFSET:
- effect.setxOffset((Range) attribute.get(ParticleAttributeValueType.RANGE));
- break;
- case Y_OFFSET:
- effect.setyOffset((Range) attribute.get(ParticleAttributeValueType.RANGE));
- break;
- case SPAWN_SHAPE:
- effect.setSpawnShape(((SpawnShape) attribute.get(ParticleAttributeValueType.SPAWN_SHAPE)).getShape());
- break;
- case SPAWN_WIDTH:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setSpawnWidth(new TimelineRange(timeline, range));
- break;
- case SPAWN_HEIGHT:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setSpawnHeight(new TimelineRange(timeline, range));
- break;
- case SCALE:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setScale(new TimelineRange(timeline, range));
- break;
- case VELOCITY:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setVelocity(new TimelineRange(timeline, range));
- break;
- case ANGLE:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setAngle(new TimelineRange(timeline, range));
- break;
- case ROTATION:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setRotation(new TimelineRange(timeline, range));
- break;
- case WIND:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setWind(new TimelineRange(timeline, range));
- break;
- case GRAVITY:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- range = (Range) attribute.get(ParticleAttributeValueType.RANGE);
- effect.setGravity(new TimelineRange(timeline, range));
- break;
- case TINT:
- effect.setTint((TintTimeline) attribute.get(ParticleAttributeValueType.TINT_TIMELINE));
- break;
- case TRANSPARENCY:
- timeline = (Timeline) attribute.get(ParticleAttributeValueType.TIMELINE);
- effect.setTransparency(timeline);
- break;
- case OPTIONS:
- effect.setOptions((Options) attribute.get(ParticleAttributeValueType.OPTIONS));
- break;
- case IMAGE_PATH:
- String path = ((ImagePath) attribute.get(ParticleAttributeValueType.IMAGE_PATH)).getImagePath();
- effect.setTextureName(path);
- break;
- }
- }
- return effect;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleSource.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleSource.java
deleted file mode 100644
index 9d57a0d..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleSource.java
+++ /dev/null
@@ -1,150 +0,0 @@
-package com.example.particlelab.entities.particles;
-
-import com.example.particlelab.data.Vector;
-import com.example.particlelab.entities.particles.attributes.attributeValues.SpawnShape;
-import com.example.particlelab.main.GameLog;
-import com.example.particlelab.rendering.Lock;
-import com.example.particlelab.rendering.Timer;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Random;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class ParticleSource {
-
- private Vector position;
- private ParticleEffect effect;
- private Random random;
-
- private boolean alife;
- private float currentDelay;
- private float lifePercent;
- private float maxTime = -1;
- private float passedTime;
- private float emittPause;
- private float passedEmittPause;
- private float passedSecond;
- private float windStrength;
- private float gravityStrength;
- private Vector spawnSize = null;
-
- private ParticleData particleData;
- private List activeParticles = new ArrayList<>();
- private List inactiveParticles = new ArrayList<>();
- private Lock activeParticleLock = new Lock();
-
- public ParticleSource(Vector position, ParticleEffect effect) {
- this.position = position;
- this.effect = effect;
- random = effect.getRandom();
- effect.addSource(this);
- }
-
- public void start() {
- alife = true;
- currentDelay = effect.getDelay().createValue(random, 0);
- maxTime = effect.getDuration().createValue(random, 0) + currentDelay;
- passedTime = 0;
- emittPause = calcEmittPause();
- passedEmittPause = 0;
- passedSecond = 0;
- lifePercent = 0;
- }
-
- public void update(Timer timer) {
- if (alife) {
- passedTime += timer.getFrameTime();
- lifePercent = passedTime / maxTime;
-
- if (passedTime >= currentDelay) {
- passedEmittPause += timer.getFrameTime();
- calcWindAndGravity();
- while (passedEmittPause >= emittPause) {
- passedEmittPause -= emittPause;
- emitt();
- }
-
- passedSecond += timer.getFrameTime();
- if (passedSecond >= 1000) {
- passedSecond -= 1000;
- calcEmittPause();
- }
- }
- if (passedTime >= maxTime)
- die();
- }
- updateParticles(timer);
- }
-
- private void updateParticles(Timer timer) {
- activeParticleLock.lock();
- Iterator iter = activeParticles.iterator();
- while (iter.hasNext()) {
- Particle particle = iter.next();
- particle.update(timer, windStrength, gravityStrength);
- if (!particle.isActive()) {
- inactiveParticles.add(particle);
- iter.remove();
- } else {
- particle.move(new Vector(particle.getMovement()).mul(timer.getFrameTime() / 1000));
- }
- }
- activeParticleLock.unlock();
- }
-
- private void die() {
- alife = false;
- if (effect.getOptions().isContinuous())
- start();
- }
-
- public void emitt() {
- if (particleData == null)
- particleData = effect.createParticleData();
- float xOff = effect.getxOffset().createValue(random, 0) * ParticleSystem.TRANSFER_VALUE;
- float yOff = effect.getyOffset().createValue(random, 0) * ParticleSystem.TRANSFER_VALUE;
- if (effect.getSpawnShape() == SpawnShape.Shape.SQUARE) {
- float width = effect.getSpawnWidth().getRange().createValue(random, effect.getSpawnWidth().getTimeline().getValueAtTime(lifePercent));
- float height = effect.getSpawnHeight().getRange().createValue(random, effect.getSpawnHeight().getTimeline().getValueAtTime(lifePercent));
- xOff += (random.nextFloat() * width - width * 0.5f)*ParticleSystem.TRANSFER_VALUE;
- yOff += (random.nextFloat() * height - height * 0.5f)*ParticleSystem.TRANSFER_VALUE;
- }
- setUpParticle(new Vector(position).translate(xOff, yOff));
- }
-
- private Particle setUpParticle(Vector position) {
- Particle particle;
- if (inactiveParticles.size() > 0)
- particle = inactiveParticles.remove(0);
- else
- particle = new Particle(random);
-
- particle.activate(position, effect.getLife().getTimeline().getValueAtTime(lifePercent), particleData);
- activeParticleLock.lock();
- activeParticles.add(particle);
- activeParticleLock.unlock();
- return particle;
- }
-
- private void calcWindAndGravity() {
- windStrength = effect.getWind().getRange().createValue(random, effect.getWind().getTimeline().getValueAtTime(lifePercent));
- gravityStrength = effect.getGravity().getRange().createValue(random, effect.getGravity().getTimeline().getValueAtTime(lifePercent));
- }
-
- private float calcEmittPause() {
- float emittedPerSecond = effect.getEmission().getRange().createValue(random, effect.getEmission().getTimeline().getValueAtTime(passedTime / maxTime));
- return 1000 / emittedPerSecond;
- }
-
- public Lock getActiveParticleLock() {
- return activeParticleLock;
- }
-
- public List getActiveParticles() {
- return activeParticles;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleSystem.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleSystem.java
deleted file mode 100644
index 28c0039..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/ParticleSystem.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.example.particlelab.entities.particles;
-
-import android.content.Context;
-
-import com.example.particlelab.entities.textures.TextureLoader;
-import com.example.particlelab.rendering.Timer;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class ParticleSystem {
-
- public static final float TRANSFER_VALUE = 0.002f;
- public final ParticleEffect explosion;
- private ParticleEffect[] effects;
-
- private TextureLoader textureLoader;
-
- public ParticleSystem(Context context) throws Exception {
- this.textureLoader = new TextureLoader(context);
- ParticleReader reader = new ParticleReader(context);
- explosion = reader.read("explosion.pe");
-
- effects = new ParticleEffect[]{explosion};
- }
-
- public void update(Timer timer) {
- for (ParticleEffect effect : effects)
- effect.update(timer);
- }
-
- public void loadTextures() throws Exception {
- for (ParticleEffect effect : effects)
- effect.setTexture(textureLoader.loadTexture(effect.getTextureName()));
- }
-
- public ParticleEffect[] getEffects() {
- return effects;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/Attribute.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/Attribute.java
deleted file mode 100644
index 9325c0d..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/Attribute.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package com.example.particlelab.entities.particles.attributes;
-
-import com.example.particlelab.entities.particles.attributes.attributeValues.ParticleAttributeValue;
-import com.example.particlelab.entities.particles.attributes.attributeValues.ParticleAttributeValueType;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class Attribute {
-
- private ParticleAttributeType type;
- private List values = new ArrayList<>();
-
- public Attribute(ParticleAttributeType type, ParticleAttributeValueType... valueTypes) {
- this.type = type;
- for (ParticleAttributeValueType valueType : valueTypes)
- values.add(valueType.createInstance());
- }
-
- public ParticleAttributeValue get(ParticleAttributeValueType valueType) throws Exception {
- for (ParticleAttributeValue v : values)
- if (v.getType() == valueType)
- return v;
- throw new Exception("ParticleAttributeValue with type: " + valueType + " does not exist in Attribute "+type);
- }
-
- public ParticleAttributeType getType() {
- return type;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/AttributeValueReader.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/AttributeValueReader.java
deleted file mode 100644
index afdb8fd..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/AttributeValueReader.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package com.example.particlelab.entities.particles.attributes;
-
-import com.example.particlelab.entities.particles.attributes.attributeValues.ImagePath;
-import com.example.particlelab.entities.particles.attributes.attributeValues.Options;
-import com.example.particlelab.entities.particles.attributes.attributeValues.ParticleAttributeValueType;
-import com.example.particlelab.entities.particles.attributes.attributeValues.Range;
-import com.example.particlelab.entities.particles.attributes.attributeValues.SpawnShape;
-import com.example.particlelab.entities.particles.attributes.attributeValues.Timeline;
-import com.example.particlelab.entities.particles.attributes.attributeValues.TintTimeline;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class AttributeValueReader {
-
- public void addValueForAttribute(Attribute attribute, String line) throws Exception {
- //RANGE
- if (line.startsWith("lowMin:") || line.startsWith("min:"))
- ((Range) attribute.get(ParticleAttributeValueType.RANGE)).setLowMin(parseFloat(line));
- else if (line.startsWith("lowMax:") || line.startsWith("max:"))
- ((Range) attribute.get(ParticleAttributeValueType.RANGE)).setLowMax(parseFloat(line));
- else if (line.startsWith("highMin:"))
- ((Range) attribute.get(ParticleAttributeValueType.RANGE)).setHighMin(parseFloat(line));
- else if (line.startsWith("highMax:"))
- ((Range) attribute.get(ParticleAttributeValueType.RANGE)).setHighMax(parseFloat(line));
- //TIMELINE
- else if (!line.startsWith("scalingCount") && line.startsWith("scaling"))
- ((Timeline) attribute.get(ParticleAttributeValueType.TIMELINE)).setValueOfPoint(parseTimeLineIndex("scaling", line), parseFloat(line));
- else if (!line.startsWith("timelineCount") && line.startsWith("timeline") && attribute.getType() != ParticleAttributeType.TINT)
- ((Timeline) attribute.get(ParticleAttributeValueType.TIMELINE)).setTimeOfPoint(parseTimeLineIndex("timeline", line), parseFloat(line));
- //TINT_TIMELINE
- else if (!line.startsWith("colorsCount") && line.startsWith("colors")) {
- int index = parseTimeLineIndex("colors", line);
- ((TintTimeline) attribute.get(ParticleAttributeValueType.TINT_TIMELINE)).setValueOfPoint((int) (index / 3f), index % 3, parseFloat(line));
- } else if (!line.startsWith("timelineCount") && line.startsWith("timeline") && attribute.getType() == ParticleAttributeType.TINT)
- ((TintTimeline) attribute.get(ParticleAttributeValueType.TINT_TIMELINE)).setTimeOfPoint(parseTimeLineIndex("timeline", line), parseFloat(line));
- //SPAWN_SHAPE
- else if (line.startsWith("shape:"))
- ((SpawnShape) attribute.get(ParticleAttributeValueType.SPAWN_SHAPE)).setShape(SpawnShape.Shape.byName(parseString(line)));
- //OPTIONS
- else if (line.startsWith("attached:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setAttached(parseBoolean(line));
- else if (line.startsWith("continuous:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setContinuous(parseBoolean(line));
- else if (line.startsWith("aligned:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setAligned(parseBoolean(line));
- else if (line.startsWith("additive:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setAdditive(parseBoolean(line));
- else if (line.startsWith("behind:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setBehind(parseBoolean(line));
- else if (line.startsWith("premultipliedAlpha:"))
- ((Options) attribute.get(ParticleAttributeValueType.OPTIONS)).setPremultipliedAlpha(parseBoolean(line));
- //IMAGE PATH
- else if (attribute.getType() == ParticleAttributeType.IMAGE_PATH)
- ((ImagePath) attribute.get(ParticleAttributeValueType.IMAGE_PATH)).setImagePath(line);
- }
-
- private int parseTimeLineIndex(String start, String line) throws Exception {
- String asString = line.split(start)[1].split(":")[0];
- return Integer.parseInt(asString);
- }
-
- private float parseFloat(String line) throws Exception {
- String asString = line.split(" ")[1];
- return Float.parseFloat(asString);
- }
-
- private String parseString(String line) throws Exception {
- return line.split(" ")[1];
- }
-
- private boolean parseBoolean(String line) throws Exception {
- String asString = line.split(" ")[1];
- return Boolean.parseBoolean(asString);
- }
-
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/ParticleAttributeType.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/ParticleAttributeType.java
deleted file mode 100644
index 74b54d0..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/ParticleAttributeType.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package com.example.particlelab.entities.particles.attributes;
-
-import com.example.particlelab.entities.particles.attributes.attributeValues.ParticleAttributeValueType;
-
-public enum ParticleAttributeType {
- NONE(""),
- DELAY("Delay", ParticleAttributeValueType.RANGE),
- DURATION("Duration", ParticleAttributeValueType.RANGE),
- COUNT("Count", ParticleAttributeValueType.RANGE),
- EMISSION("Emission", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- LIFE("Life", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- LIFE_OFFSET("Life Offset", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- X_OFFSET("X Offset", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- Y_OFFSET("Y Offset", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- SPAWN_SHAPE("Spawn Shape", ParticleAttributeValueType.SPAWN_SHAPE),
- SPAWN_WIDTH("Spawn Width", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- SPAWN_HEIGHT("Spawn Height", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- SCALE("Scale", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- VELOCITY("Velocity", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- ANGLE("Angle", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- ROTATION("Rotation", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- WIND("Wind", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- GRAVITY("Gravity", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- TINT("Tint", ParticleAttributeValueType.TINT_TIMELINE),
- TRANSPARENCY("Transparency", ParticleAttributeValueType.RANGE, ParticleAttributeValueType.TIMELINE),
- OPTIONS("Options", ParticleAttributeValueType.OPTIONS),
- IMAGE_PATH("Image Path", ParticleAttributeValueType.IMAGE_PATH);
-
- private String name;
- private ParticleAttributeValueType[] valueTypes;
-
- ParticleAttributeType(String name, ParticleAttributeValueType... valueTypes) {
- this.name = name;
- this.valueTypes = valueTypes;
- }
-
- private String getInFileTitle() {
- return "- " + name + " -";
- }
-
- public static ParticleAttributeType getByInFileTitle(String title) throws Exception {
- for (ParticleAttributeType setting : values()) {
- if (setting != NONE && setting.getInFileTitle().equals(title))
- return setting;
- }
- throw new Exception("Could not find ParticleAttributeType by title: " + title);
- }
-
- public Attribute createInstance() throws Exception {
- if (this == NONE)
- throw new Exception("Cannot create Instance from Attribute NONE");
- return new Attribute(this, valueTypes);
- }
-
-}
\ No newline at end of file
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/ImagePath.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/ImagePath.java
deleted file mode 100644
index 7ee70fd..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/ImagePath.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.example.particlelab.entities.particles.attributes.attributeValues;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class ImagePath extends ParticleAttributeValue {
-
- private String imagePath;
-
- public ImagePath() {
- super(ParticleAttributeValueType.IMAGE_PATH);
- }
-
- public String getImagePath() {
- return imagePath;
- }
-
- public void setImagePath(String imagePath) {
- this.imagePath = imagePath;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/Options.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/Options.java
deleted file mode 100644
index 125f25c..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/Options.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package com.example.particlelab.entities.particles.attributes.attributeValues;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class Options extends ParticleAttributeValue {
-
- private boolean attached;
- private boolean continuous;
- private boolean aligned;
- private boolean additive;
- private boolean behind;
- private boolean premultipliedAlpha;
-
- public Options() {
- super(ParticleAttributeValueType.OPTIONS);
- }
-
- public boolean isAttached() {
- return attached;
- }
-
- public void setAttached(boolean attached) {
- this.attached = attached;
- }
-
- public boolean isContinuous() {
- return continuous;
- }
-
- public void setContinuous(boolean continuous) {
- this.continuous = continuous;
- }
-
- public boolean isAligned() {
- return aligned;
- }
-
- public void setAligned(boolean aligned) {
- this.aligned = aligned;
- }
-
- public boolean isAdditive() {
- return additive;
- }
-
- public void setAdditive(boolean additive) {
- this.additive = additive;
- }
-
- public boolean isBehind() {
- return behind;
- }
-
- public void setBehind(boolean behind) {
- this.behind = behind;
- }
-
- public boolean isPremultipliedAlpha() {
- return premultipliedAlpha;
- }
-
- public void setPremultipliedAlpha(boolean premultipliedAlpha) {
- this.premultipliedAlpha = premultipliedAlpha;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/ParticleAttributeValue.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/ParticleAttributeValue.java
deleted file mode 100644
index 50b349d..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/ParticleAttributeValue.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.example.particlelab.entities.particles.attributes.attributeValues;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public abstract class ParticleAttributeValue {
-
- private ParticleAttributeValueType type;
-
- public ParticleAttributeValue(ParticleAttributeValueType type){
- this.type = type;
- }
-
- public ParticleAttributeValueType getType() {
- return type;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/ParticleAttributeValueType.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/ParticleAttributeValueType.java
deleted file mode 100644
index bf18bf0..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/ParticleAttributeValueType.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.example.particlelab.entities.particles.attributes.attributeValues;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public enum ParticleAttributeValueType {
-
- RANGE, TIMELINE, TINT_TIMELINE, SPAWN_SHAPE, OPTIONS, IMAGE_PATH;
-
- public ParticleAttributeValue createInstance(){
- switch (this){
- case RANGE:
- return new Range();
- case TIMELINE:
- return new Timeline();
- case TINT_TIMELINE:
- return new TintTimeline();
- case SPAWN_SHAPE:
- return new SpawnShape();
- case OPTIONS:
- return new Options();
- case IMAGE_PATH:
- return new ImagePath();
- }
- return null;
- }
-
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/Range.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/Range.java
deleted file mode 100644
index d6edb15..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/Range.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package com.example.particlelab.entities.particles.attributes.attributeValues;
-
-import java.util.Random;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class Range extends ParticleAttributeValue {
-
- private float lowMin;
- private float lowMax;
- private float highMin;
- private float highMax;
-
- public Range() {
- super(ParticleAttributeValueType.RANGE);
- }
-
- public Range createNormalizedInstance(Random random) {
- Range range = new Range();
- float high = createHighValue(random);
- range.setHighMax(high);
- range.setHighMin(high);
- float low = createLowValue(random);
- range.setLowMax(low);
- range.setLowMin(low);
- return range;
- }
-
- public float createValue(Random random, float mix) {
- if (mix == 1)
- return createHighValue(random);
- else if (mix == 0)
- return createLowValue(random);
- else {
- float highValue = createHighValue(random);
- float lowValue = createLowValue(random);
- return mix * (highValue - lowValue) + lowValue;
- }
- }
-
- private float createHighValue(Random random) {
- float min = highMin;
- float max = highMax;
- if (min == max)
- return min;
- return random.nextFloat() * (max - min) + min;
- }
-
- private float createLowValue(Random random) {
- float min = lowMin;
- float max = lowMax;
- if (min == max)
- return min;
- return random.nextFloat() * (max - min) + min;
- }
-
- public void setLowMin(float lowMin) {
- this.lowMin = lowMin;
- }
-
- public void setLowMax(float lowMax) {
- this.lowMax = lowMax;
- }
-
- public void setHighMin(float highMin) {
- this.highMin = highMin;
- }
-
- public void setHighMax(float highMax) {
- this.highMax = highMax;
- }
-
- private boolean isLowDifference() {
- return lowMin - lowMax != 0;
- }
-
- private boolean isHighDifference() {
- return highMin - highMax != 0;
- }
-
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/SpawnShape.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/SpawnShape.java
deleted file mode 100644
index b52acf9..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/SpawnShape.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.example.particlelab.entities.particles.attributes.attributeValues;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class SpawnShape extends ParticleAttributeValue {
-
- public enum Shape {
- POINT("point"), SQUARE("square");
-
- private String name;
-
- Shape(String name) {
- this.name = name;
- }
-
- public static Shape byName(String text) throws Exception{
- for(Shape shape : values())
- if(shape.name.equals(text))
- return shape;
- throw new Exception("Shape with name \""+text+"\" does not exist");
- }
- }
-
- private Shape shape;
-
- public SpawnShape() {
- super(ParticleAttributeValueType.SPAWN_SHAPE);
- }
-
- public Shape getShape() {
- return shape;
- }
-
- public void setShape(Shape shape) {
- this.shape = shape;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/Timeline.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/Timeline.java
deleted file mode 100644
index e5b81b4..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/Timeline.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package com.example.particlelab.entities.particles.attributes.attributeValues;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class Timeline extends ParticleAttributeValue {
-
- private List points = new ArrayList<>();
-
- public Timeline() {
- super(ParticleAttributeValueType.TIMELINE);
- }
-
- public void setValueOfPoint(int index, float value) {
- if (points.size() <= index) {
- points.add(new TimelinePoint());
- }
- points.get(index).setValue(value);
- }
-
- public void setTimeOfPoint(int index, float time) {
- if (points.size() <= index) {
- points.add(new TimelinePoint());
- }
- points.get(index).setTime(time);
- }
-
- public float getValueAtTime(float time) {
- TimelinePoint left = null, right = null;
- for (TimelinePoint point : points) {
- if (point.getTime() <= time) {
- if (left == null || left.getTime() < point.getTime())
- left = point;
- } else if (right == null || right.getTime() > point.getTime())
- right = point;
- }
- if (left != null) {
- if (right != null) {
- float leftDist = 1 - Math.abs(left.getTime() - time);
- float rightDist = 1 - Math.abs(right.getTime() - time);
- float totalDist = leftDist + rightDist;
- return left.getValue() * (leftDist / totalDist) + right.getValue() * (rightDist / totalDist);
- }
- return left.getValue();
- }
- return 0;
- }
-
-}
\ No newline at end of file
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TimelinePoint.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TimelinePoint.java
deleted file mode 100644
index 56e9901..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TimelinePoint.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.example.particlelab.entities.particles.attributes.attributeValues;
-
-public class TimelinePoint {
-
- private float time, value;
-
- public float getTime() {
- return time;
- }
-
- public void setTime(float time) {
- this.time = time;
- }
-
- public float getValue() {
- return value;
- }
-
- public void setValue(float value) {
- this.value = value;
- }
-
-}
\ No newline at end of file
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TimelineRange.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TimelineRange.java
deleted file mode 100644
index 92aa470..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TimelineRange.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.example.particlelab.entities.particles.attributes.attributeValues;
-
-import com.example.particlelab.entities.particles.attributes.attributeValues.Range;
-import com.example.particlelab.entities.particles.attributes.attributeValues.Timeline;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class TimelineRange {
-
- private Timeline timeline;
- private Range range;
-
- public TimelineRange(Timeline timeline, Range range) {
- this.timeline = timeline;
- this.range = range;
- }
-
- public Timeline getTimeline() {
- return timeline;
- }
-
- public void setTimeline(Timeline timeline) {
- this.timeline = timeline;
- }
-
- public Range getRange() {
- return range;
- }
-
- public void setRange(Range range) {
- this.range = range;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TintTimeline.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TintTimeline.java
deleted file mode 100644
index 4e331ca..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TintTimeline.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package com.example.particlelab.entities.particles.attributes.attributeValues;
-
-import com.example.particlelab.data.Color;
-import com.example.particlelab.main.GameLog;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class TintTimeline extends ParticleAttributeValue {
-
- private List points = new ArrayList<>();
-
- public TintTimeline() {
- super(ParticleAttributeValueType.TINT_TIMELINE);
- }
-
- public void setValueOfPoint(int index, int colorIndex, float value) {
- GameLog.i("Set value: index="+index+"; colorIndex="+colorIndex+"; value="+value);
- if (points.size() <= index) {
- points.add(new TintTimelinePoint());
- }
- points.get(index).setValue(colorIndex, value);
- }
-
- public void setTimeOfPoint(int index, float time) {
- GameLog.i("Set time: index="+index+"; time="+time);
- if (points.size() <= index) {
- points.add(new TintTimelinePoint());
- }
- points.get(index).setTime(time);
- }
-
- public Color getValueAtTime(float time) {
- TintTimelinePoint left = null, right = null;
- for (TintTimelinePoint point : points) {
- if (point.getTime() <= time) {
- if (left == null || left.getTime() < point.getTime())
- left = point;
- } else if (right == null || right.getTime() > point.getTime())
- right = point;
- }
- if (left != null) {
- if (right != null) {
- float leftDist = 1 - Math.abs(left.getTime() - time);
- float rightDist = 1 - Math.abs(right.getTime() - time);
- float totalDist = leftDist + rightDist;
- return left.getColor().mix((leftDist / totalDist), (rightDist / totalDist), right.getColor());
- }
- return left.getColor();
- }
- return new Color();
- }
-
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TintTimelinePoint.java b/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TintTimelinePoint.java
deleted file mode 100644
index 34b9526..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/particles/attributes/attributeValues/TintTimelinePoint.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package com.example.particlelab.entities.particles.attributes.attributeValues;
-
-import com.example.particlelab.data.Color;
-
-public class TintTimelinePoint {
-
- private float time;
- private Color color;
-
- public float getTime() {
- return time;
- }
-
- public void setTime(float time) {
- this.time = time;
- }
-
- public Color getColor() {
- return color;
- }
-
- public void setValue(int colorIndex, float value) {
- if (color == null)
- color = new Color();
- if (colorIndex == 0)
- color.setR(value);
- else if (colorIndex == 1)
- color.setG(value);
- else if (colorIndex == 2)
- color.setB(value);
- }
-
-}
\ No newline at end of file
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/textures/Texture.java b/particlelab/src/main/java/com/example/particlelab/entities/textures/Texture.java
deleted file mode 100644
index 0a2596b..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/textures/Texture.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.example.particlelab.entities.textures;
-
-/**
- * Created by Julian on 11.12.2015.
- */
-public class Texture {
-
- private int id;
- private int atlasWidth;
- private int atlasHeight;
- private int atlasIndex;
-
- public Texture(int id, int atlasWidth, int atlasHeight) {
- this.id = id;
- this.atlasWidth = atlasWidth;
- this.atlasHeight = atlasHeight;
- }
-
- public Texture(Texture other) {
- this.id = other.getId();
- this.atlasWidth = other.getAtlasWidth();
- this.atlasHeight = other.getAtlasHeight();
- }
-
- public int getId() {
- return id;
- }
-
- public int getAtlasWidth() {
- return atlasWidth;
- }
-
- public int getAtlasHeight() {
- return atlasHeight;
- }
-
- public int getAtlasIndex() {
- return atlasIndex;
- }
-
- public void setAtlasIndex(int atlasIndex) {
- this.atlasIndex = atlasIndex;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/textures/TextureLoader.java b/particlelab/src/main/java/com/example/particlelab/entities/textures/TextureLoader.java
deleted file mode 100644
index 548bd10..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/textures/TextureLoader.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.example.particlelab.entities.textures;
-
-import android.content.Context;
-import android.graphics.Bitmap;
-import android.graphics.BitmapFactory;
-import android.opengl.GLES20;
-import android.opengl.GLUtils;
-
-import com.example.particlelab.main.GameLog;
-
-import java.io.InputStream;
-
-/**
- * Created by Julian on 26.11.2015.
- */
-public class TextureLoader {
-
- private Context context;
-
- public TextureLoader(Context context) {
- this.context = context;
- }
-
- public int loadTextureId(int texture, boolean isAtlas) {
- Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), texture);
- return loadTextureId(bitmap, isAtlas);
- }
-
- public Texture loadTexture(String inAssetsLocation) throws Exception {
- InputStream is = context.getAssets().open(inAssetsLocation);
- BitmapFactory.Options options = new BitmapFactory.Options();
- options.inScaled = false;
- Bitmap bitmap = BitmapFactory.decodeStream(is, null, options);
- return new Texture(loadTextureId(bitmap, false), 1, 1);
- }
-
- private int loadTextureId(Bitmap bitmap, boolean isAtlas) {
- int id = genTexture();
-
- GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, id);
- if (!isAtlas) {
- GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST);
- GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);
- } else {
- GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST);
- GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);
- }
-
- GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);
-
- bitmap.recycle();
- GameLog.d("Texture " + id + " successfully loaded");
- return id;
- }
-
- private int genTexture() {
- int[] idField = new int[1];
- GLES20.glGenTextures(1, idField, 0);
- return idField[0];
- }
-
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/entities/textures/TexturePack.java b/particlelab/src/main/java/com/example/particlelab/entities/textures/TexturePack.java
deleted file mode 100644
index ea0e48e..0000000
--- a/particlelab/src/main/java/com/example/particlelab/entities/textures/TexturePack.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package com.example.particlelab.entities.textures;
-
-import android.content.Context;
-
-import com.example.particlelab.R;
-
-/**
- * Created by Julian on 05.12.2015.
- */
-public class TexturePack {
-
- private TextureLoader loader;
-
- public final Texture star;
- public final Texture yellowParticle;
- public final Texture redParticle;
-
- public TexturePack(Context context) {
- loader = new TextureLoader(context);
- star = loadTexture(R.drawable.star);
-
- yellowParticle = loadTexture(R.drawable.yellowparticle);
- redParticle = loadTexture(R.drawable.redparticle);
- }
-
- private Texture loadTexture(int id) {
- int texId = loader.loadTextureId(id, false);
- return new Texture(texId, 1, 1);
- }
-
- public Texture loadAtlas(int id, int atlasWidth, int atlasHeight) {
- int texId = loader.loadTextureId(id, true);
- return new Texture(texId, atlasWidth, atlasHeight);
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/main/GameLog.java b/particlelab/src/main/java/com/example/particlelab/main/GameLog.java
deleted file mode 100644
index 580b44b..0000000
--- a/particlelab/src/main/java/com/example/particlelab/main/GameLog.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.example.particlelab.main;
-
-import android.util.Log;
-
-/**
- * Created by Julian on 23.11.2015.
- */
-public class GameLog {
-
- private final static String TAG = "GameLog";
- public static boolean debugging = true;
-
- public static void i(String message) {
- Log.i(TAG + getCallerInfo(), message);
- }
-
- public static void d(String message) {
- if (debugging)
- Log.d(TAG + getCallerInfo(), message);
- }
-
- public static void e(String message) {
- Log.e(TAG + getCallerInfo(), message);
- }
-
- public static void e(Throwable error) {
- Log.e(TAG + getCallerInfo(), error.getMessage(), error);
- }
-
- //Possible to get Method which called i, d, e
- //Method found at stack[4]
- public static void stack() {
- StackTraceElement[] stack = Thread.currentThread().getStackTrace();
- Log.i(TAG + "Stack", "StackSize: " + stack.length);
- for (int i = 0; i < stack.length; i++) {
- Log.i(TAG + "Stack", i + ": " + stack[i]);
- }
- }
-
- private static String getCallerInfo() {
- StackTraceElement[] stack = Thread.currentThread().getStackTrace();
- return "(" + stack[4].getFileName() + ", " + stack[4].getMethodName() + ", " + stack[4].getLineNumber() + ")";
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/main/MainActivity.java b/particlelab/src/main/java/com/example/particlelab/main/MainActivity.java
deleted file mode 100644
index 253d1eb..0000000
--- a/particlelab/src/main/java/com/example/particlelab/main/MainActivity.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package com.example.particlelab.main;
-
-import android.app.Activity;
-import android.app.ActivityManager;
-import android.content.Context;
-import android.content.pm.ConfigurationInfo;
-import android.content.res.Configuration;
-import android.os.Bundle;
-import android.view.Window;
-import android.view.WindowManager;
-
-import com.example.particlelab.entities.particles.ParticleReader;
-import com.example.particlelab.entities.particles.ParticleSystem;
-import com.example.particlelab.rendering.GameRenderer;
-import com.example.particlelab.rendering.Rendering;
-
-/**
- * Created by Julian on 02.08.2016.
- */
-public class MainActivity extends Activity {
-
- private MyGlSurfaceView glSurfaceView;
- private ParticleSystem particleSystem;
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- try {
- GameLog.d("OnCreate");
- super.onCreate(savedInstanceState);
- super.requestWindowFeature(Window.FEATURE_NO_TITLE);
- super.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
- WindowManager.LayoutParams.FLAG_FULLSCREEN);
- if (!hasGLES20())
- throw new Exception("OpenGL ES 2.0 not supported");
-
- particleSystem = new ParticleSystem(this);
- Rendering rendering = new Rendering(this, particleSystem);
- glSurfaceView = new MyGlSurfaceView(this, new GameRenderer(this,rendering));
- super.setContentView(glSurfaceView);
- } catch (Exception e) {
- onException(e);
- }
- }
-
- public void onException(Exception e) {
- GameLog.e(e);
- super.finish();
- }
-
- @Override
- protected void onPause() {
- GameLog.d("OnPause");
- glSurfaceView.onPause();
- super.onPause();
- }
-
- @Override
- protected void onResume() {
- GameLog.d("OnResume");
- glSurfaceView.onResume();
- super.onResume();
- }
-
- @Override
- protected void onDestroy() {
- GameLog.d("OnDestroy");
- super.onDestroy();
- }
-
- @Override
- public void onConfigurationChanged(Configuration newConfig) {
- super.onConfigurationChanged(newConfig);
- }
-
- private boolean hasGLES20() {
- ActivityManager am = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
- ConfigurationInfo info = am.getDeviceConfigurationInfo();
- return info.reqGlEsVersion >= 0x20000;
- }
-
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/main/MyGlSurfaceView.java b/particlelab/src/main/java/com/example/particlelab/main/MyGlSurfaceView.java
deleted file mode 100644
index 2b8adf9..0000000
--- a/particlelab/src/main/java/com/example/particlelab/main/MyGlSurfaceView.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package com.example.particlelab.main;
-
-import android.content.Context;
-import android.opengl.GLSurfaceView;
-
-import com.example.particlelab.rendering.GameRenderer;
-
-/**
- * Created by Julian on 30.07.2016.
- */
-public class MyGlSurfaceView extends GLSurfaceView {
-
- private boolean rendererSet;
-
- public MyGlSurfaceView(Context context, GameRenderer gameRenderer) throws Exception {
- super(context);
- super.setEGLContextClientVersion(2);
- super.setRenderer(gameRenderer);
- rendererSet = true;
- }
-
- @Override
- public void onResume() {
- GameLog.i("SurfaceView: onResume");
- if (rendererSet)
- super.onResume();
- }
-
- @Override
- public void onPause() {
- GameLog.i("SurfaceView: onPause");
- if (rendererSet)
- super.onPause();
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/main/Scene.java b/particlelab/src/main/java/com/example/particlelab/main/Scene.java
deleted file mode 100644
index 48c205b..0000000
--- a/particlelab/src/main/java/com/example/particlelab/main/Scene.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package com.example.particlelab.main;
-
-import android.content.Context;
-
-import com.example.particlelab.data.Vector;
-import com.example.particlelab.entities.Entity;
-import com.example.particlelab.entities.particles.ParticleSource;
-import com.example.particlelab.entities.particles.ParticleSystem;
-import com.example.particlelab.entities.textures.TexturePack;
-import com.example.particlelab.rendering.Timer;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-
-/**
- * Created by Julian on 20.07.2016.
- */
-public class Scene extends ArrayList {
-
- public float cameraX;
-
- private Vector screenSize;
-
- private ParticleSystem particleSystem;
- private TexturePack textures;
-
- public Scene(Context context, TexturePack texturePack, ParticleSystem particleSystem) {
- this.particleSystem = particleSystem;
- setTexturePack(texturePack);
- new ParticleSource(new Vector(0, 0), particleSystem.explosion).start();
- }
-
- public void setTexturePack(TexturePack texturePack) {
- this.textures = texturePack;
-
- }
-
- public void update(Timer timer) {
- Iterator iterator = super.iterator();
- while (iterator.hasNext()) {
- Entity entity = iterator.next();
- Vector movement = entity.getMovement();
- Vector finalMovement = new Vector(movement).mul(timer.getFrameTime());
- entity.move(finalMovement);
- if (entity.getRightEdge() - cameraX < -3f) {
- iterator.remove();
- super.remove(entity);
- }
- }
- }
-
- public Vector calcWorldFromScreenCoords(float screenX, float screenY) throws Exception {
- if (screenSize == null)
- throw new Exception("ScreenSize not set");
- float glCoordWidth = (2f * screenSize.x / screenSize.y);
- float x = ((screenX / screenSize.x) * 2f - 1f) * glCoordWidth / 2;
- x += cameraX;
- float y = -((screenY / screenSize.y) * 2f - 1f);
- return new Vector(x, y);
- }
-
- public void setScreenSize(Vector screenSize) {
- this.screenSize = screenSize;
- }
-
- public ParticleSystem getParticleSystem() {
- return particleSystem;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/rendering/GameRenderer.java b/particlelab/src/main/java/com/example/particlelab/rendering/GameRenderer.java
deleted file mode 100644
index 8aed985..0000000
--- a/particlelab/src/main/java/com/example/particlelab/rendering/GameRenderer.java
+++ /dev/null
@@ -1,124 +0,0 @@
-package com.example.particlelab.rendering;
-
-import android.content.Context;
-import android.opengl.GLES20;
-import android.opengl.GLSurfaceView;
-
-import com.example.particlelab.data.Color;
-import com.example.particlelab.entities.Entity;
-import com.example.particlelab.entities.particles.ParticleEffect;
-import com.example.particlelab.entities.particles.ParticleSource;
-import com.example.particlelab.entities.particles.ParticleSystem;
-import com.example.particlelab.entities.textures.TexturePack;
-import com.example.particlelab.main.GameLog;
-import com.example.particlelab.main.Scene;
-
-import javax.microedition.khronos.egl.EGLConfig;
-import javax.microedition.khronos.opengles.GL10;
-
-/**
- * Created by Julian on 22.11.2015.
- */
-public class GameRenderer implements GLSurfaceView.Renderer {
-
- private Rendering rendering;
- private MatrixCreator matrixCreator;
- private boolean additiveBlending;
-
- private Color emptyColor;
- private Context context;
- private Quad quad;
- //GL Context
- private ShaderProgram shaderProgram;
- private TexturePack texturePack;
- private Timer timer;
-
- public GameRenderer(Context context, Rendering rendering) {
- this.context = context;
- this.rendering = rendering;
- emptyColor = new Color(-1, -1, -1);
- matrixCreator = new MatrixCreator();
- quad = new Quad();
- }
-
- @Override
- public void onSurfaceCreated(GL10 gl, EGLConfig config) {
- GameLog.d("onSurfaceCreated");
- GLES20.glClearColor(0, 0, 0, 1.0f);
- gl.glEnable(GL10.GL_BLEND);
- gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
- try {
- shaderProgram = new ShaderProgram(context);
- texturePack = new TexturePack(context);
- timer = new Timer();
- } catch (Exception e) {
- rendering.onException(e);
- }
- rendering.initiate(texturePack, timer);
- }
-
- @Override
- public void onSurfaceChanged(GL10 gl, int width, int height) {
- GameLog.d("onSurfaceChanged: width=" + width + ", height=" + height);
- GLES20.glViewport(0, 0, width, height);
- matrixCreator.setMVPMSize(width, height);
- rendering.setScreenSize(width, height);
- }
-
- @Override
- public void onDrawFrame(GL10 gl) {
- timer.update();
- rendering.update();
- GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);
-
- Scene scene = rendering.getScene();
- ParticleSystem particleSystem = scene.getParticleSystem();
-
- shaderProgram.start();
- shaderProgram.loadMVPMatrix(matrixCreator, scene.cameraX);
- for (ParticleEffect effect : particleSystem.getEffects()) {
- gl.glActiveTexture(GL10.GL_TEXTURE0);
- gl.glBindTexture(GL10.GL_TEXTURE_2D, effect.getTexture().getId());
- shaderProgram.loadTextureAtlasInfos(effect.getTexture());
-
- if (effect.getOptions().isAdditive() && !additiveBlending)
- enableAdditiveBlending(gl);
- if (!effect.getOptions().isAdditive() && additiveBlending)
- disableAdditiveBlending(gl);
- for (ParticleSource source : effect.getSources()) {
- source.getActiveParticleLock().lock();
- for (Entity particle : source.getActiveParticles())
- renderParticle(gl, particle);
- source.getActiveParticleLock().unlock();
- }
- }
- shaderProgram.stop();
- }
-
- private void renderEntity(GL10 gl, Entity entity) {
- gl.glActiveTexture(GL10.GL_TEXTURE0);
- gl.glBindTexture(GL10.GL_TEXTURE_2D, entity.getTexture().getId());
- shaderProgram.loadTransformationMatrix(matrixCreator, entity);
- shaderProgram.loadAlpha(entity.getAlpha());
- shaderProgram.loadTextureAtlasInfos(entity.getTexture());
- shaderProgram.loadColor(entity.getColor() != null ? entity.getColor() : emptyColor);
- quad.draw();
- }
-
- private void renderParticle(GL10 gl, Entity entity) {
- shaderProgram.loadTransformationMatrix(matrixCreator, entity);
- shaderProgram.loadAlpha(entity.getAlpha());
- shaderProgram.loadColor(entity.getColor() != null ? entity.getColor() : emptyColor);
- quad.draw();
- }
-
- private void enableAdditiveBlending(GL10 gl) {
- additiveBlending = true;
- gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);
- }
-
- private void disableAdditiveBlending(GL10 gl) {
- additiveBlending = false;
- gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/rendering/Lock.java b/particlelab/src/main/java/com/example/particlelab/rendering/Lock.java
deleted file mode 100644
index f69989f..0000000
--- a/particlelab/src/main/java/com/example/particlelab/rendering/Lock.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.example.particlelab.rendering;
-
-public class Lock {
-
- private boolean isLocked = false;
-
- public synchronized void lock() {
- while (isLocked) {
- try {
- wait();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- isLocked = true;
- }
-
- public synchronized void unlock() {
- isLocked = false;
- notify();
- }
-}
\ No newline at end of file
diff --git a/particlelab/src/main/java/com/example/particlelab/rendering/MatrixCreator.java b/particlelab/src/main/java/com/example/particlelab/rendering/MatrixCreator.java
deleted file mode 100644
index 426a93f..0000000
--- a/particlelab/src/main/java/com/example/particlelab/rendering/MatrixCreator.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package com.example.particlelab.rendering;
-
-import android.opengl.Matrix;
-
-import com.example.particlelab.entities.Entity;
-import com.example.particlelab.data.Vector;
-
-/**
- * Created by Julian on 23.11.2015.
- */
-public class MatrixCreator {
-
- private float width, height;
-
- public void setMVPMSize(float width, float height) {
- this.width = width;
- this.height = height;
- }
-
- public float[] createModelViewProjectionMatrix(float cameraX) {
- float[] mvpMatrix = new float[16];
- float[] projectionMatrix = new float[16];
- float[] viewMatrix = new float[16];
-
- float ratio = width / height;
- Matrix.frustumM(projectionMatrix, 0, -ratio + cameraX, ratio + cameraX, -1, 1, 1, 2);
- Matrix.setLookAtM(viewMatrix, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0);
- Matrix.multiplyMM(mvpMatrix, 0, projectionMatrix, 0, viewMatrix, 0);
- return mvpMatrix;
- }
-
- public float[] createTransformationMatrix(Entity entity) {
- float width = entity.getWidth();
- float height = entity.getHeight();
- float rotation = entity.getRotation();
- Vector position = entity.getPosition();
- return createTransformationMatrix(width, height, rotation, position);
- }
-
- public float[] createTransformationMatrix(float width, float height, float rotation, Vector position) {
- float[] transformationMatrix = new float[16];
- Matrix.setIdentityM(transformationMatrix, 0);
- Matrix.translateM(transformationMatrix, 0, position.x, position.y, 0);
- Matrix.rotateM(transformationMatrix, 0, rotation, 0, 0, 1);
- Matrix.scaleM(transformationMatrix, 0, width * .5f, height * .5f, 0);
- return transformationMatrix;
- }
-
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/rendering/Quad.java b/particlelab/src/main/java/com/example/particlelab/rendering/Quad.java
deleted file mode 100644
index 49ba403..0000000
--- a/particlelab/src/main/java/com/example/particlelab/rendering/Quad.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package com.example.particlelab.rendering;
-
-import android.opengl.GLES20;
-
-import java.nio.ByteBuffer;
-import java.nio.ByteOrder;
-import java.nio.FloatBuffer;
-
-/**
- * Created by Julian on 26.11.2015.
- */
-public class Quad {
-
- private FloatBuffer vertexBuffer;
- private FloatBuffer textureBuffer;
-
- private float vertices[] = {1.0f, 1.0f, -1.0f, -1.0f, 1.0f, -1.0f,
- 1.0f, 1.0f, -1.0f, 1.0f, -1.0f, -1.0f};
-
- private float textures[] = {1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f,
- 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f};
-
- public Quad() {
- vertexBuffer = createEmptyFloatBuffer();
- vertexBuffer.put(vertices);
- vertexBuffer.position(0);
-
- textureBuffer = createEmptyFloatBuffer();
- textureBuffer.put(textures);
- textureBuffer.position(0);
- }
-
- private FloatBuffer createEmptyFloatBuffer() {
- ByteBuffer bb = ByteBuffer.allocateDirect(vertices.length * 4);
- bb.order(ByteOrder.nativeOrder());
- return bb.asFloatBuffer();
- }
-
- public void draw() {
- GLES20.glEnableVertexAttribArray(0);
- GLES20.glEnableVertexAttribArray(1);
- GLES20.glVertexAttribPointer(0, 2, GLES20.GL_FLOAT, false, 0, vertexBuffer);
- GLES20.glVertexAttribPointer(1, 2, GLES20.GL_FLOAT, false, 0, textureBuffer);
- GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, vertices.length / 2);
- GLES20.glDisableVertexAttribArray(1);
- GLES20.glDisableVertexAttribArray(0);
- }
-
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/rendering/Rendering.java b/particlelab/src/main/java/com/example/particlelab/rendering/Rendering.java
deleted file mode 100644
index 0a034fd..0000000
--- a/particlelab/src/main/java/com/example/particlelab/rendering/Rendering.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package com.example.particlelab.rendering;
-
-import com.example.particlelab.entities.particles.ParticleSystem;
-import com.example.particlelab.entities.textures.TexturePack;
-import com.example.particlelab.main.MainActivity;
-import com.example.particlelab.main.Scene;
-import com.example.particlelab.data.Vector;
-
-/**
- * Created by Julian on 26.11.2015.
- */
-public class Rendering {
-
- private MainActivity mainActivity;
- private ParticleSystem particleSystem;
- private Timer timer;
- private Scene scene;
- private boolean alreadyInitiated = false;
-
- public Rendering(MainActivity mainActivity, ParticleSystem particleSystem) {
- this.mainActivity = mainActivity;
- this.particleSystem = particleSystem;
- }
-
- public void initiate(TexturePack texturePack, Timer timer) {
- this.timer = timer;
- if(!alreadyInitiated)
- scene = new Scene(mainActivity, texturePack, particleSystem);
- else {
- scene.setTexturePack(texturePack);
- }
- try {
- particleSystem.loadTextures();
- }catch (Exception e){
- onException(e);
- }
- alreadyInitiated = true;
- }
-
- public void update() {
- particleSystem.update(timer);
- scene.update(timer);
- }
-
- public void setScreenSize(int width, int height) {
- if (scene != null)
- scene.setScreenSize(new Vector(width, height));
- }
-
- public void onException(Exception e) {
- mainActivity.onException(e);
- }
-
- public Scene getScene() {
- return scene;
- }
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/rendering/ShaderProgram.java b/particlelab/src/main/java/com/example/particlelab/rendering/ShaderProgram.java
deleted file mode 100644
index 9fecc57..0000000
--- a/particlelab/src/main/java/com/example/particlelab/rendering/ShaderProgram.java
+++ /dev/null
@@ -1,138 +0,0 @@
-package com.example.particlelab.rendering;
-
-import android.content.Context;
-import android.opengl.GLES20;
-
-import com.example.particlelab.entities.Entity;
-import com.example.particlelab.data.Color;
-import com.example.particlelab.entities.textures.Texture;
-import com.example.particlelab.main.GameLog;
-
-import java.io.BufferedReader;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-
-/**
- * Created by Julian on 23.11.2015.
- */
-public class ShaderProgram {
-
- private Context context;
- private int vertexShader, fragmentShader, program;
- private int location_mvpMatrix;
- private int location_transformationMatrix;
- private int location_alpha;
- private int location_texAtlasSize;
- private int location_texAtlasIndex;
- private int location_isTerrain;
- private int location_color;
-
- public ShaderProgram(Context context) throws Exception {
- this.context = context;
- vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, "vertexShader.glsl");
- fragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, "fragmentShader.glsl");
- program = GLES20.glCreateProgram();
- GLES20.glAttachShader(program, vertexShader);
- GLES20.glAttachShader(program, fragmentShader);
- GLES20.glLinkProgram(program);
- int[] linkStatus = new int[1];
- GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);
- if (linkStatus[0] == GLES20.GL_FALSE) {
- GLES20.glDeleteProgram(program);
- throw new Exception("Could not link program: "
- + GLES20.glGetProgramInfoLog(program));
- }
-
- bindAttribLocations();
- loadUniformLocations();
- GameLog.d("ShaderProgram successfully loaded");
- }
-
- private void loadUniformLocations() {
- location_mvpMatrix = GLES20.glGetUniformLocation(program, "mvpMatrix");
- location_transformationMatrix = GLES20.glGetUniformLocation(program, "transformationMatrix");
- location_alpha = GLES20.glGetUniformLocation(program, "alpha");
- location_texAtlasSize = GLES20.glGetUniformLocation(program, "texAtlasSize");
- location_texAtlasIndex = GLES20.glGetUniformLocation(program, "texAtlasIndex");
- location_isTerrain = GLES20.glGetUniformLocation(program, "isTerrain");
- location_color = GLES20.glGetUniformLocation(program, "color");
- }
-
- private void bindAttribLocations() {
- GLES20.glBindAttribLocation(program, 0, "position");
- GLES20.glBindAttribLocation(program, 1, "texCoords");
- }
-
- public void start() {
- GLES20.glUseProgram(program);
- }
-
- public void stop() {
- GLES20.glUseProgram(0);
- }
-
- public void loadMVPMatrix(MatrixCreator matrixCreator, float cameraX) {
- float[] mvpMatrix = matrixCreator.createModelViewProjectionMatrix(cameraX);
- GLES20.glUniformMatrix4fv(location_mvpMatrix, 1, false, mvpMatrix, 0);
- }
-
- public void loadTransformationMatrix(MatrixCreator matrixCreator, Entity entity) {
- float[] transformationMatrix = matrixCreator.createTransformationMatrix(entity);
- GLES20.glUniformMatrix4fv(location_transformationMatrix, 1, false, transformationMatrix, 0);
- }
-
- public void loadColor(Color color){
- GLES20.glUniform3f(location_color, color.getR(), color.getG(), color.getB());
- }
-
- public void loadAlpha(float alpha) {
- GLES20.glUniform1f(location_alpha, alpha);
- }
-
- public void loadTextureAtlasInfos(Texture texture) {
- GLES20.glUniform2f(location_texAtlasSize, texture.getAtlasWidth(), texture.getAtlasHeight());
- GLES20.glUniform1f(location_texAtlasIndex, texture.getAtlasIndex());
- }
-
- public void loadIsTerrain(boolean isTerrain) {
- float fIsTerrain = isTerrain ? 1 : 0;
- GLES20.glUniform1f(location_isTerrain, fIsTerrain);
- }
-
- public void cleanUp() {
- stop();
- GLES20.glDeleteShader(vertexShader);
- GLES20.glDeleteShader(fragmentShader);
- GLES20.glDeleteProgram(program);
- GameLog.d("Shader cleaned");
- }
-
- private int loadShader(int type, String shaderName) throws Exception {
- try {
- InputStream is = context.getAssets().open(shaderName);
- InputStreamReader isReader = new InputStreamReader(is);
- BufferedReader reader = new BufferedReader(isReader);
- StringBuilder source = new StringBuilder();
- String line;
- while ((line = reader.readLine()) != null)
- source.append(line);
-
- int shader = GLES20.glCreateShader(type);
- GLES20.glShaderSource(shader, source.toString());
- GLES20.glCompileShader(shader);
-
- int[] compiled = new int[1];
- GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0);
- if (compiled[0] == GLES20.GL_FALSE) {
- GLES20.glDeleteShader(shader);
- throw new Exception("Could not compile shader \"" + shaderName + "\": "
- + GLES20.glGetShaderInfoLog(shader));
- }
- GameLog.d("Shader \"" + shaderName + "\" successfully loaded");
- return shader;
- } catch (Exception e) {
- throw new Exception("Could not load Shader \"" + shaderName + "\"", e);
- }
- }
-
-}
diff --git a/particlelab/src/main/java/com/example/particlelab/rendering/Timer.java b/particlelab/src/main/java/com/example/particlelab/rendering/Timer.java
deleted file mode 100644
index 37329ae..0000000
--- a/particlelab/src/main/java/com/example/particlelab/rendering/Timer.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package com.example.particlelab.rendering;
-
-/**
- * Created by Julian on 22.11.2015.
- */
-public class Timer {
-
- private long lastFpsTime;
- private int fpsCounter;
- private int fps;
-
- private long lastTime;
- private long delta;
-
-
- public Timer() {
- lastTime = System.currentTimeMillis();
- lastFpsTime = lastTime;
- }
-
- public void update() {
- long currentTime = System.currentTimeMillis();
- delta = currentTime - lastTime;
- lastTime = currentTime;
-
- fpsCounter++;
- if (currentTime - lastFpsTime > 1000) {
- fps = fpsCounter;
- lastFpsTime += 1000;
- fpsCounter = 0;
- }
- }
-
- public float getFrameTime() {
- return delta;
- }
-
- public int getFps() {
- return fps;
- }
-
- public long getCurrentTime() {
- return System.currentTimeMillis();
- }
-
-}