mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-04 17:37:25 +00:00
commit
47091543d0
7 changed files with 71 additions and 110 deletions
|
|
@ -145,25 +145,6 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
||||||
|
|
||||||
setHomeListeners()
|
setHomeListeners()
|
||||||
|
|
||||||
// Task to update the app menu every 5 seconds
|
|
||||||
lifecycleScope.launch {
|
|
||||||
lifecycle.repeatOnLifecycle(Lifecycle.State.STARTED) {
|
|
||||||
while (true) {
|
|
||||||
refreshAppMenu()
|
|
||||||
delay(5000)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Task to update the weather every 10 minutes
|
|
||||||
lifecycleScope.launch(Dispatchers.IO) {
|
|
||||||
repeatOnLifecycle(Lifecycle.State.STARTED) {
|
|
||||||
while (true) {
|
|
||||||
updateWeather()
|
|
||||||
delay(600000)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
setupApps()
|
setupApps()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1180,6 +1161,7 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (deltaX > 0 && abs(deltaX) > swipeThreshold && abs(velocityX) > swipeVelocityThreshold && !sharedPreferenceManager.isGestureEnabled("right")) {
|
else if (deltaX > 0 && abs(deltaX) > swipeThreshold && abs(velocityX) > swipeVelocityThreshold && !sharedPreferenceManager.isGestureEnabled("right")) {
|
||||||
|
canLaunchShortcut = false
|
||||||
if (gestureUtils.isAccessibilityServiceEnabled(
|
if (gestureUtils.isAccessibilityServiceEnabled(
|
||||||
ScreenLockService::class.java
|
ScreenLockService::class.java
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -118,12 +118,10 @@ class Animations (context: Context) {
|
||||||
private fun View.fadeIn(duration: Long = sharedPreferenceManager.getAnimationSpeed()) {
|
private fun View.fadeIn(duration: Long = sharedPreferenceManager.getAnimationSpeed()) {
|
||||||
if (visibility != View.VISIBLE) {
|
if (visibility != View.VISIBLE) {
|
||||||
alpha = 0f
|
alpha = 0f
|
||||||
translationY = -height.toFloat()/100
|
|
||||||
visibility = View.VISIBLE
|
visibility = View.VISIBLE
|
||||||
|
|
||||||
animate()
|
animate()
|
||||||
.alpha(1f)
|
.alpha(1f)
|
||||||
.translationY(0f)
|
|
||||||
.setDuration(duration)
|
.setDuration(duration)
|
||||||
.setListener(null)
|
.setListener(null)
|
||||||
}
|
}
|
||||||
|
|
@ -131,12 +129,12 @@ class Animations (context: Context) {
|
||||||
|
|
||||||
private fun View.fadeOut() {
|
private fun View.fadeOut() {
|
||||||
if (visibility == View.VISIBLE) {
|
if (visibility == View.VISIBLE) {
|
||||||
|
alpha = 0f
|
||||||
isInAnim = true
|
isInAnim = true
|
||||||
val duration = sharedPreferenceManager.getAnimationSpeed()
|
val duration = sharedPreferenceManager.getAnimationSpeed()
|
||||||
|
|
||||||
animate()
|
animate()
|
||||||
.alpha(0f)
|
.alpha(0f)
|
||||||
.translationY(-height.toFloat()/100)
|
|
||||||
.setDuration(duration/2)
|
.setDuration(duration/2)
|
||||||
.setListener(object : AnimatorListenerAdapter() {
|
.setListener(object : AnimatorListenerAdapter() {
|
||||||
override fun onAnimationEnd(animation: Animator) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
|
|
|
||||||
|
|
@ -350,11 +350,11 @@ class UIUtils(private val context: Context) {
|
||||||
|
|
||||||
// Size
|
// Size
|
||||||
fun setClockSize(clock: TextClock) {
|
fun setClockSize(clock: TextClock) {
|
||||||
setTextSize(clock, sharedPreferenceManager.getClockSize(), 48F, 58F, 70F, 78F, 82F, 84F)
|
setTextSize(clock, sharedPreferenceManager.getClockSize(), 66F, 58F, 70F, 78F, 82F, 84F)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setDateSize(dateText: TextClock) {
|
fun setDateSize(dateText: TextClock) {
|
||||||
setTextSize(dateText, sharedPreferenceManager.getDateSize(), 14F, 17F, 20F, 23F, 26F, 29F)
|
setTextSize(dateText, sharedPreferenceManager.getDateSize(), 22F, 17F, 20F, 23F, 26F, 29F)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setShortcutsSize(shortcuts: LinearLayout) {
|
fun setShortcutsSize(shortcuts: LinearLayout) {
|
||||||
|
|
@ -363,7 +363,9 @@ class UIUtils(private val context: Context) {
|
||||||
|
|
||||||
shortcuts.children.forEach {
|
shortcuts.children.forEach {
|
||||||
if (it is TextView) {
|
if (it is TextView) {
|
||||||
setShortcutSize(it, size)
|
it.setTextSize(TypedValue.COMPLEX_UNIT_SP, 22F)
|
||||||
|
// val padding = 15
|
||||||
|
// it.setPadding(0, dpToPx(padding), 0, dpToPx(padding))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -373,9 +375,9 @@ class UIUtils(private val context: Context) {
|
||||||
when (size) {
|
when (size) {
|
||||||
"tiny" -> {
|
"tiny" -> {
|
||||||
shortcut.setAutoSizeTextTypeUniformWithConfiguration(
|
shortcut.setAutoSizeTextTypeUniformWithConfiguration(
|
||||||
5, // Min text size in SP
|
22, // Min text size in SP
|
||||||
20, // Max text size in SP
|
22, // Max text size in SP
|
||||||
2, // Step granularity in SP
|
1, // Step granularity in SP
|
||||||
TypedValue.COMPLEX_UNIT_SP // Unit of measurement
|
TypedValue.COMPLEX_UNIT_SP // Unit of measurement
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -434,9 +436,9 @@ class UIUtils(private val context: Context) {
|
||||||
regionText: TextView? = null
|
regionText: TextView? = null
|
||||||
) {
|
) {
|
||||||
val size = sharedPreferenceManager.getAppSize()
|
val size = sharedPreferenceManager.getAppSize()
|
||||||
setTextSize(textView, size, 21F, 24F, 27F, 30F, 33F, 36F)
|
setTextSize(textView, size, 22F, 24F, 27F, 30F, 33F, 36F)
|
||||||
if (editText != null) {
|
if (editText != null) {
|
||||||
setTextSize(editText, size, 21F, 24F, 27F, 30F, 33F, 36F)
|
setTextSize(editText, size, 22F, 24F, 27F, 30F, 33F, 36F)
|
||||||
}
|
}
|
||||||
if (regionText != null) {
|
if (regionText != null) {
|
||||||
setTextSize(regionText, size, 11F, 14F, 17F, 20F, 23F, 26F)
|
setTextSize(regionText, size, 11F, 14F, 17F, 20F, 23F, 26F)
|
||||||
|
|
@ -444,11 +446,11 @@ class UIUtils(private val context: Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setSearchSize(searchView: TextInputEditText) {
|
fun setSearchSize(searchView: TextInputEditText) {
|
||||||
setTextSize(searchView, sharedPreferenceManager.getSearchSize(), 18F, 21F, 25F, 27F, 30F, 33F)
|
setTextSize(searchView, sharedPreferenceManager.getSearchSize(), 22F, 21F, 25F, 27F, 30F, 33F)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setMenuTitleSize(menuTitle: TextView) {
|
fun setMenuTitleSize(menuTitle: TextView) {
|
||||||
setTextSize(menuTitle, sharedPreferenceManager.getAppSize(), 27F, 30F, 33F, 36F, 39F, 42F)
|
setTextSize(menuTitle, sharedPreferenceManager.getAppSize(), 22F, 30F, 33F, 36F, 39F, 42F)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setTextSize(view: TextView, size: String?, t: Float, s: Float, m: Float, l: Float, x: Float, h: Float) {
|
private fun setTextSize(view: TextView, size: String?, t: Float, s: Float, m: Float, l: Float, x: Float, h: Float) {
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,6 @@
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:visibility="invisible">
|
android:visibility="invisible">
|
||||||
|
|
||||||
<Space
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="60dp" />
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
android:id="@+id/menuTitle"
|
android:id="@+id/menuTitle"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -28,9 +24,8 @@
|
||||||
android:background="@android:color/transparent"
|
android:background="@android:color/transparent"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingLeft="40dp"
|
android:paddingHorizontal="22dp"
|
||||||
android:paddingTop="20dp"
|
android:paddingTop="20dp"
|
||||||
android:paddingRight="40dp"
|
|
||||||
android:paddingBottom="20dp"
|
android:paddingBottom="20dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||||
|
|
@ -50,7 +45,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:fadingEdgeLength="20dp"
|
android:fadingEdgeLength="2dp"
|
||||||
android:padding="0dp"
|
android:padding="0dp"
|
||||||
android:requiresFadingEdge="vertical"
|
android:requiresFadingEdge="vertical"
|
||||||
android:scrollbars="none">
|
android:scrollbars="none">
|
||||||
|
|
@ -75,8 +70,8 @@
|
||||||
android:id="@+id/searchLayout"
|
android:id="@+id/searchLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginHorizontal="32dp"
|
android:layout_marginHorizontal="22dp"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="0dp"
|
||||||
android:layout_marginBottom="10dp"
|
android:layout_marginBottom="10dp"
|
||||||
android:layout_weight="0.1"
|
android:layout_weight="0.1"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
|
@ -96,7 +91,6 @@
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textAlignment="viewStart"
|
android:textAlignment="viewStart"
|
||||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||||
android:textColorHighlight="#5F33B5E5"
|
|
||||||
android:textSize="25sp"
|
android:textSize="25sp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/internetSearch"
|
app:layout_constraintEnd_toStartOf="@+id/internetSearch"
|
||||||
|
|
@ -164,9 +158,10 @@
|
||||||
android:id="@+id/textClock"
|
android:id="@+id/textClock"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginHorizontal="32dp"
|
android:layout_marginHorizontal="0dp"
|
||||||
android:layout_marginTop="45dp"
|
android:layout_marginTop="0dp"
|
||||||
android:layout_marginBottom="27dp"
|
android:layout_marginBottom="78dp"
|
||||||
|
android:paddingHorizontal="19dp"
|
||||||
android:format12Hour="hh:mm"
|
android:format12Hour="hh:mm"
|
||||||
android:format24Hour="HH:mm"
|
android:format24Hour="HH:mm"
|
||||||
android:textAlignment="textStart"
|
android:textAlignment="textStart"
|
||||||
|
|
@ -183,9 +178,11 @@
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:format12Hour="dd MMM yyyy"
|
android:format12Hour="dd MMM yyyy"
|
||||||
android:format24Hour="dd MMM yyyy"
|
android:format24Hour="yyyy-MM-dd / EEEE"
|
||||||
android:lineSpacingExtra="8sp"
|
android:lineSpacingExtra="0sp"
|
||||||
android:paddingHorizontal="2dp"
|
android:paddingTop="0dp"
|
||||||
|
android:paddingHorizontal="22dp"
|
||||||
|
android:layout_marginBottom="38dp"
|
||||||
android:textAlignment="textStart"
|
android:textAlignment="textStart"
|
||||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||||
android:textColor="#F3F3F3"
|
android:textColor="#F3F3F3"
|
||||||
|
|
@ -201,18 +198,17 @@
|
||||||
android:id="@+id/topSpace"
|
android:id="@+id/topSpace"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.22" />
|
android:layout_weight="0" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/app1"
|
android:id="@+id/app1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -225,11 +221,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -242,11 +237,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -259,11 +253,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -276,11 +269,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -293,11 +285,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -310,11 +301,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -327,11 +317,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -344,11 +333,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -361,11 +349,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -378,11 +365,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -395,11 +381,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -412,11 +397,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -429,11 +413,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
@ -446,11 +429,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.09"
|
android:layout_weight="0.09"
|
||||||
android:autoSizeTextType="uniform"
|
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="20dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:text="@string/shortcut_default"
|
android:text="@string/shortcut_default"
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingVertical="5dp"
|
android:paddingVertical="0dp"
|
||||||
android:visibility="invisible">
|
android:visibility="invisible">
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
|
@ -37,8 +37,6 @@
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||||
android:textColor="#FFF3F3F3"
|
|
||||||
android:textColorHighlight="#5F33B5E5"
|
|
||||||
android:textSize="28sp" />
|
android:textSize="28sp" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatButton
|
<androidx.appcompat.widget.AppCompatButton
|
||||||
|
|
@ -62,12 +60,11 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:drawablePadding="3dp"
|
android:drawablePadding="8dp"
|
||||||
android:gravity="start|center_vertical"
|
android:gravity="start|center_vertical"
|
||||||
android:paddingLeft="20dp"
|
android:paddingHorizontal="0dp"
|
||||||
android:paddingTop="20dp"
|
android:paddingTop="0dp"
|
||||||
android:paddingRight="20dp"
|
android:paddingBottom="0dp"
|
||||||
android:paddingBottom="20dp"
|
|
||||||
android:shadowColor="#00FFFFFF"
|
android:shadowColor="#00FFFFFF"
|
||||||
android:shadowRadius="10"
|
android:shadowRadius="10"
|
||||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||||
|
|
@ -89,7 +86,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/app_action_background"
|
android:background="@drawable/app_action_background"
|
||||||
android:paddingVertical="5dp"
|
android:paddingVertical="0dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/pin"
|
android:text="@string/pin"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
|
|
@ -103,7 +100,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/app_action_background"
|
android:background="@drawable/app_action_background"
|
||||||
android:paddingVertical="5dp"
|
android:paddingVertical="0dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/info"
|
android:text="@string/info"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
|
|
@ -117,7 +114,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/app_action_background"
|
android:background="@drawable/app_action_background"
|
||||||
android:paddingVertical="5dp"
|
android:paddingVertical="0dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/uninstall"
|
android:text="@string/uninstall"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
|
|
@ -131,7 +128,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/app_action_background"
|
android:background="@drawable/app_action_background"
|
||||||
android:paddingVertical="5dp"
|
android:paddingVertical="0dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/rename"
|
android:text="@string/rename"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
|
|
@ -145,7 +142,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/app_action_background"
|
android:background="@drawable/app_action_background"
|
||||||
android:paddingVertical="5dp"
|
android:paddingVertical="0dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/hide"
|
android:text="@string/hide"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
|
|
@ -159,7 +156,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/app_action_background"
|
android:background="@drawable/app_action_background"
|
||||||
android:paddingVertical="5dp"
|
android:paddingVertical="0dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/close"
|
android:text="@string/close"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="shortcut_spacing_values" translatable="false">
|
<string-array name="shortcut_spacing_values" translatable="false">
|
||||||
<item>0.06</item>
|
<item>0.15</item>
|
||||||
<item>0.09</item>
|
<item>0.09</item>
|
||||||
<item>0.11</item>
|
<item>0.11</item>
|
||||||
<item>0.14</item>
|
<item>0.14</item>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
||||||
<item name="android:enforceNavigationBarContrast">false</item>
|
<item name="android:enforceNavigationBarContrast">false</item>
|
||||||
<item name="android:enforceStatusBarContrast">false</item>
|
<item name="android:enforceStatusBarContrast">false</item>
|
||||||
<item name="colorAccent">#FF80CBC4</item>
|
<item name="colorAccent">#FFCDCDCD</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="SettingsTheme" parent="Theme.AppCompat">
|
<style name="SettingsTheme" parent="Theme.AppCompat">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue