albrodiaz / travelling Goto Github PK
View Code? Open in Web Editor NEWAndroid app with Java to practice with all Android components, Room, Firebase, Retrofit, Google Maps
Android app with Java to practice with all Android components, Room, Firebase, Retrofit, Google Maps
Fijate que una pantalla tan sencilla ya has tenido que generar 1 contenedor padre y 2 contenedores hijos.
Con ConstraintLayout con solo el contenedor padre ya podrías tenerlo resuelto.
https://github.com/Choketido/Travelling/blob/4a59f5825d12f33bcab8edc1096f1541c759892b/app/src/main/java/es/travelworld/travelling/view/HomeActivity.java#L22-L24
Debes indicar el modificador private, protected o public en los fields de las clases.
Por cierto sino se pone ningún modificador que tipo de modificador es??
@Albrodiaz me parece bien, ya que usas la ActivityResult para los permisos. Puedes poner el callback como una variable en la declaración de variables (ponerla como private), y el método sobrará porque donde invocas al método solo necesitas lanzar la activityResult.
jeje.
Te pasare el recycler generico de kotlin.
Ahora bien, lucha un poquito en sacarlo que en el camino está el aprendizaje.
Buenas Fiestas
El contexto debe de ser el de la Activity => this o en su defecto LoginActivity.this, no utlizar el contexto de la aplicación.
Aquí como el scroll solo puede tener un hijo. Tienes aun más jerarquías de vistas. Los LinearLayouts, ademas de que sería mejor el LinearLayoutCompat, solo trae jerarquías de vistas.
Los linearLayouts van muy bien cuando hacemos vistas por código.
Intenta hacer las pantallas con ConstraintLayout.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.