How should we implement Jetpack Compose on the Compose sample folder? #279
Replies: 3 comments 6 replies
-
@nimblehq/android-chapter I voted for "Integrate it inside Fragment using the current structure we have" 👍 Our If a developer generates a new project, he/she will currently see This will lead to a bigger inconsistency between Being up-to-date with the newest tools sounds great, but I think we should only add it later once we have proper support for the script to generate a new project with XML or Compose. As @chornerman mentioned, I believe it's simply too soon (to do it as part of this ticket: #274) |
Beta Was this translation helpful? Give feedback.
-
Did you mean like |
Beta Was this translation helpful? Give feedback.
-
@Tuubz @chornerman 🙋♀️ I voted for |
Beta Was this translation helpful? Give feedback.
-
We currently have a plan to create a sample folder to demonstrate Jetpack Compose. The latest approach we use in Android Template is to integrate Jetpack Compose inside the Fragment and still use the traditional XML navigation library for moving from one screen to another, however, we can opt out entirely of the traditional Fragment structure and instead use the navigation library for Compose, which I believe should be the future of Android development 😎.
Since we have never officially used the new approach (no Fragment involved) on Android Template before, we might not have the complete structure for it yet. This RFC aims to vote on whether it sounds okay enough to implement this approach on the Compose sample folder now, or we should still use the current approach (using Fragment) at the moment.
Here're some pros and cons of using the no Fragment approach
Advantage?
Disadvantage?
5 votes ·
Beta Was this translation helpful? Give feedback.
All reactions