mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-05 01:47:24 +00:00
Compare commits
No commits in common. "home-swipes" and "main" have entirely different histories.
home-swipe
...
main
8 changed files with 139 additions and 145 deletions
|
|
@ -145,6 +145,25 @@ 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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1151,64 +1170,6 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
||||||
val deltaY = e2.y - e1.y
|
val deltaY = e2.y - e1.y
|
||||||
val deltaX = e2.x - e1.x
|
val deltaX = e2.x - e1.x
|
||||||
|
|
||||||
if (Math.abs(deltaX) > Math.abs(deltaY)) {
|
|
||||||
// Swipe right
|
|
||||||
if (deltaX > 0 && abs(deltaX) > swipeThreshold && abs(velocityX) > swipeVelocityThreshold && sharedPreferenceManager.isGestureEnabled(
|
|
||||||
"right"
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
if (rightSwipeActivity.first != null && rightSwipeActivity.second != null) {
|
|
||||||
canLaunchShortcut = false
|
|
||||||
appUtils.launchApp(
|
|
||||||
rightSwipeActivity.first!!.componentName,
|
|
||||||
launcherApps.profiles[rightSwipeActivity.second!!]
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
Toast.makeText(
|
|
||||||
this@MainActivity,
|
|
||||||
getString(R.string.launch_error),
|
|
||||||
Toast.LENGTH_SHORT
|
|
||||||
).show()
|
|
||||||
}
|
|
||||||
} else if (deltaX > 0 && abs(deltaX) > swipeThreshold && abs(velocityX) > swipeVelocityThreshold && !sharedPreferenceManager.isGestureEnabled(
|
|
||||||
"right"
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
canLaunchShortcut = false
|
|
||||||
if (gestureUtils.isAccessibilityServiceEnabled(
|
|
||||||
ScreenLockService::class.java
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
val intent = Intent(this@MainActivity, ScreenLockService::class.java)
|
|
||||||
intent.action = "RECENTS"
|
|
||||||
startService(intent)
|
|
||||||
finishAndRemoveTask()
|
|
||||||
} else {
|
|
||||||
gestureUtils.promptEnableAccessibility()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Swipe left
|
|
||||||
else if (deltaX < 0 && abs(deltaX) > swipeThreshold && abs(velocityX) > swipeVelocityThreshold && sharedPreferenceManager.isGestureEnabled(
|
|
||||||
"left"
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
println(leftSwipeActivity)
|
|
||||||
if (leftSwipeActivity.first != null && leftSwipeActivity.second != null) {
|
|
||||||
canLaunchShortcut = false
|
|
||||||
appUtils.launchApp(
|
|
||||||
leftSwipeActivity.first!!.componentName,
|
|
||||||
launcherApps.profiles[leftSwipeActivity.second!!]
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
Toast.makeText(
|
|
||||||
this@MainActivity,
|
|
||||||
getString(R.string.launch_error),
|
|
||||||
Toast.LENGTH_SHORT
|
|
||||||
).show()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
|
|
||||||
// Swipe up
|
// Swipe up
|
||||||
if (deltaY < -swipeThreshold && abs(velocityY) > swipeVelocityThreshold) {
|
if (deltaY < -swipeThreshold && abs(velocityY) > swipeVelocityThreshold) {
|
||||||
canLaunchShortcut = false
|
canLaunchShortcut = false
|
||||||
|
|
@ -1218,12 +1179,31 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
||||||
// Swipe down
|
// Swipe down
|
||||||
else if (deltaY > swipeThreshold && abs(velocityY) > swipeVelocityThreshold) {
|
else if (deltaY > swipeThreshold && abs(velocityY) > swipeVelocityThreshold) {
|
||||||
val statusBarService = getSystemService(Context.STATUS_BAR_SERVICE)
|
val statusBarService = getSystemService(Context.STATUS_BAR_SERVICE)
|
||||||
val statusBarManager: Class<*> =
|
val statusBarManager: Class<*> = Class.forName("android.app.StatusBarManager")
|
||||||
Class.forName("android.app.StatusBarManager")
|
val expandMethod: Method = statusBarManager.getMethod("expandNotificationsPanel")
|
||||||
val expandMethod: Method =
|
|
||||||
statusBarManager.getMethod("expandNotificationsPanel")
|
|
||||||
expandMethod.invoke(statusBarService)
|
expandMethod.invoke(statusBarService)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Swipe left
|
||||||
|
else if (deltaX < 0 && abs(deltaX) > swipeThreshold && abs(velocityX) > swipeVelocityThreshold && sharedPreferenceManager.isGestureEnabled("left")){
|
||||||
|
println(leftSwipeActivity)
|
||||||
|
if (leftSwipeActivity.first != null && leftSwipeActivity.second != null) {
|
||||||
|
canLaunchShortcut = false
|
||||||
|
appUtils.launchApp(leftSwipeActivity.first!!.componentName, launcherApps.profiles[leftSwipeActivity.second!!])
|
||||||
|
} else {
|
||||||
|
Toast.makeText(this@MainActivity, getString(R.string.launch_error), Toast.LENGTH_SHORT).show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Swipe right
|
||||||
|
else if (deltaX > 0 && abs(deltaX) > swipeThreshold && abs(velocityX) > swipeVelocityThreshold && sharedPreferenceManager.isGestureEnabled("right")) {
|
||||||
|
if (rightSwipeActivity.first != null && rightSwipeActivity.second != null) {
|
||||||
|
canLaunchShortcut = false
|
||||||
|
appUtils.launchApp(rightSwipeActivity.first!!.componentName, launcherApps.profiles[rightSwipeActivity.second!!])
|
||||||
|
} else {
|
||||||
|
Toast.makeText(this@MainActivity, getString(R.string.launch_error), Toast.LENGTH_SHORT).show()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,6 @@ class ScreenLockService : AccessibilityService() {
|
||||||
if (intent != null && intent.action == "LOCK_SCREEN") {
|
if (intent != null && intent.action == "LOCK_SCREEN") {
|
||||||
performLockScreen()
|
performLockScreen()
|
||||||
}
|
}
|
||||||
if (intent != null && intent.action == "RECENTS") {
|
|
||||||
performShowRecents()
|
|
||||||
}
|
|
||||||
stopSelf()
|
stopSelf()
|
||||||
return super.onStartCommand(intent, flags, startId)
|
return super.onStartCommand(intent, flags, startId)
|
||||||
}
|
}
|
||||||
|
|
@ -26,8 +23,4 @@ class ScreenLockService : AccessibilityService() {
|
||||||
private fun performLockScreen() {
|
private fun performLockScreen() {
|
||||||
performGlobalAction(GLOBAL_ACTION_LOCK_SCREEN)
|
performGlobalAction(GLOBAL_ACTION_LOCK_SCREEN)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun performShowRecents() {
|
|
||||||
performGlobalAction(GLOBAL_ACTION_RECENTS)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
@ -118,10 +118,12 @@ 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)
|
||||||
}
|
}
|
||||||
|
|
@ -129,12 +131,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(), 66F, 58F, 70F, 78F, 82F, 84F)
|
setTextSize(clock, sharedPreferenceManager.getClockSize(), 48F, 58F, 70F, 78F, 82F, 84F)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setDateSize(dateText: TextClock) {
|
fun setDateSize(dateText: TextClock) {
|
||||||
setTextSize(dateText, sharedPreferenceManager.getDateSize(), 22F, 17F, 20F, 23F, 26F, 29F)
|
setTextSize(dateText, sharedPreferenceManager.getDateSize(), 14F, 17F, 20F, 23F, 26F, 29F)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setShortcutsSize(shortcuts: LinearLayout) {
|
fun setShortcutsSize(shortcuts: LinearLayout) {
|
||||||
|
|
@ -363,9 +363,7 @@ class UIUtils(private val context: Context) {
|
||||||
|
|
||||||
shortcuts.children.forEach {
|
shortcuts.children.forEach {
|
||||||
if (it is TextView) {
|
if (it is TextView) {
|
||||||
it.setTextSize(TypedValue.COMPLEX_UNIT_SP, 22F)
|
setShortcutSize(it, size)
|
||||||
// val padding = 15
|
|
||||||
// it.setPadding(0, dpToPx(padding), 0, dpToPx(padding))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -375,9 +373,9 @@ class UIUtils(private val context: Context) {
|
||||||
when (size) {
|
when (size) {
|
||||||
"tiny" -> {
|
"tiny" -> {
|
||||||
shortcut.setAutoSizeTextTypeUniformWithConfiguration(
|
shortcut.setAutoSizeTextTypeUniformWithConfiguration(
|
||||||
22, // Min text size in SP
|
5, // Min text size in SP
|
||||||
22, // Max text size in SP
|
20, // Max text size in SP
|
||||||
1, // Step granularity in SP
|
2, // Step granularity in SP
|
||||||
TypedValue.COMPLEX_UNIT_SP // Unit of measurement
|
TypedValue.COMPLEX_UNIT_SP // Unit of measurement
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -436,9 +434,9 @@ class UIUtils(private val context: Context) {
|
||||||
regionText: TextView? = null
|
regionText: TextView? = null
|
||||||
) {
|
) {
|
||||||
val size = sharedPreferenceManager.getAppSize()
|
val size = sharedPreferenceManager.getAppSize()
|
||||||
setTextSize(textView, size, 22F, 24F, 27F, 30F, 33F, 36F)
|
setTextSize(textView, size, 21F, 24F, 27F, 30F, 33F, 36F)
|
||||||
if (editText != null) {
|
if (editText != null) {
|
||||||
setTextSize(editText, size, 22F, 24F, 27F, 30F, 33F, 36F)
|
setTextSize(editText, size, 21F, 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)
|
||||||
|
|
@ -446,11 +444,11 @@ class UIUtils(private val context: Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setSearchSize(searchView: TextInputEditText) {
|
fun setSearchSize(searchView: TextInputEditText) {
|
||||||
setTextSize(searchView, sharedPreferenceManager.getSearchSize(), 22F, 21F, 25F, 27F, 30F, 33F)
|
setTextSize(searchView, sharedPreferenceManager.getSearchSize(), 18F, 21F, 25F, 27F, 30F, 33F)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setMenuTitleSize(menuTitle: TextView) {
|
fun setMenuTitleSize(menuTitle: TextView) {
|
||||||
setTextSize(menuTitle, sharedPreferenceManager.getAppSize(), 22F, 30F, 33F, 36F, 39F, 42F)
|
setTextSize(menuTitle, sharedPreferenceManager.getAppSize(), 27F, 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,6 +17,10 @@
|
||||||
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"
|
||||||
|
|
@ -24,8 +28,9 @@
|
||||||
android:background="@android:color/transparent"
|
android:background="@android:color/transparent"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingHorizontal="22dp"
|
android:paddingLeft="40dp"
|
||||||
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"
|
||||||
|
|
@ -45,7 +50,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="2dp"
|
android:fadingEdgeLength="20dp"
|
||||||
android:padding="0dp"
|
android:padding="0dp"
|
||||||
android:requiresFadingEdge="vertical"
|
android:requiresFadingEdge="vertical"
|
||||||
android:scrollbars="none">
|
android:scrollbars="none">
|
||||||
|
|
@ -70,8 +75,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="22dp"
|
android:layout_marginHorizontal="32dp"
|
||||||
android:layout_marginTop="0dp"
|
android:layout_marginTop="5dp"
|
||||||
android:layout_marginBottom="10dp"
|
android:layout_marginBottom="10dp"
|
||||||
android:layout_weight="0.1"
|
android:layout_weight="0.1"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
|
@ -91,6 +96,7 @@
|
||||||
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"
|
||||||
|
|
@ -158,10 +164,9 @@
|
||||||
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="0dp"
|
android:layout_marginHorizontal="32dp"
|
||||||
android:layout_marginTop="0dp"
|
android:layout_marginTop="45dp"
|
||||||
android:layout_marginBottom="78dp"
|
android:layout_marginBottom="27dp"
|
||||||
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"
|
||||||
|
|
@ -178,11 +183,9 @@
|
||||||
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="yyyy-MM-dd / EEEE"
|
android:format24Hour="dd MMM yyyy"
|
||||||
android:lineSpacingExtra="0sp"
|
android:lineSpacingExtra="8sp"
|
||||||
android:paddingTop="0dp"
|
android:paddingHorizontal="2dp"
|
||||||
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"
|
||||||
|
|
@ -198,17 +201,18 @@
|
||||||
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" />
|
android:layout_weight="0.22" />
|
||||||
|
|
||||||
<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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -221,10 +225,11 @@
|
||||||
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="8dp"
|
android:drawablePadding="3dp"
|
||||||
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"
|
||||||
|
|
@ -237,10 +242,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -253,10 +259,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -269,10 +276,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -285,10 +293,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -301,10 +310,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -317,10 +327,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -333,10 +344,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -349,10 +361,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -365,10 +378,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -381,10 +395,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -397,10 +412,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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"
|
||||||
|
|
@ -413,10 +429,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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,10 +446,11 @@
|
||||||
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:drawablePadding="8dp"
|
android:paddingHorizontal="20dp"
|
||||||
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="0dp"
|
android:paddingVertical="5dp"
|
||||||
android:visibility="invisible">
|
android:visibility="invisible">
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
|
@ -37,6 +37,8 @@
|
||||||
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
|
||||||
|
|
@ -60,11 +62,12 @@
|
||||||
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="8dp"
|
android:drawablePadding="3dp"
|
||||||
android:gravity="start|center_vertical"
|
android:gravity="start|center_vertical"
|
||||||
android:paddingHorizontal="0dp"
|
android:paddingLeft="20dp"
|
||||||
android:paddingTop="0dp"
|
android:paddingTop="20dp"
|
||||||
android:paddingBottom="0dp"
|
android:paddingRight="20dp"
|
||||||
|
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"
|
||||||
|
|
@ -86,7 +89,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="0dp"
|
android:paddingVertical="5dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/pin"
|
android:text="@string/pin"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
|
|
@ -100,7 +103,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="0dp"
|
android:paddingVertical="5dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/info"
|
android:text="@string/info"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
|
|
@ -114,7 +117,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="0dp"
|
android:paddingVertical="5dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/uninstall"
|
android:text="@string/uninstall"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
|
|
@ -128,7 +131,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="0dp"
|
android:paddingVertical="5dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/rename"
|
android:text="@string/rename"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
|
|
@ -142,7 +145,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="0dp"
|
android:paddingVertical="5dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/hide"
|
android:text="@string/hide"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
|
|
@ -156,7 +159,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="0dp"
|
android:paddingVertical="5dp"
|
||||||
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.15</item>
|
<item>0.06</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">#FFCDCDCD</item>
|
<item name="colorAccent">#FF80CBC4</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