Commit 60cf38dd authored by Lukas Fülling's avatar Lukas Fülling

add animated backgrounds

parent 974def5a
......@@ -89,7 +89,7 @@ public class VaporFaceConfigActivity extends Activity implements View.OnClickLis
private void togglePrevBg() {
currentBG--;
if(currentBG < 0) {
if (currentBG < 0) {
currentBG = 0;
bgChangeLeft.setVisibility(View.GONE);
bgChangeRight.setVisibility(View.VISIBLE);
......@@ -103,7 +103,7 @@ public class VaporFaceConfigActivity extends Activity implements View.OnClickLis
private void toggleNextBg() {
currentBG++;
if(currentBG > 7) {
if (currentBG > 7) {
currentBG = 7;
bgChangeRight.setVisibility(View.GONE);
bgChangeLeft.setVisibility(View.VISIBLE);
......@@ -111,13 +111,13 @@ public class VaporFaceConfigActivity extends Activity implements View.OnClickLis
bgChangeLeft.setVisibility(View.VISIBLE);
bgChangeRight.setVisibility(View.VISIBLE);
}
preferences.edit().putString("background", String.valueOf(currentBG)).apply();
setBackgroundPreview();
}
private void setBackgroundPreview() {
String background = preferences.getString("background", String.valueOf(currentBG));
currentBG = Integer.parseInt(background);
View container = findViewById(R.id.config_view);
switch (background) {
......@@ -147,7 +147,7 @@ public class VaporFaceConfigActivity extends Activity implements View.OnClickLis
container.setBackground(getDrawable(R.drawable.vaporwave_grid));
break;
}
currentBG = Integer.parseInt(background);
}
private void initBottomComplication() {
......@@ -166,7 +166,7 @@ public class VaporFaceConfigActivity extends Activity implements View.OnClickLis
@Override
protected void onDestroy() {
super.onDestroy();
VaporFace.updateBackground = true;
providerInfoRetriever.release();
}
......
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bg_04_anim"
android:oneshot="false">
<item android:drawable="@drawable/bg_04_01" android:duration="10" />
<item android:drawable="@drawable/bg_04_02" android:duration="10" />
<item android:drawable="@drawable/bg_04_03" android:duration="10" />
<item android:drawable="@drawable/bg_04_04" android:duration="10" />
<item android:drawable="@drawable/bg_04_05" android:duration="10" />
<item android:drawable="@drawable/bg_04_06" android:duration="10" />
<item android:drawable="@drawable/bg_04_07" android:duration="10" />
<item android:drawable="@drawable/bg_04_08" android:duration="10" />
<item android:drawable="@drawable/bg_04_09" android:duration="10" />
<item android:drawable="@drawable/bg_04_10" android:duration="10" />
<item android:drawable="@drawable/bg_04_11" android:duration="10" />
<item android:drawable="@drawable/bg_04_12" android:duration="10" />
<item android:drawable="@drawable/bg_04_13" android:duration="10" />
<item android:drawable="@drawable/bg_04_14" android:duration="10" />
</animation-list>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bg_08_anim"
android:oneshot="false">
<item android:drawable="@drawable/bg_08_01" android:duration="10" />
<item android:drawable="@drawable/bg_08_02" android:duration="10" />
<item android:drawable="@drawable/bg_08_03" android:duration="10" />
<item android:drawable="@drawable/bg_08_04" android:duration="10" />
<item android:drawable="@drawable/bg_08_05" android:duration="10" />
<item android:drawable="@drawable/bg_08_06" android:duration="10" />
<item android:drawable="@drawable/bg_08_07" android:duration="10" />
<item android:drawable="@drawable/bg_08_08" android:duration="10" />
<item android:drawable="@drawable/bg_08_09" android:duration="10" />
<item android:drawable="@drawable/bg_08_10" android:duration="10" />
<item android:drawable="@drawable/bg_08_11" android:duration="10" />
<item android:drawable="@drawable/bg_08_12" android:duration="10" />
<item android:drawable="@drawable/bg_08_13" android:duration="10" />
<item android:drawable="@drawable/bg_08_14" android:duration="10" />
<item android:drawable="@drawable/bg_08_15" android:duration="10" />
<item android:drawable="@drawable/bg_08_16" android:duration="10" />
<item android:drawable="@drawable/bg_08_17" android:duration="10" />
<item android:drawable="@drawable/bg_08_18" android:duration="10" />
<item android:drawable="@drawable/bg_08_19" android:duration="10" />
<item android:drawable="@drawable/bg_08_20" android:duration="10" />
<item android:drawable="@drawable/bg_08_21" android:duration="10" />
<item android:drawable="@drawable/bg_08_22" android:duration="10" />
<item android:drawable="@drawable/bg_08_23" android:duration="10" />
<item android:drawable="@drawable/bg_08_24" android:duration="10" />
</animation-list>
\ No newline at end of file
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bg_10_anim"
android:oneshot="false">
<item android:drawable="@drawable/bg_10_01" android:duration="10" />
<item android:drawable="@drawable/bg_10_02" android:duration="10" />
<item android:drawable="@drawable/bg_10_03" android:duration="10" />
<item android:drawable="@drawable/bg_10_04" android:duration="10" />
<item android:drawable="@drawable/bg_10_05" android:duration="10" />
<item android:drawable="@drawable/bg_10_06" android:duration="10" />
<item android:drawable="@drawable/bg_10_07" android:duration="10" />
<item android:drawable="@drawable/bg_10_08" android:duration="10" />
</animation-list>
\ No newline at end of file
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bg_12_anim"
android:oneshot="false">
<item android:drawable="@drawable/bg_12_01" android:duration="10" />
<item android:drawable="@drawable/bg_12_02" android:duration="10" />
<item android:drawable="@drawable/bg_12_03" android:duration="10" />
<item android:drawable="@drawable/bg_12_04" android:duration="10" />
<item android:drawable="@drawable/bg_12_05" android:duration="10" />
<item android:drawable="@drawable/bg_12_06" android:duration="10" />
<item android:drawable="@drawable/bg_12_07" android:duration="10" />
<item android:drawable="@drawable/bg_12_08" android:duration="10" />
<item android:drawable="@drawable/bg_12_09" android:duration="10" />
<item android:drawable="@drawable/bg_12_10" android:duration="10" />
<item android:drawable="@drawable/bg_12_11" android:duration="10" />
<item android:drawable="@drawable/bg_12_12" android:duration="10" />
<item android:drawable="@drawable/bg_12_13" android:duration="10" />
<item android:drawable="@drawable/bg_12_14" android:duration="10" />
<item android:drawable="@drawable/bg_12_15" android:duration="10" />
<item android:drawable="@drawable/bg_12_16" android:duration="10" />
<item android:drawable="@drawable/bg_12_17" android:duration="10" />
<item android:drawable="@drawable/bg_12_18" android:duration="10" />
<item android:drawable="@drawable/bg_12_19" android:duration="10" />
<item android:drawable="@drawable/bg_12_20" android:duration="10" />
<item android:drawable="@drawable/bg_12_21" android:duration="10" />
<item android:drawable="@drawable/bg_12_22" android:duration="10" />
</animation-list>
\ No newline at end of file
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bg_15_anim"
android:oneshot="false">
<item android:drawable="@drawable/bg_15_01" android:duration="10" />
<item android:drawable="@drawable/bg_15_02" android:duration="10" />
<item android:drawable="@drawable/bg_15_03" android:duration="10" />
<item android:drawable="@drawable/bg_15_04" android:duration="10" />
<item android:drawable="@drawable/bg_15_05" android:duration="10" />
<item android:drawable="@drawable/bg_15_06" android:duration="10" />
<item android:drawable="@drawable/bg_15_07" android:duration="10" />
<item android:drawable="@drawable/bg_15_08" android:duration="10" />
<item android:drawable="@drawable/bg_15_09" android:duration="10" />
<item android:drawable="@drawable/bg_15_10" android:duration="10" />
<item android:drawable="@drawable/bg_15_11" android:duration="10" />
<item android:drawable="@drawable/bg_15_12" android:duration="10" />
<item android:drawable="@drawable/bg_15_13" android:duration="10" />
<item android:drawable="@drawable/bg_15_14" android:duration="10" />
<item android:drawable="@drawable/bg_15_15" android:duration="10" />
<item android:drawable="@drawable/bg_15_16" android:duration="10" />
<item android:drawable="@drawable/bg_15_17" android:duration="10" />
<item android:drawable="@drawable/bg_15_18" android:duration="10" />
<item android:drawable="@drawable/bg_15_19" android:duration="10" />
<item android:drawable="@drawable/bg_15_20" android:duration="10" />
<item android:drawable="@drawable/bg_15_21" android:duration="10" />
</animation-list>
\ No newline at end of file
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bg_16_anim"
android:oneshot="false">
<item android:drawable="@drawable/bg_16_01" android:duration="10" />
<item android:drawable="@drawable/bg_16_02" android:duration="10" />
<item android:drawable="@drawable/bg_16_03" android:duration="10" />
<item android:drawable="@drawable/bg_16_04" android:duration="10" />
<item android:drawable="@drawable/bg_16_05" android:duration="10" />
<item android:drawable="@drawable/bg_16_06" android:duration="10" />
<item android:drawable="@drawable/bg_16_07" android:duration="10" />
<item android:drawable="@drawable/bg_16_08" android:duration="10" />
<item android:drawable="@drawable/bg_16_09" android:duration="10" />
<item android:drawable="@drawable/bg_16_10" android:duration="10" />
<item android:drawable="@drawable/bg_16_11" android:duration="10" />
<item android:drawable="@drawable/bg_16_12" android:duration="10" />
<item android:drawable="@drawable/bg_16_13" android:duration="10" />
<item android:drawable="@drawable/bg_16_14" android:duration="10" />
<item android:drawable="@drawable/bg_16_15" android:duration="10" />
<item android:drawable="@drawable/bg_16_16" android:duration="10" />
<item android:drawable="@drawable/bg_16_17" android:duration="10" />
<item android:drawable="@drawable/bg_16_18" android:duration="10" />
<item android:drawable="@drawable/bg_16_19" android:duration="10" />
<item android:drawable="@drawable/bg_16_20" android:duration="10" />
<item android:drawable="@drawable/bg_16_21" android:duration="10" />
<item android:drawable="@drawable/bg_16_22" android:duration="10" />
<item android:drawable="@drawable/bg_16_23" android:duration="10" />
<item android:drawable="@drawable/bg_16_24" android:duration="10" />
</animation-list>
\ No newline at end of file
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bg_20_anim"
android:oneshot="false">
<item android:drawable="@drawable/bg_20_01" android:duration="10" />
<item android:drawable="@drawable/bg_20_02" android:duration="10" />
<item android:drawable="@drawable/bg_20_03" android:duration="10" />
<item android:drawable="@drawable/bg_20_04" android:duration="10" />
<item android:drawable="@drawable/bg_20_05" android:duration="10" />
<item android:drawable="@drawable/bg_20_06" android:duration="10" />
<item android:drawable="@drawable/bg_20_07" android:duration="10" />
<item android:drawable="@drawable/bg_20_08" android:duration="10" />
<item android:drawable="@drawable/bg_20_09" android:duration="10" />
<item android:drawable="@drawable/bg_20_10" android:duration="10" />
<item android:drawable="@drawable/bg_20_11" android:duration="10" />
<item android:drawable="@drawable/bg_20_12" android:duration="10" />
<item android:drawable="@drawable/bg_20_13" android:duration="10" />
<item android:drawable="@drawable/bg_20_14" android:duration="10" />
<item android:drawable="@drawable/bg_20_15" android:duration="10" />
<item android:drawable="@drawable/bg_20_16" android:duration="10" />
<item android:drawable="@drawable/bg_20_17" android:duration="10" />
<item android:drawable="@drawable/bg_20_18" android:duration="10" />
<item android:drawable="@drawable/bg_20_19" android:duration="10" />
<item android:drawable="@drawable/bg_20_20" android:duration="10" />
</animation-list>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment