Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View DmytroShuba's full-sized avatar
🏠
Working from home

Dmytro DmytroShuba

🏠
Working from home
View GitHub Profile
@DmytroShuba
DmytroShuba / config.ini
Created November 1, 2022 20:35
Android UI testing on CI. Config.ini
PlayStore.enabled=false
abi.type=x86_64
avd.ini.encoding=UTF-8
hw.cpu.arch=x86_64
hw.cpu.ncore=2
hw.ramSize=2048
hw.lcd.density=120
hw.lcd.width=320
hw.lcd.height=480
hw.audioInput=no
Text(
text = "Hello world"
)
object TextAppearance {
val Medium = SpanStyle(
fontSize = 32.sp,
color = Color.Black,
background = Color.Gray
)
}
val medium = SpanStyle(
fontSize = 32.sp,
color = Color.Black,
background = Color.Gray
)
@DmytroShuba
DmytroShuba / rich-text-styles.xml
Created February 23, 2022 21:31
rich text styles
<style name="TextAppearance.MyApp.Medium" parent="TextAppearance.AppCompat.Medium">
<item name="android:textSize">32sp</item>
<item name="android:color">@color/black</item>
<item name="background">@color/gray</item>
</style>
@DmytroShuba
DmytroShuba / CustomTheme-GalleryItem.kt
Created November 10, 2021 15:36
CreateCustomTheme - GalleryItem
@Composable
fun GalleryItem(item: PhotographItem) {
Column(
modifier = Modifier.padding(AppTheme.dimensions.paddingMedium)
) {
Text(
text = item.description,
style = AppTheme.typography.body,
color = AppTheme.colors.textPrimary
modifier = Modifier.padding(AppTheme.dimensions.paddingSmall)