Comments (8)
I see. I should start learning about it soon, then.
from compose-samples.
It looks like you've imported the root folder—try importing from the Jetnews
folder.
from compose-samples.
Indeed. Usually projects have the root as the one to import.
Now I tried and it works, but something is weird:
Pressing the back key doesn't go back. It just closes, and even if I press the "up" button, it reloads the main screen. In fact it happens even on orientation change.
See:
I've also noticed that there is a navigation drawer, yet it was hard to notice because there is no "hamburger" icon. The navigation drawer forgets its state upon orientation change, and when choosing "interest" it has tabs but no viewPager to swipe between them.
I guess it's more about Compose than how to handle apps nicely, but still... Seems you've put a lot of effort on other various things, and the purpose of Compose is mainly about UI.
from compose-samples.
This repo is intended to be a collection of samples; there's only one, Jetnews, right now but we plan to expand it.
Thanks for highlighting those issues. We are aware and working on providing advice on navigation (integrating with the system back button), configuration changes etc. Compose is still pre-alpha so not all parts are there yet.
Re the hamburger menu, this is the design, will feedback to our designer.
from compose-samples.
I see. I was actually quite overwhelmed by the amount of things there that I'm not familiar with.
So much that I thought it's available for a long time that people use it.
Are there any apps that use it already?
What is your suggestion about an already existing app? Especially one that doesn't even use navigation component yet (too huge and too little time for that).
from compose-samples.
Yes, a new UI Toolkit is a large undertaking. We'll be updating our documentation, samples, codelabs etc to help you learn but need to balance this against product stability.
I can't comment on current adoption or future plans but it is a goal for Compose to work well with other Jetpack libraries so adopting those would be a good step.
from compose-samples.
Would it replace the current development on Android? Eventually, nobody will use XML anymore for layouts (and maybe drawable?) ?
Is it already possible to implement everything using Compose?
Would it mean there won't be any more android-x support libraries, etc?
I actually kinda liked using XML. Got used to it quite quickly...
And I liked the division between it and normal code.
from compose-samples.
Would it replace the current development on Android? Eventually, nobody will use XML anymore for layouts (and maybe drawable?) ?
Is it already possible to implement everything using Compose?
Would it mean there won't be any more android-x support libraries, etc?I actually kinda liked using XML. Got used to it quite quickly...
And I liked the division between it and normal code.
I'm not a maintainer for Jetpack Compose, but having been an Android Engineer for quite some time, everything you mentioned about XML layouts is actually seen as a downside.
It's a bit out of the scope of my comment, but do a little research on declarative UI like Compose, React JS, and Swift UI. You'll find that there's a load of great reasons for Android to move in this direction.
As for answering your questions. I do believe we will continue to see people use XML and the old View based UI for some time. If only because legacy codebases will call for it, and Compose is compatible with the old way.
Arguably though, Compose is targeted at removing the need to do XML or View class based UI. So in the not so distant future, new apps would prefer starting with Compose, and never touch the old UI framework.
from compose-samples.
Related Issues (20)
- [FR]: Yellow Background Element for Below Android 13 HOT 5
- [Bug]: PlayerScreen doesn't render Previews in Iguana beta 2 HOT 1
- [FR]: Jetchat is not laid out edge-to-edge in 2 & 3-button navigation mode HOT 2
- [FR]: Reply is laid out edge-to-edge in 2 & 3-button navigation mode HOT 1
- [FR]: Jetsnack is laid out edge-to-edge in 2 & 3-button navigation mode HOT 1
- [FR]: Owl is laid out edge-to-edge in 2 & 3-button navigation mode HOT 1
- [Bug]:
- The Most Famous Of Your Own Life
- Noel Mikael O'Neal /buisness planning iron shield 🛡.
- [Bug]: JNews swipe to cancel recording is not working, pointerToDetectGesture is not working as expected. HOT 6
- [FR]: Jetchat - KeyboardActions Trigger for Sending Messages Not Working as Expected HOT 1
- [FR]: Content obscured by the SystemNavigationBar
- [Bug]: [JetLagged] canReachTargetWithDecay Condition will always be false in JetLaggedDrawer.kt HOT 1
- [Bug]: JetSurvey selfie screen crash after taking photos
- [FR Jetcaster]: Rethink empty, loading, success, and error states in HOT 3
- [FR]: JetNews - Add previews for the glance widget
- Images in Jetsnack example are no longer available HOT 6
- [Bug]: Can't open JetLagged in IntelliJ IDEA 2024.2 EAP (Ultimate Edition) HOT 1
- [FR]: Glance Widget for JetChat App
- [Bug]: ModelBottomSheet Overlap with NavigationBars Android Compose
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compose-samples.