RoomWordsSample
================
This repository contains the finished sample code for the
[Architecture Components codelab](https://codelabs.developers.google.com/codelabs/android-room-with-a-view/index.html?index=..%2F..%2Findex#0) in Java on the master branch and in Kotlin for the [Architecture Components Kotlin codelab](https://codelabs.developers.google.com/codelabs/android-room-with-a-view-kotlin) on the [kotlin](https://github.com/googlecodelabs/android-room-with-a-view/tree/kotlin) branch.
Introduction
------------
In May 2017 Google released the Architecture Components libraries.
Each library manages and simplifies aspects of data persistence and the
UI component lifecycle. Together, the libraries encourage a modular
app architecture that results in reduced complexity and less code.
This sample shows how to use the libraries to build
a complete basic app that implements the recommended architecture
and can be used as a template for further explorations.
Pre-requisites
--------------
* Android Studio 3.0 or later and you know how to use it.
* Make sure Android Studio is updated, as well as your SDK and Gradle.
Otherwise, you may have to wait for a while until all the updates are done.
* A device or emulator that runs SDK level 20
You need to be solidly familiar with the Java programming language,
object-oriented design concepts, and Android Development Fundamentals.
In particular:
* RecyclerView and Adapters
* SQLite database and the SQLite query language
* Threading and ExecutorService
* It helps to be familiar with software architectural patterns that separate
data from the user interface, such as MVP or MVC. This codelab implements the
architecture defined in the
[Guide to App Architecture](
https://developer.android.com/topic/libraries/architecture/guide.html)
Getting Started
---------------
1. [Install Android Studio](https://developer.android.com/studio/install.html),
if you don't already have it.
2. Download the sample.
2. Import the sample into Android Studio.
3. Build and run the sample.
License
-------
Copyright 2019 Google, Inc.
All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav
and *.ogg) are licensed under the CC BY 4.0 license. All other files are
licensed under the Apache 2 license.
Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the LICENSE 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.
没有合适的资源?快使用搜索试试~ 我知道了~
android-room-master.zip安卓room的demo
共159个文件
xml:95个
png:15个
java:14个
需积分: 10 3 下载量 131 浏览量
2021-06-04
11:43:34
上传
评论
收藏 1.1MB ZIP 举报
温馨提示
安卓room的demo。创建,增删改查
资源详情
资源评论
资源推荐
收起资源包目录
android-room-master.zip安卓room的demo (159个子文件)
gradlew.bat 2KB
executionHistory.bin 2.86MB
classAnalysis.bin 2.12MB
fileHashes.bin 267KB
outputFiles.bin 160KB
taskHistory.bin 38KB
resourceHashesCache.bin 18KB
last-build.bin 1B
.gitignore 86B
.gitignore 50B
.gitignore 7B
build.gradle 2KB
build.gradle 1KB
settings.gradle 15B
gradlew 5KB
android-room-with-a-view-master.app.iml 12KB
android-room-with-a-view-master.iml 1KB
gradle-wrapper.jar 52KB
MainActivity.java 6KB
WordDaoTest.java 3KB
WordRoomDatabase.java 3KB
WordRepository.java 2KB
NewWordActivity.java 2KB
WordDao.java 2KB
WordViewModel.java 2KB
WordListAdapter.java 2KB
LiveDataTestUtil.java 2KB
Word.java 2KB
WordViewHolder.java 1KB
UserDao.java 832B
User.java 765B
UserDatabase.java 401B
LICENSE 11KB
executionHistory.lock 17B
fileHashes.lock 17B
javaCompile.lock 17B
buildOutputCleanup.lock 17B
fileContent.lock 17B
README.md 3KB
CONTRIBUTING.md 2KB
ic_launcher_foreground.png 21KB
ic_launcher_round.png 16KB
ic_launcher_foreground.png 14KB
ic_launcher_round.png 11KB
ic_launcher.png 9KB
ic_launcher_round.png 7KB
ic_launcher_foreground.png 7KB
ic_launcher.png 7KB
ic_launcher_foreground.png 5KB
ic_launcher_round.png 5KB
ic_launcher.png 5KB
ic_launcher.png 3KB
ic_launcher_round.png 3KB
ic_launcher_foreground.png 3KB
ic_launcher.png 2KB
proguard-rules.pro 751B
gradle.properties 783B
local.properties 444B
gradle-wrapper.properties 232B
cache.properties 53B
gc.properties 0B
gc.properties 0B
build_file_checksums.ser 537B
workspace.xml 8KB
activity_main.xml 4KB
ic_launcher_background.xml 4KB
jarRepositories.xml 2KB
activity_new_word.xml 2KB
content_main.xml 1KB
styles.xml 1KB
AndroidManifest.xml 1KB
Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml 1KB
Gradle__androidx_test_monitor_1_3_0_aar.xml 1KB
Gradle__androidx_room_room_runtime_2_2_5_aar.xml 1KB
recyclerview_item.xml 1KB
Gradle__androidx_print_print_1_0_0_aar.xml 1KB
Gradle__androidx_coordinatorlayout_coordinatorlayout_1_1_0_aar.xml 972B
Gradle__androidx_recyclerview_recyclerview_1_1_0_aar.xml 947B
Gradle__com_google_android_material_material_1_2_1_aar.xml 947B
Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml 939B
Gradle__androidx_viewpager2_viewpager2_1_0_0_aar.xml 937B
Gradle__androidx_transition_transition_1_2_0_aar.xml 937B
Gradle__androidx_test_espresso_espresso_idling_resource_3_1_0_aar.xml 933B
Gradle__androidx_appcompat_appcompat_1_2_0_aar.xml 932B
Gradle__androidx_vectordrawable_vectordrawable_animated_1_1_0_aar.xml 932B
Gradle__androidx_versionedparcelable_versionedparcelable_1_1_0_aar.xml 930B
Gradle__androidx_fragment_fragment_1_2_0_aar.xml 927B
Gradle__androidx_annotation_annotation_experimental_1_0_0_aar.xml 924B
Gradle__androidx_lifecycle_lifecycle_livedata_core_2_2_0_aar.xml 922B
Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml 922B
strings.xml 910B
Gradle__androidx_lifecycle_lifecycle_viewmodel_2_2_0_aar.xml 910B
Gradle__androidx_core_core_1_3_1_aar.xml 907B
Gradle__androidx_lifecycle_lifecycle_livedata_2_2_0_aar.xml 907B
Gradle__androidx_vectordrawable_vectordrawable_1_1_0_aar.xml 905B
Gradle__androidx_test_espresso_espresso_core_3_1_0_aar.xml 900B
Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml 900B
Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml 895B
Gradle__androidx_sqlite_sqlite_framework_2_0_1_aar.xml 895B
Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml 895B
共 159 条
- 1
- 2
meixi_android
- 粉丝: 290
- 资源: 105
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0