diff --git a/.gitignore b/.gitignore index 21da4996..f0c90b45 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ keystore.properties fastlane/fastlane.json Gemfile Gemfile.lock +/java_pid3915.hprof diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 6d48d33b..14f3737a 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -55,6 +55,7 @@ android { buildFeatures { viewBinding = true compose = true + buildConfig = true } composeOptions { @@ -93,6 +94,7 @@ android { checkReleaseBuilds = false abortOnError = false } + namespace = "com.simplemobiletools.calculator" } dependencies { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ee0ed452..319e89c1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,6 @@ Unit, customizeColors: () -> Unit, - backgroundColor: Int + backgroundColor: Int, + topBarsScrolledContainerColor: Color = primaryColor ) { + val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()) Scaffold( modifier = Modifier .fillMaxSize() - .background(Color(backgroundColor)), + .background(Color(backgroundColor)) + .nestedScroll(scrollBehavior.nestedScrollConnection), topBar = { TopAppBar( title = { @@ -50,7 +55,11 @@ fun SettingsScreen( .clickable { goBack() } .padding(start = 8.dp) ) - } + }, + scrollBehavior = scrollBehavior, + colors = TopAppBarDefaults.largeTopAppBarColors( + scrolledContainerColor = topBarsScrolledContainerColor, + ), ) } ) { paddingValues -> diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index 08503998..a9e8b4cd 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -95,6 +95,66 @@ + + + + + + + + + + + + + + + + + + + + + + + +