https://kotlinlang.org
Join Slack
Hi, can someone recommend the detekt.yml config for Android Jetpack Compose app without using any 3d...
c

ch13mob

over 2 years ago
Hi, can someone recommend the detekt.yml config for Android Jetpack Compose app without using any 3d parties libraries and that follows the official detekt documentation? https://detekt.dev/docs/introduction/compose/
c
g
+2
  • 4
  • 6
  • 525
Shouldn't `textAlign = TextAlign.Justify` mean the whitespace is stretched to fill the width? Or am ...
a

adjpd

about 4 years ago
Shouldn't
textAlign = TextAlign.Justify
mean the whitespace is stretched to fill the width? Or am I misunderstanding
TextAlign.Justify
?
Text(
  "heebie-jeebies ".repeat(4),
  Modifier.fillMaxWidth().background(Color.Yellow),
  textAlign = TextAlign.Justify
)
a
  • 1
  • 1
  • 524
I'm drawing a shadow around my bottom bar using the shadow modifier but it looks sharp. How can I dr...
s

Se7eN

over 4 years ago
I'm drawing a shadow around my bottom bar using the shadow modifier but it looks sharp. How can I draw a smoother shadow? I've tried playing around with the elevation but got nothing
➕ 1
s
d
+3
  • 5
  • 28
  • 524
`Modifier.fillMaxHeight()` is not working, can some one explain me what I am doing wrong? ```Row(Mo...
m

Mohammad Sianaki

about 5 years ago
Modifier.fillMaxHeight()
is not working, can some one explain me what I am doing wrong?
Row(Modifier.padding(horizontal = 32.dp, vertical = 16.dp).background(Color.Red)) {
    Column(Modifier.fillMaxHeight().weight(1f).background(Color.Cyan)) {
        Row {
            Image(
                asset = imageResource(id = Drawables.mappin),
                Modifier.gravity(Alignment.CenterVertically)
            )
            Column(Modifier.padding(start = 16.dp)) {
                Text(
                    text = "Address", style = TextStyle(
                        color = Color.Black.copy(alpha = 0.7f),
                        fontSize = 20.sp
                    )
                )
                Text(
                    text = "House # 2, Road # 5, Green Road Dhanmondi, Dhaka, Bangladesh",
                    style = TextStyle(color = Color.Gray)
                )
            }
        }
        Row {
            Image(
                asset = imageResource(id = Drawables.clock),
                Modifier.gravity(Alignment.CenterVertically)
            )
            Column(Modifier.padding(start = 16.dp)) {
                Text(
                    text = "Daily Practice", style = TextStyle(
                        color = Color.Black.copy(alpha = 0.7f),
                        fontSize = 20.sp
                    )
                )
                Text(
                    text = "Monday - Friday Open till 7 Pm",
                    style = TextStyle(color = Color.Gray)
                )
            }
        }
    }
    Image(
        asset = imageResource(id = Drawables.map),
        modifier = Modifier.fillMaxHeight().weight(1f)
    )
}
m
z
+2
  • 4
  • 9
  • 524
How to have Text with html tags like <br>, <b>, etc... in Compose? I see that there is a...
p

Pablo

over 1 year ago
How to have Text with html tags like <br>, <b>, etc... in Compose? I see that there is a function that seems to do it:
text.parseAsHtml()
But it returns a Spannable and Text composable requires a String
p
a
+2
  • 4
  • 7
  • 523
How am I supposed to save something like auth credentials or JWT tokens in a kmm app?
m

Marc

about 2 years ago
How am I supposed to save something like auth credentials or JWT tokens in a kmm app?
👀 1
m
p
k
  • 3
  • 15
  • 523
I’m struggling in binding the UI(SwiftUI especially) to the ViewModel(StateFlow), and wondering if t...
a

AmrJyniat

over 2 years ago
I’m struggling in binding the UI(SwiftUI especially) to the ViewModel(StateFlow), and wondering if there is an easy way to bind between them like Compose&StateFlow
a
j
a
  • 3
  • 9
  • 523
One of the reasons I'm hesitant to use KVision instead of something like react is just how many nice...
s

spierce7

almost 3 years ago
One of the reasons I'm hesitant to use KVision instead of something like react is just how many nice libraries that React has for UI components etc. I'm curious if there is a solution to this, i.e. if KVision plays nicely with other UI frameworks.
s
r
  • 2
  • 15
  • 523
Hello, I have a mocked object and trying to setup `coEvery` to mock a specific function although som...
a

André Martins

over 3 years ago
Hello, I have a mocked object and trying to setup
coEvery
to mock a specific function although somehow the
coEvery
call is hanging when I run the test. What can cause this hanging?
a
m
  • 2
  • 15
  • 523
There is an issue with focus restore on recomposition. When we use dynamic list of TextFields and ad...
r

rsktash

about 4 years ago
There is an issue with focus restore on recomposition. When we use dynamic list of TextFields and add new TextField on last text change the focus is passed to the new TextField https://github.com/rustamsmax/compose-report
r
r
  • 2
  • 25
  • 523
Previous122123124Next

kotlinlang

A modern programming language that makes developers happier.

Powered by