

GitHub - googlesamples/android-sunflower: A gardening app illustrating Android d...
source link: https://github.com/googlesamples/android-sunflower
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
Android Sunflower (alpha)
A gardening app illustrating Android development best practices with Android Jetpack.
Android Sunflower is currently released as an alpha and is under heavy development.
Introduction
Android Jetpack is a set of components, tools and guidance to make great Android apps. They bring together the existing Support Library and Architecture Components and arranges them into four categories:
Android Sunflower demonstrates utilizing these components to create a simple gardening app.
Getting Started
This project uses the Gradle build system. To build this project, use the
gradlew build
command or use "Import Project" in Android Studio.
There are two Gradle tasks for testing the project:
connectedAndroidTest
- for running Espresso on a connected devicetest
- for running unit tests
Screenshots
Libraries Used
- Foundation - Components for core system capabilities, Kotlin extensions and support for
multidex and automated testing.
- AppCompat - Degrade gracefully on older versions of Android.
- Android KTX - Write more concise, idiomatic Kotlin code.
- Test - An Android testing framework for unit and runtime UI tests.
- Architecture - A collection of libraries that help you design robust, testable, and
maintainable apps. Start with classes for managing your UI component lifecycle and handling data
persistence.
- Data Binding - Declaratively bind observable data to UI elements.
- Lifecycles - Create a UI that automatically responds to lifecycle events.
- LiveData - Build data objects that notify views when the underlying database changes.
- Navigation - Handle everything needed for in-app navigation.
- Room - Access your app's SQLite database with in-app objects and compile-time checks.
- ViewModel - Store UI-related data that isn't destroyed on app rotations.Easily schedule asynchronous tasks for optimal execution.
- WorkManager - Manage your Android background jobs.
- UI - Details on why and how to use UI Components in your apps - together or separate
- Third party
- Glide for image loading
Upcoming features
Updates will include incorporating additional Jetpack components and updating existing components as the component libraries evolve.
Interested in seeing a particular feature of the Android Framework or Jetpack implemented in this app? Please open a new issue.
Support
- Google+ Community: https://plus.google.com/communities/105153134372062985968
- Stack Overflow:
If you've found an error in this sample, please file an issue: https://github.com/googlesamples/android-sunflower/issues
Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.
License
Copyright 2018 Google, Inc.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Recommend
-
206
Android Architecture Components samples A collection of samples using the Architecture Components: Samples
-
89
android-text - Samples showing how to work with text on Android
-
50
README.md Android Sunflower Java(alpha)
-
38
README.md Android DarkTheme Sample Sample demonstrating the different ways to support Dark Mode on Android. Uses the Material Design Components Library...
-
47
README.md Android Camera2Basic Sample This sample demonstrates how to use basic functionalities of Camera2 API. You can learn how to iterate through ch...
-
74
README.md Google Play Location Samples Samples that use Location AP...
-
64
README.md Android Vision API Samples The Mobile Vision API is now a part of ML Kit....
-
23
README.md Android Sunflower (alpha)
-
14
README.md MLKit Samples A collection of quickstart samples demonstrating the ML Kit APIs on An...
-
17
Sunflower Farmer A blockchain based game where players can play to earn Sunflower Farmer Tokens. You can play the game here: https://www.sunflower-farmers.com/ How does...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK