Added Snowfall effect

This commit is contained in:
Prathamesh More 2021-12-24 16:47:57 +05:30
parent 8e1dc3a600
commit 5a310ec329
8 changed files with 58 additions and 8 deletions

View file

@ -7,16 +7,18 @@
android:clickable="true"
android:focusable="true">
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/colorSurface" />
<View
android:id="@+id/colorGradientBackground"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.jetradarmobile.snowfall.SnowfallView
android:id="@+id/snowfall_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:snowflakeSpeedMax="6"
app:snowflakeSpeedMin="2"
app:snowflakesNum="75" />
<include layout="@layout/shadow_statusbar_toolbar" />

View file

@ -8,7 +8,6 @@
android:clickable="true"
android:focusable="true">
<View
android:id="@+id/colorGradientBackground"
android:layout_width="match_parent"
@ -18,6 +17,14 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.jetradarmobile.snowfall.SnowfallView
android:id="@+id/snowfall_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:snowflakeSpeedMax="6"
app:snowflakeSpeedMin="2"
app:snowflakesNum="75" />
<include layout="@layout/shadow_statusbar_toolbar" />
<FrameLayout

View file

@ -15,6 +15,12 @@
android:summary="@string/pref_summary_extra_song_info"
android:title="@string/pref_title_extra_song_info" />
<code.name.monkey.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="false"
android:key="snowfall"
android:layout="@layout/list_item_view_switch_no_title"
android:title="Snow Fall Effect (Only on Normal theme)" />
<code.name.monkey.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory
android:layout="@layout/preference_category_title"
android:title="@string/pref_header_album">
@ -77,8 +83,8 @@
android:max="25"
android:summary="@string/pref_blur_amount_summary"
android:title="@string/pref_blur_amount_title"
app:icon="@drawable/ic_blur_on"
app:ateKey_pref_unit="px"
app:icon="@drawable/ic_blur_on"
app:showSeekBarValue="true" />
</code.name.monkey.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory>