• Bryan Herbst

    Bryan Herbst

    1 year ago
    I noticed that the README files for week three of the Android Dev Challenge included this note:
    Did you know you can copy the preview as an image by right clicking on it?
    Which doesn’t actually work for me in Android Studio 2020.3 Canary 9. Is this functionality that should be working, or is planned but just not quite working yet?
    Bryan Herbst
    Jorkoh
    4 replies
    Copy to Clipboard
  • d

    Daniele B

    1 year ago
    On the Compose icons, I can only find the “filled” Star icon
    Icons.Default.Star
    but not the “empty” one. Anyone knows if it’s available?
    d
    a
    +3
    10 replies
    Copy to Clipboard
  • Colton Idle

    Colton Idle

    1 year ago
    How would you all go about building this? I guess I can just make a Column with two item types. One item type is for the header, and the other is for each typeface item. Each typeface item would just be a row with weight distributed as 40%, 20%, 20%, 20% I just want to make sure there's no other obvious solution here. There's no "grid" or "table" (like html/css) in compose right?
    Colton Idle
    1 replies
    Copy to Clipboard
  • Colton Idle

    Colton Idle

    1 year ago
    This is a great little article on the UX of preview in compose https://medium.com/androiddevelopers/a-ux-journey-of-compose-preview-3c95e1f0a8bf Two things in :thread-please:
    Colton Idle
    1 replies
    Copy to Clipboard
  • j

    Jakub Ledwon

    1 year ago
    Hi there, I'm playing with animations and I encountered a following problem: I have two texts and I'm animting their
    fontSize
    (pulse effect animation). I want an animation to be infinite, but I want to be able to restart an animation from default value when state changes. So basically I have a switch which determines which text should be animating, and when switch changes the animation should reset. As my animation is infinite I tried
    rememberInfiniteTransition
    , but there is no way to restart it (or I didn't find any). What would be the best approach for this problem? I would need something like
    InfiniteTransition
    but I don't want to remember it during state changes.
    j
    1 replies
    Copy to Clipboard
  • Deepak Gahlot

    Deepak Gahlot

    1 year ago
    I can see we have a textOverflow property in Text(), but there is no such option in TextField. How do we achieve ellipsis in TextField
    Deepak Gahlot
    a
    +1
    7 replies
    Copy to Clipboard
  • s

    Slackbot

    1 year ago
    This message was deleted.
    s
    Rahul Sainani
    2 replies
    Copy to Clipboard
  • k

    Kshitij Patil

    1 year ago
    I might be stating an obvious fact, but noticed one thing today and thought I should share the same. When you’ve many UI components (Button, Text, Progress bar, etc.) cluttered in smaller region and this region is going to get re-composed highly frequent due to some state changes, I simple
    Row
    Column
    based Composable works way better than
    ConstraintLayout
    . So you might lose some alignment constraint provisions but there won’t be any performance hits.
    ConstraintLayout
    was accumulating lag over the time while
    Row
    ,
    Column
    being simple enough, was able to handle heavy operations.
    k
    1 replies
    Copy to Clipboard
  • Rafs

    Rafs

    1 year ago
    What is the difference between
    Modifier.height
    and
    Modifier.requiredHeight
    ?
    Rafs
    Geert
    +3
    5 replies
    Copy to Clipboard
  • Danish Ansari

    Danish Ansari

    1 year ago
    Hello dear developers, I just wanted to ask, now that Compose is in beta, is it safe to use it in already existing production apps? As guided here https://developer.android.com/jetpack/compose/interop
    Danish Ansari
    a
    +3
    8 replies
    Copy to Clipboard