Jetpack Compose Migration: Section 1. Get Began | by way of Engine Bai | Medium | 大白 | 白昌永


What we added don’t seem to be most effective the kinds, we additionally added the `modifier`, the modifier in Jetpack Compose can set the illusion or adorn your UI parts, comparable to measurement, colour, padding…and so on., you’ll be able to take a look on the report to grasp all of the attributes that we will be able to set for our UI.

There’s one composable serve as we simply used ahead of however didn’t point out but: MovieRatingWidget(), there are 3 parts laid in horizontally LinearLayout that we will be able to use Row in Jetpack Compose. Row will position the parts horizontally.

Final section we can upload a again button to top-left aspect overlap the picture, right here we will be able to use Field() for UI part overlap:

So the general code is right here:

On this section, we’re speaking in regards to the fundamental compose purposes: Textual content(), Button(), Column(), Row(), Field() …and so on to construct our UI, modifier and magnificence for UI ornament. For the combo of Column(), Row(), and Field() with the robust modifier, it is advisable to construct a extra elaborate structure to your app.

For complete venture be at liberty to clone or give a contribution and it might be great to famous person my venture, thanks to your fortify!



Supply hyperlink

Leave a Reply

Your email address will not be published.

Back To Top