Cherish:Status bar notification ticker [2/2]
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -1220,4 +1220,28 @@
|
||||
<item>3</item>
|
||||
<item>4</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Ticker mode -->
|
||||
<string-array name="ticker_mode_entries">
|
||||
<item>@string/ticker_disabled</item>
|
||||
<item>@string/ticker_enabled</item>
|
||||
<item>@string/ticker_media_enabled</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="ticker_mode_values" translatable="false">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Ticker animation mode -->
|
||||
<string-array name="ticker_animation_mode_entries" translatable="false">
|
||||
<item>@string/ticker_animation_mode_alpha_fade</item>
|
||||
<item>@string/ticker_animation_mode_scroll</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="ticker_animation_mode_values" translatable="false">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
||||
@@ -1130,4 +1130,28 @@
|
||||
<string name="lockscreen_albumart_filter_tint">Accent tinted</string>
|
||||
<string name="lockscreen_albumart_filter_blur">Blur</string>
|
||||
<string name="lockscreen_albumart_filter_grayblur">Grayscale and blurred</string>
|
||||
|
||||
<!-- Units -->
|
||||
<string name="unit_seconds">seconds</string>
|
||||
<string name="unit_milliseconds">milliseconds</string>
|
||||
<string name="unit_pixels">dp</string>
|
||||
|
||||
<!-- Status Bar Ticker -->
|
||||
<string name="ticker_screen_title">Ticker</string>
|
||||
<string name="ticker_screen_summary">Show notifications ticker-style in status bar</string>
|
||||
<string name="ticker_screen_footer">Ticker is visible only when notification heads-up is not shown. Devices with center notch should hide cutout under User Interface settings or under Developer options.</string>
|
||||
<string name="ticker_title">Status bar ticker</string>
|
||||
<string name="ticker_summary">Enable the status bar ticker</string>
|
||||
<string name="ticker_restore_defaults_title">Restore defaults</string>
|
||||
<string name="text_title">Text</string>
|
||||
<string name="icon_title">Icon</string>
|
||||
<string name="colors_title">Colors</string>
|
||||
<string name="values_restored_title">Values restored</string>
|
||||
<string name="ticker_disabled">No ticker</string>
|
||||
<string name="ticker_enabled">Notification ticker</string>
|
||||
<string name="ticker_media_enabled">Notifications and music ticker</string>
|
||||
<string name="ticker_animation_mode_title">Ticker animation style</string>
|
||||
<string name="ticker_animation_mode_alpha_fade">Fade</string>
|
||||
<string name="ticker_animation_mode_scroll">Scroll</string>
|
||||
<string name="ticker_tick_duration_title">Ticker duration</string>
|
||||
</resources>
|
||||
|
||||
@@ -83,6 +83,29 @@
|
||||
android:summary="@string/carrier_label_settings_summary"
|
||||
android:fragment="com.cherish.settings.fragments.CustomCarrierLabel" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="status_bar_show_ticker"
|
||||
android:title="@string/ticker_screen_title"
|
||||
android:entries="@array/ticker_mode_entries"
|
||||
android:entryValues="@array/ticker_mode_values"
|
||||
android:defaultValue="0" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="status_bar_ticker_animation_mode"
|
||||
android:title="@string/ticker_animation_mode_title"
|
||||
android:entries="@array/ticker_animation_mode_entries"
|
||||
android:entryValues="@array/ticker_animation_mode_values"
|
||||
android:defaultValue="1" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
|
||||
android:key="status_bar_ticker_tick_duration"
|
||||
android:title="@string/ticker_tick_duration_title"
|
||||
settings:min="500"
|
||||
settings:interval="100"
|
||||
android:max="10000"
|
||||
android:defaultValue="3000"
|
||||
settings:units="@string/unit_milliseconds" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingMasterSwitchPreference
|
||||
android:key="status_bar_logo"
|
||||
android:icon="@drawable/ic_logo"
|
||||
|
||||
@@ -26,6 +26,8 @@ import android.view.View;
|
||||
|
||||
import com.android.settings.SettingsPreferenceFragment;
|
||||
import com.cherish.settings.preferences.CustomSeekBarPreference;
|
||||
import com.cherish.settings.preferences.SystemSettingSeekBarPreference;
|
||||
import com.cherish.settings.preferences.SystemSettingListPreference;
|
||||
import com.cherish.settings.preferences.SystemSettingSwitchPreference;
|
||||
import com.cherish.settings.preferences.SystemSettingMasterSwitchPreference;
|
||||
import com.android.settings.Utils;
|
||||
|
||||
Reference in New Issue
Block a user