Updated on 2026-08-14
This commit is contained in:
commit
4157dd7cce
3 changed files with 16 additions and 5 deletions
|
|
@ -55,7 +55,7 @@
|
|||
android:launchMode="singleTop"
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@style/SplashTheme"
|
||||
android:windowSoftInputMode="adjustNothing">
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
|
|
|||
|
|
@ -4,8 +4,10 @@ import android.annotation.SuppressLint
|
|||
import android.content.Intent
|
||||
import android.content.pm.ActivityInfo
|
||||
import android.content.res.Configuration
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import android.view.WindowManager
|
||||
import androidx.activity.SystemBarStyle
|
||||
import androidx.activity.enableEdgeToEdge
|
||||
import androidx.activity.viewModels
|
||||
|
|
@ -217,6 +219,15 @@ class MainActivity : AppCompatActivity(), SnackbarHandler, ActivityResultCallbac
|
|||
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
// We have to allow adjust_resize (can only be specified in the manifest) for Android <=10,
|
||||
// in order for imePadding to work correctly
|
||||
// for Android 11+ we set SOFT_INPUT_ADJUST_NOTHING to prevent resizing the layout
|
||||
// so that we don't have any distortions in the layout when displaying the keyboard
|
||||
// https://issuetracker.google.com/issues/266331465
|
||||
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.Q) {
|
||||
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING)
|
||||
}
|
||||
|
||||
splashScreen.setKeepOnScreenCondition { viewModel.isSplashScreenShown }
|
||||
|
||||
installActivityDependencies()
|
||||
|
|
|
|||
|
|
@ -59,13 +59,13 @@
|
|||
<item name="android:minHeight">48dp</item>
|
||||
<item name="android:insetTop">0dp</item>
|
||||
<item name="android:insetBottom">0dp</item>
|
||||
<item name="cornerRadius">14dp</item>
|
||||
<item name="cornerRadius">16dp</item>
|
||||
<item name="android:textAllCaps">false</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:fontFamily">@font/roboto_medium</item>
|
||||
<item name="android:letterSpacing">0.01</item>
|
||||
<item name="android:letterSpacing">0.05</item>
|
||||
<item name="fontWeight">500</item>
|
||||
<item name="lineHeight">16sp</item>
|
||||
<item name="lineHeight">24sp</item>
|
||||
<item name="iconPadding">4dp</item>
|
||||
</style>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue