File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
java/com/hoc/flowmvi/core_ui
feature-main/src/main/java/com/hoc/flowmvi/ui/main Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ package com.hoc.flowmvi.core_ui
2
2
3
3
import android.content.Context
4
4
import android.widget.Toast
5
+ import androidx.annotation.Px
5
6
6
7
@Suppress(" NOTHING_TO_INLINE" )
7
8
inline fun Context.toast (text : CharSequence ) = Toast .makeText(this , text, Toast .LENGTH_SHORT ).show()
8
9
10
+ @Px
9
11
@Suppress(" NOTHING_TO_INLINE" )
10
- inline fun Context.dpToPx (dp : Int ): Int = (dp * resources.displayMetrics.density).toInt()
12
+ inline fun Context.dpToPx (dp : Float ): Int = (dp * resources.displayMetrics.density).toInt()
Original file line number Diff line number Diff line change 21
21
<color name =" md_theme_light_onSurface" >#1C1B1F</color >
22
22
<color name =" md_theme_light_surfaceVariant" >#E7E0EC</color >
23
23
<color name =" md_theme_light_onSurfaceVariant" >#49454F</color >
24
- <color name =" md_theme_light_outline" >#79747E </color >
24
+ <color name =" md_theme_light_outline" >#9A989C </color >
25
25
<color name =" md_theme_light_inverseOnSurface" >#F4EFF4</color >
26
26
<color name =" md_theme_light_inverseSurface" >#313033</color >
27
27
<color name =" md_theme_light_primaryInverse" >#D0BCFF</color >
48
48
<color name =" md_theme_dark_onSurface" >#E6E1E5</color >
49
49
<color name =" md_theme_dark_surfaceVariant" >#49454F</color >
50
50
<color name =" md_theme_dark_onSurfaceVariant" >#CAC4D0</color >
51
- <color name =" md_theme_dark_outline" >#938F99 </color >
51
+ <color name =" md_theme_dark_outline" >#6D6775 </color >
52
52
<color name =" md_theme_dark_inverseOnSurface" >#1C1B1F</color >
53
53
<color name =" md_theme_dark_inverseSurface" >#E6E1E5</color >
54
54
<color name =" md_theme_dark_primaryInverse" >#6750A4</color >
Original file line number Diff line number Diff line change @@ -65,9 +65,10 @@ class MainActivity :
65
65
adapter = userAdapter
66
66
addItemDecoration(
67
67
MaterialDividerItemDecoration (context, RecyclerView .VERTICAL ).apply {
68
- dividerInsetStart = dpToPx(8 )
69
- dividerInsetEnd = dpToPx(8 )
68
+ dividerInsetStart = dpToPx(8f )
69
+ dividerInsetEnd = dpToPx(8f )
70
70
isLastItemDecorated = false
71
+ dividerThickness = dpToPx(0.8f )
71
72
}
72
73
)
73
74
You can’t perform that action at this time.
0 commit comments