Status Update
Comments
za...@google.com <za...@google.com> #2
Hello,
I'm only a little familiar with Power Apps. Is your app a mobile app or a web app?
This link
The primary
If your app does not work on Android mobile devices, you can also consider the
k....@gmail.com <k....@gmail.com> #3
za...@google.com <za...@google.com> #4
sorry, I should have been more clear, what is the use case you're thinking about?
k....@gmail.com <k....@gmail.com> #5
For example flipping a drawable 180 degrees like this, so that we don't need to create an extra drawable if we need the arrow to point down.
Image(
provider = ImageProvider(R.drawable.icon_arrow_up),
modifier = GlanceModifier.size(10.dp).rotate(180f),
contentDescription = ""
)
za...@google.com <za...@google.com> #6
support rotate would be good feature request, but not super high in priority for us at the moment.
In the mean time, you could add a RotateDrawable in your xml resources?
icon_arrow_down.xml:
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="180"
android:toDegrees="180"
android:pivotX="50%"
android:pivotY="50%"
android:drawable="@drawable/icon_arrow_up">
</rotate>
we...@gmail.com <we...@gmail.com> #7
k....@gmail.com <k....@gmail.com> #8
Thank you for the answer. Yes, that's exactly what I'm using right now :)
Description
Component used: Image composable from androidx.glance
Version used: 1.0.0-alpha05
It would be really helpful to add a
rotate
GlanceModifier in theImage
composable.