• d

    David Mcrae Jr

    2 years ago
    Anyone have a good example showing a Data Class -> ViewModel -> Composable View with a FilledTextField (or any text field for that matter)? Most example projects don’t show data input…. Thanks in advance
    d
    Ben
    2 replies
    Copy to Clipboard
  • bohregard

    bohregard

    2 years ago
    I’m running into issues with the latest version of Android Studio and the Kotlin 1.4-M3 plugin. Is this expected? The build compiles with no issues, it’s just really driving me up the wall to see so many red squiggles
    bohregard
    jim
    15 replies
    Copy to Clipboard
  • henrikhorbovyi

    henrikhorbovyi

    2 years ago
    Is it possible to use Compose with a non androidx project. I mean, I'm contributing to a project (Koin to be specific) and I'd like to add a module running compose to add some feature to the whole project, but compose complains that my project is not androidx I should add:
    android.useAndroidX=true
    android.enableJetifier=true
    To the gradle.properties, but it would impact imports in the entire project 😞 I've tried to add a gradle.properties for the specific module, but it didn't work
    henrikhorbovyi
    gildor
    +2
    11 replies
    Copy to Clipboard
  • Mehdi Haghgoo

    Mehdi Haghgoo

    2 years ago
    Is it possible to use a custom font ( a ttf file I added to the font res directory) with Jetpack Text()? I have failed so far to do so!
    Mehdi Haghgoo
    Adrian Blanco
    2 replies
    Copy to Clipboard
  • p

    Philip Blandford

    2 years ago
    Seem to have a bug with OutlinedTextField in Popups - it crashes after a couple of key strokes (dev15)
    p
    1 replies
    Copy to Clipboard
  • tjohnn

    tjohnn

    2 years ago
    A simple gridview implementation with compose, anyone?
    tjohnn
    Timo Drick
    2 replies
    Copy to Clipboard
  • tjohnn

    tjohnn

    2 years ago
    Another question, why is it that paddings on
    Card
    's are somehow showing as margins? Am I getting it wrong?
    tjohnn
    Adam Powell
    +1
    9 replies
    Copy to Clipboard
  • henrikhorbovyi

    henrikhorbovyi

    2 years ago
    I'm updating from
    dev14
    ->
    dev15
    and I got the following error: Any ideas?
    henrikhorbovyi
    itnoles
    +1
    4 replies
    Copy to Clipboard
  • v

    Vinay Gaba

    2 years ago
    Hello wonderful people 👋🏼 I started collecting and answering some “Frequently Asked Questions” about Compose. I would love to know which other questions I should be adding to this list. You can find it here 👉🏼 https://JetpackCompose.app/faq. Also if you think any information is incorrect, please let me know!
    v
    Zach Klippenstein (he/him) [MOD]
    +4
    21 replies
    Copy to Clipboard
  • andylamax

    andylamax

    2 years ago
    To avoid too much indentation, I write my code like this,
    @Composable
    fun Widget() = Column(modifier = Modifier.fillMaxSize()) {
      Text(
        text = "First item",
        modifier = Modifier.padding(16.dp)
      )
      Text(
        text = "Second item",
        modifier = Modifier.padding(16.dp)
      )
      Text(
        text = "Third item",
        modifier = Modifier.padding(16.dp)
      )
    }
    Is there a caveat?
    andylamax
    tjohnn
    2 replies
    Copy to Clipboard