sunflower
sunflower copied to clipboard
A gardening app illustrating Android development best practices with migrating a View-based app to Jetpack Compose.
The image size should be in ratio. the recommended ratios are 16:9, 3:2, 4:3. the garden fragment items can be taller to support more text (e.g. 4:3 ?) while plant...
Doing transition animation to detail activity via the hero image Work to do: Use `ActivityOptionsCompat#makeSceneTransitionAnimation()`. for the animation by passing in activity and the imageview. Each list item in Plant...
This is currently in the works: https://issuetracker.google.com/issues/80267266
Use the [Notifications Jetpack component](https://developer.android.com/guide/topics/ui/notifiers/notifications) to notify when a plant / plants need watering. The notifications are shown daily, scheduled using WorkManager.
1. define an interface `OnPlantClickedListener(View view, Plant plant)`. the view can be used for transition animation later. 2. implement in `Fragment` with the Navigation logic 3. In the XML of...
Don't you think it's better to stick to one or the other? What benefits gives using them both in one project?
Why to use onClickListener on the binding if listener can be defined on xml level?
https://developer.android.com/reference/android/support/constraint/motion/MotionLayout https://medium.com/google-developers/introduction-to-motionlayout-part-i-29208674b10d (Continued from #94)
The repository classes (PlantRepository.kt, GardenPlantingRepository.kt) are singletons and so is the injector utility object (InjectorUtils.kt). Why are the repository classes singletons when the injector utility object is already one?
Can we create n no of edittext (provided by user) and inflate them in our layout using data binding? If so then how can we create observableFields for those dynamic...