File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
kotlin/com/leinardi/android/speeddial/sample/compose Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import androidx.compose.foundation.layout.padding
3535import androidx.compose.foundation.lazy.LazyColumn
3636import androidx.compose.material.AppBarDefaults
3737import androidx.compose.material.BottomAppBar
38+ import androidx.compose.material.ContentAlpha
3839import androidx.compose.material.ExperimentalMaterialApi
3940import androidx.compose.material.Icon
4041import androidx.compose.material.IconButton
@@ -55,6 +56,7 @@ import androidx.compose.runtime.rememberCoroutineScope
5556import androidx.compose.runtime.saveable.rememberSaveable
5657import androidx.compose.runtime.setValue
5758import androidx.compose.ui.Modifier
59+ import androidx.compose.ui.draw.alpha
5860import androidx.compose.ui.graphics.Color
5961import androidx.compose.ui.platform.LocalContext
6062import androidx.compose.ui.res.painterResource
@@ -309,7 +311,9 @@ fun MainContent() {
309311 ) {
310312 Text (
311313 text = " This is element #$index " ,
314+ style = MaterialTheme .typography.body1,
312315 modifier = Modifier
316+ .alpha(ContentAlpha .medium)
313317 .fillMaxWidth()
314318 .padding(16 .dp),
315319 )
Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" encoding =" utf-8" ?>
2- <!--
1+ <?xml version =" 1.0" encoding =" utf-8" ?><!--
32 ~ Copyright 2022 Roberto Leinardi.
43 ~
54 ~ Licensed under the Apache License, Version 2.0 (the "License");
3029 android : layout_width =" wrap_content"
3130 android : layout_height =" wrap_content"
3231 android : layout_gravity =" center_vertical"
33- android : textAppearance =" ?android:textAppearanceMedium"
32+ android : alpha =" 0.74"
33+ android : textSize =" 16.sp"
3434 tools : text =" An element" />
3535</FrameLayout >
You can’t perform that action at this time.
0 commit comments