-
Notifications
You must be signed in to change notification settings - Fork 1
[Feature/#183] android 15 #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
28877e8
bb72ea1
091a186
d04b1e8
f8c14f4
4770ca5
b1f825a
2da1bc7
e324f46
61ae7fe
09fc954
69036c5
4738992
d6faffd
ff9e0ac
d63fb76
b690b2e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| package com.teamwable.ui.extensions | ||
|
|
||
| import android.view.View | ||
| import androidx.annotation.ColorRes | ||
| import androidx.core.view.ViewCompat | ||
| import androidx.core.view.WindowInsetsCompat | ||
| import androidx.core.view.updateLayoutParams | ||
|
|
||
| fun View.visible(isVisible: Boolean) { | ||
| this.visibility = if (isVisible) View.VISIBLE else View.GONE | ||
| } | ||
|
|
||
| fun View.setStatusBarColor(@ColorRes resId: Int) { | ||
| setBackgroundResource(resId) | ||
|
|
||
| ViewCompat.setOnApplyWindowInsetsListener(this.rootView) { _, windowInsets -> | ||
| val insets = windowInsets.getInsets(WindowInsetsCompat.Type.statusBars()) | ||
| updateLayoutParams { | ||
| height = insets.top | ||
| } | ||
| windowInsets | ||
| } | ||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,52 +1,63 @@ | ||||||||||||||||||||||
| <?xml version="1.0" encoding="utf-8"?> | ||||||||||||||||||||||
| <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||||||||||||||||||||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||||||||||||||||||||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||
| android:layout_height="match_parent"> | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| <androidx.fragment.app.FragmentContainerView | ||||||||||||||||||||||
| android:id="@+id/fcv_main" | ||||||||||||||||||||||
| android:name="androidx.navigation.fragment.NavHostFragment" | ||||||||||||||||||||||
| android:layout_width="0dp" | ||||||||||||||||||||||
| android:layout_height="0dp" | ||||||||||||||||||||||
| app:defaultNavHost="true" | ||||||||||||||||||||||
| app:layout_constraintBottom_toTopOf="@id/divider_main_bnv" | ||||||||||||||||||||||
| app:layout_constraintEnd_toEndOf="parent" | ||||||||||||||||||||||
| app:layout_constraintStart_toStartOf="parent" | ||||||||||||||||||||||
| app:layout_constraintTop_toTopOf="parent" | ||||||||||||||||||||||
| app:navGraph="@navigation/graph_main" /> | ||||||||||||||||||||||
| <View | ||||||||||||||||||||||
| android:id="@+id/status_bar_background" | ||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||
| android:layout_height="0dp" /> | ||||||||||||||||||||||
|
Comment on lines
+7
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. μνλ° λ°°κ²½ Viewμ λμ΄κ° 0dpλ‘ μ€μ λμ΄ λ λλ§λμ§ μμ΅λλ€.
λ€μ diffλ₯Ό μ μ©νμ¬ μνλ° λμ΄λ§νΌ νμλλλ‘ μμ νμΈμ: <View
android:id="@+id/status_bar_background"
android:layout_width="match_parent"
- android:layout_height="0dp" />
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:fitsSystemWindows="true" />λλ insetsμ νμ©νμ¬ λμ μΌλ‘ μνλ° λμ΄λ₯Ό μ μ©νλ λ°©λ²λ κ³ λ €ν΄μ£ΌμΈμ. π Committable suggestion
Suggested change
π€ Prompt for AI Agents |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| <androidx.constraintlayout.widget.Group | ||||||||||||||||||||||
| android:id="@+id/group_main_bnv" | ||||||||||||||||||||||
| android:layout_width="wrap_content" | ||||||||||||||||||||||
| <androidx.constraintlayout.widget.ConstraintLayout | ||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||
| android:layout_height="match_parent" | ||||||||||||||||||||||
| app:constraint_referenced_ids="divider_main_bnv, bnv_main" /> | ||||||||||||||||||||||
| android:fitsSystemWindows="true"> | ||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fitsSystemWindows="true"κ° enableEdgeToEdge()μ μΆ©λν©λλ€.
λ€μ diffλ₯Ό μ μ©νμ¬ μΆ©λμ ν΄κ²°νμΈμ: <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:fitsSystemWindows="true">
+ android:clipToPadding="false">κ·Έλ¦¬κ³ νμν κ²½μ° π Committable suggestion
Suggested change
π€ Prompt for AI Agents |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| <com.google.android.material.divider.MaterialDivider | ||||||||||||||||||||||
| android:id="@+id/divider_main_bnv" | ||||||||||||||||||||||
| android:layout_width="0dp" | ||||||||||||||||||||||
| android:layout_height="1dp" | ||||||||||||||||||||||
| app:dividerColor="@color/gray_200" | ||||||||||||||||||||||
| app:layout_constraintBottom_toTopOf="@id/bnv_main" | ||||||||||||||||||||||
| app:layout_constraintEnd_toEndOf="parent" | ||||||||||||||||||||||
| app:layout_constraintStart_toStartOf="parent" /> | ||||||||||||||||||||||
| <androidx.fragment.app.FragmentContainerView | ||||||||||||||||||||||
| android:id="@+id/fcv_main" | ||||||||||||||||||||||
| android:name="androidx.navigation.fragment.NavHostFragment" | ||||||||||||||||||||||
| android:layout_width="0dp" | ||||||||||||||||||||||
| android:layout_height="0dp" | ||||||||||||||||||||||
| app:defaultNavHost="true" | ||||||||||||||||||||||
| app:layout_constraintBottom_toTopOf="@id/divider_main_bnv" | ||||||||||||||||||||||
| app:layout_constraintEnd_toEndOf="parent" | ||||||||||||||||||||||
| app:layout_constraintStart_toStartOf="parent" | ||||||||||||||||||||||
| app:layout_constraintTop_toTopOf="parent" | ||||||||||||||||||||||
| app:navGraph="@navigation/graph_main" /> | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| <com.google.android.material.bottomnavigation.BottomNavigationView | ||||||||||||||||||||||
| android:id="@+id/bnv_main" | ||||||||||||||||||||||
| android:layout_width="0dp" | ||||||||||||||||||||||
| android:layout_height="84dp" | ||||||||||||||||||||||
| app:backgroundTint="@color/white" | ||||||||||||||||||||||
| app:itemActiveIndicatorStyle="@null" | ||||||||||||||||||||||
| app:itemPaddingBottom="25dp" | ||||||||||||||||||||||
| app:itemPaddingTop="13dp" | ||||||||||||||||||||||
| app:itemRippleColor="@color/white" | ||||||||||||||||||||||
| app:itemTextAppearanceActive="@style/TextAppearance.Wable.Caption5" | ||||||||||||||||||||||
| app:itemTextAppearanceActiveBoldEnabled="false" | ||||||||||||||||||||||
| app:itemTextAppearanceInactive="@style/TextAppearance.Wable.Caption5" | ||||||||||||||||||||||
| app:itemTextColor="@color/sel_main_bnv_menu_color" | ||||||||||||||||||||||
| app:labelVisibilityMode="labeled" | ||||||||||||||||||||||
| app:layout_constraintBottom_toBottomOf="parent" | ||||||||||||||||||||||
| app:layout_constraintEnd_toEndOf="parent" | ||||||||||||||||||||||
| app:layout_constraintStart_toStartOf="parent" | ||||||||||||||||||||||
| app:menu="@menu/menu_main_navigation" /> | ||||||||||||||||||||||
| </androidx.constraintlayout.widget.ConstraintLayout> | ||||||||||||||||||||||
| <androidx.constraintlayout.widget.Group | ||||||||||||||||||||||
| android:id="@+id/group_main_bnv" | ||||||||||||||||||||||
| android:layout_width="wrap_content" | ||||||||||||||||||||||
| android:layout_height="match_parent" | ||||||||||||||||||||||
| app:constraint_referenced_ids="divider_main_bnv, bnv_main" /> | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| <com.google.android.material.divider.MaterialDivider | ||||||||||||||||||||||
| android:id="@+id/divider_main_bnv" | ||||||||||||||||||||||
| android:layout_width="0dp" | ||||||||||||||||||||||
| android:layout_height="1dp" | ||||||||||||||||||||||
| app:dividerColor="@color/gray_200" | ||||||||||||||||||||||
| app:layout_constraintBottom_toTopOf="@id/bnv_main" | ||||||||||||||||||||||
| app:layout_constraintEnd_toEndOf="parent" | ||||||||||||||||||||||
| app:layout_constraintStart_toStartOf="parent" /> | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| <com.google.android.material.bottomnavigation.BottomNavigationView | ||||||||||||||||||||||
| android:id="@+id/bnv_main" | ||||||||||||||||||||||
| android:layout_width="0dp" | ||||||||||||||||||||||
| android:layout_height="84dp" | ||||||||||||||||||||||
| app:backgroundTint="@color/white" | ||||||||||||||||||||||
| app:itemActiveIndicatorStyle="@null" | ||||||||||||||||||||||
| app:itemPaddingBottom="25dp" | ||||||||||||||||||||||
| app:itemPaddingTop="13dp" | ||||||||||||||||||||||
| app:itemRippleColor="@color/white" | ||||||||||||||||||||||
| app:itemTextAppearanceActive="@style/TextAppearance.Wable.Caption5" | ||||||||||||||||||||||
| app:itemTextAppearanceActiveBoldEnabled="false" | ||||||||||||||||||||||
| app:itemTextAppearanceInactive="@style/TextAppearance.Wable.Caption5" | ||||||||||||||||||||||
| app:itemTextColor="@color/sel_main_bnv_menu_color" | ||||||||||||||||||||||
| app:labelVisibilityMode="labeled" | ||||||||||||||||||||||
| app:layout_constraintBottom_toBottomOf="parent" | ||||||||||||||||||||||
| app:layout_constraintEnd_toEndOf="parent" | ||||||||||||||||||||||
| app:layout_constraintStart_toStartOf="parent" | ||||||||||||||||||||||
| app:menu="@menu/menu_main_navigation" /> | ||||||||||||||||||||||
| </androidx.constraintlayout.widget.ConstraintLayout> | ||||||||||||||||||||||
| </RelativeLayout> | ||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.