<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AndroidLayouts">
<shared>
<config />
</shared>
</component>
<component name="AutoImportSettings">
<option name="autoReloadType" value="NONE" />
</component>
<component name="ChangeListManager">
<list default="true" id="62c07c54-c4b2-48fe-b319-0ed3a406c646" name="Changes" comment="update" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="device_and_snapshot_combo_box_target[HT7BV1A02915]" />
<component name="ExternalProjectsData">
<projectState path="$PROJECT_DIR$">
<ProjectState />
</projectState>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Kotlin Class" />
</list>
</option>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectId" id="2OzPVaS7j2Y8S5SN4sP11xdSs9h" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="ASKED_SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="RunOnceActivity.cidr.known.project.marker" value="true" />
<property name="cidr.known.project.marker" value="true" />
<property name="dart.analysis.tool.window.visible" value="false" />
<property name="settings.editor.selected.configurable" value="reference.settingsdialog.project.gradle" />
<property name="show.migrate.to.gradle.popup" value="false" />
</component>
<component name="RunManager">
<configuration name="app" type="AndroidRunConfigurationType" factoryName="Android App" activateToolWindowBeforeRun="false">
<module name="ViewModel_LiveData_DataBinding.app.main" />
<option name="DEPLOY" value="true" />
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
<option name="DEPLOY_AS_INSTANT" value="false" />
<option name="ARTIFACT_NAME" value="" />
<option name="PM_INSTALL_OPTIONS" value="" />
<option name="ALL_USERS" value="false" />
<option name="ALWAYS_INSTALL_WITH_PM" value="false" />
<option name="CLEAR_APP_STORAGE" value="false" />
<option name="DYNAMIC_FEATURES_DISABLED_LIST" value="" />
<option name="ACTIVITY_EXTRA_FLAGS" value="" />
<option name="MODE" value="default_activity" />
<option name="CLEAR_LOGCAT" value="false" />
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
<option name="INSPECTION_WITHOUT_ACTIVITY_RESTART" value="false" />
<option name="TARGET_SELECTION_MODE" value="DEVICE_AND_SNAPSHOT_COMBO_BOX" />
<option name="SELECTED_CLOUD_MATRIX_CONFIGURATION_ID" value="-1" />
<option name="SELECTED_CLOUD_MATRIX_PROJECT_ID" value="" />
<option name="DEBUGGER_TYPE" value="Auto" />
<Auto>
<option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
<option name="SHOW_STATIC_VARS" value="true" />
<option name="WORKING_DIR" value="" />
<option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
<option name="SHOW_OPTIMIZED_WARNING" value="true" />
</Auto>
<Hybrid>
<option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
<option name="SHOW_STATIC_VARS" value="true" />
<option name="WORKING_DIR" value="" />
<option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
<option name="SHOW_OPTIMIZED_WARNING" value="true" />
</Hybrid>
<Java />
<Native>
<option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
<option name="SHOW_STATIC_VARS" value="true" />
<option name="WORKING_DIR" value="" />
<option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
<option name="SHOW_OPTIMIZED_WARNING" value="true" />
</Native>
<Profilers>
<option name="ADVANCED_PROFILING_ENABLED" value="false" />
<option name="STARTUP_PROFILING_ENABLED" value="false" />
<option name="STARTUP_CPU_PROFILING_ENABLED" value="false" />
<option name="STARTUP_CPU_PROFILING_CONFIGURATION_NAME" value="Java/Kotlin Method Sample (legacy)" />
<option name="STARTUP_NATIVE_MEMORY_PROFILING_ENABLED" value="false" />
<option name="NATIVE_MEMORY_SAMPLE_RATE_BYTES" value="2048" />
<option name="PROFILING_MODE" value="NOT_SET" />
</Profilers>
<option name="DEEP_LINK" value="" />
<option name="ACTIVITY_CLASS" value="" />
<option name="SEARCH_ACTIVITY_IN_GLOBAL_SCOPE" value="false" />
<option name="SKIP_ACTIVITY_VALIDATION" value="false" />
<method v="2">
<option name="Android.Gradle.BeforeRunTask" enabled="true" />
</method>
</configuration>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="62c07c54-c4b2-48fe-b319-0ed3a406c646" name="Changes" comment="" />
<created>1682560462189</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1682560462189</updated>
</task>
<task id="LOCAL-00001" summary="update">
<created>1682580075406</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1682580075406</updated>
</task>
<option name="localTasksCounter" value="2" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
</component>
<component name="VcsManagerConfiguration">
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="CHECK_NEW_TODO" value="false" />
<MESSAGE value="update" />
<option name="LAST_COMMIT_MESSAGE" value="update" />
</component>
</project>
没有合适的资源?快使用搜索试试~ 我知道了~
ViewModel + LiveData + DataBinding 综合使用示例
共170个文件
xml:17个
sample:13个
webp:10个
需积分: 0 25 下载量 51 浏览量
更新于2023-04-27
收藏 568KB ZIP 举报
【Jetpack】ViewModel + LiveData + DataBinding 综合使用 ( 核心要点说明 | 组合方式 | 代码示例 )
博客地址 : https://hanshuliang.blog.csdn.net/article/details/130401679
一、ViewModel + LiveData + DataBinding 核心要点
1、ViewModel 使用要点
2、LiveData 使用要点
3、DataBinding 使用要点
二、ViewModel + LiveData + DataBinding 代码示例
1、ViewModel + LiveData 代码
2、build.gradle 构建脚本 - 启用 DataBinding
3、DataBinding 布局文件 - 配置 ViewModel 类
4、Activity 系统组件代码 - 加载 DataBinding 布局 / 布局配置 ViewModel 对象 / 设置 LiveData 观察者
5、执行结果
收起资源包目录
ViewModel + LiveData + DataBinding 综合使用示例 (170个子文件)
016d2603ebaaacbd814aa3a6fd07bb6a8b1a21 45B
022c214b8c47a5d5f9774197529f763d5716a0 93B
068d11462a4b96669193de13a711a3a36220a0 677B
07d86a1c0e3b476bfdea70011029ae94a358f5 343B
08b1c023ec8b20f512888fe07c5bd3ff77bb8f 52KB
09e78ecd372343283f4157dcfd918ec5165bb3 1KB
0f1d64e58ba64d180ce43ee13bf9a17835fbca 1002B
0f996d2c2a6bdd11f5371de4268c8389d6c720 291B
175fce0ae8810626fdfd180549db3bafa76e3f 45B
17e928894cecf247fd980964e5e9f7fad16e4e 92B
1bb434814107eb79d7a30b676d344b0df2f8ce 438B
1cd38bd8bc44b991d56fcf6944672b648f4c57 117B
1fbef58d2d330cdd629d90ecc16998a41d9afe 123B
26ae37cbc3587421d6889eadd1d91fbf1994d4 8KB
26f42e909c055902cbf069839b176ada049558 101B
28678e4edbb0c06ed7a583644676bb18c3a70c 47B
3247be92ef46369aa79e225b6fccee937da5df 70B
33b6b2e70a2d6993c415f583601bc6745f63fb 92B
34d404f50226dbf4f46bcea6178dfcc4a91e5b 46B
3614556f31d957d8bfd167bf8167a4d43a5025 157B
369742325e1ecdb662a2a280e3db939fddce16 189B
3d412af8fe28b8d6aa65d5bfed723c7a46422f 46B
3f5cdcf9a06796fb0a5b0094724d2e4b912ee3 162B
461a25b3d475a788c6876ab711381bf8e51b9d 273B
4c1c57da5e8effa4ee878ff0f0031c1b4db4bc 62B
4eb53302f9f07efc42762667a56e1c7a4521b4 359B
5031eb7d63f785752b1914cc8692a453d1cc63 739B
5502e6ebc8a4abdc0ee42e0846ee7e606f9016 71B
557c2809601e3437031581cae2320483045402 577B
5b8f6597eb274d14bdbef460ef34d86753ca38 194B
615786dd22a6c2df1ebd0b3a53fcd204d49d6c 92B
6969e90e6befbf363507facf216f5c79f6bbb9 211B
6f4e5b7e170b8fe93e5049112dafe0dd263014 46B
724b77071afcbd9bb398053e05adaf7ac9405a 157B
7acd32c4e687021ef32db511e8a206129b88ec 1KB
7d6427e6fa1074b79ccd52ef67ac15c5637e85 4KB
7f94258ffdd395dbeaa14f2adce5b8b4de4e69 161B
7ff6b633874e61d8e7dba01a35ed07d0f4df51 46B
80b8c56110dbccc54ae8d1494517594eb6a9aa 46B
83d6c5db4e1473ff2d1a7b923c5046d4667468 45B
83d791c808f6a6cc9de06d328aa3ca901ac14d 547B
867beb8ab97a51566d5f6e3b1cfb47d4b4cb68 49B
87f5083623b375139afb391af71cc533a7dd37 6KB
8a3070fe34c611c42c0d3ad3013a0dce358be0 2KB
8d5c6553e4b6f549876a01ede24854c5781983 96B
8eac084fa8a08990cdbfefceb919d20cd63466 45B
906e0c811fc9e230eb44819f509cd0627f2600 2KB
9335d903d279771da5877e96508500e1f13077 95B
966f939fc382afecde5e5acb96523b55d8b730 63B
9a6956b3acdc11f40ce2bb3f6efbd845cc243f 4KB
9bdd6bdb31e674f118450d856dc00748c87982 89B
9e312fffd6682ad928f5e8cf9eacb115e0a86d 122B
a5c352420d748e55a96b8f576bc0f0688a8469 70B
a70cfe52eac1ba66ba280a68ca7be8fcf88a16 168B
a98fb95376294f73110e33cf09934e7e06b92e 60B
ab44e46ef11aedf912ee74417e6e512c5b31fd 45B
ac109308ef2b591e49396ab4f5f5342ea5e717 133B
ac7ec0f33a004417615abd25bfb01829d10ead 518B
acc4bd36f1e9d3dd266cf381cc68ba2d4029c4 348B
afabfd2abebf31384ca7797186a27a4b7dbee8 21B
b411822538feb9b7580eaba1950bd5821ee1ea 367B
b611da081676d42f6c3f78a2c91e7bcedddedb 2KB
bacf3b24575268321f22d94b1ee7d4e575ee3a 109B
gradlew.bat 3KB
bdc724b3c18330dd6a50123017799d4b17c840 162B
executionHistory.bin 1.39MB
fileHashes.bin 79KB
outputFiles.bin 25KB
resourceHashesCache.bin 19KB
sha1-checksums.bin 18KB
md5-checksums.bin 18KB
last-build.bin 1B
c6127d327620c93d2b2d00342a68e97b98a48d 175B
c6c4738a042f8dde41e22f4978e2f954523f3f 45B
COMMIT_EDITMSG 7B
config 327B
d127975c06e43080507bb4f0694a35f251345b 600B
d4b77f9f036a47549d47db79c16788749dca10 3KB
d5da9cbf141911847041df5d7b87f0dd5ef9d4 460B
d9108e0cb9c78353ae46f7357f566262c07d31 109B
ddcc2ba467266152a6310dff7ba24e3c912561 273B
de34961096076e3ad578310142d8e33859d1bb 92B
description 73B
dfe3d1ba5cf3ee31b3ecc1ced89044a1f3b7a9 3KB
e9997b0b4726e57c27b2f7b21462b604ff8a88 306B
ea318aebeb25ded5beaaaba5be79462089d48e 45B
eab17ba76407d3dfcf42a0ec5819c199b0df8d 309B
ec1cd6f1110b126f97cd51e97afb1b0512d469 61B
ec266f0a03b2ca0ad156db6f995aec3d39712f 71B
exclude 240B
f13be739ad2dac859d4409c81781e8a5a0ef79 215B
f2b2f690f8c038c35b219a3028065faa95c6d3 45B
f60b10ffe638cae4004948c094c2b8b845c782 55B
f79fe86c21a1155f51c8ac5829c3ac256040b5 366B
fc6445aad6003119955db405e5a58602197918 58B
fd9bd79c808cde263b33a065d0ab892843d72e 244B
fe753c79ec5c158428bb92e131bda033794982 473B
.gitignore 225B
.gitignore 50B
.gitignore 6B
共 170 条
- 1
- 2
资源推荐
资源预览
资源评论
2021-03-02 上传
2021-05-02 上传
110 浏览量
2020-08-02 上传
151 浏览量
183 浏览量
163 浏览量
2021-02-03 上传
2021-02-28 上传
2021-03-20 上传
2021-05-13 上传
119 浏览量
2021-02-03 上传
2021-01-29 上传
108 浏览量
2021-02-04 上传
5星 · 资源好评率100%
165 浏览量
5星 · 资源好评率100%
194 浏览量
5星 · 资源好评率100%
143 浏览量
2023-08-07 上传
资源评论
韩曙亮
- 粉丝: 10w+
- 资源: 305
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于python和协同过滤算法的电影推荐系统
- 国际象棋棋子检测3-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord数据集合集.rar
- Python毕业设计基于知识图谱的电影推荐系统源码(完整项目代码)
- 基于C++的简易图书管理系统(含exe可执行文件)
- 使用python爬取数据并采用Django搭建系统的前后台,使用Spark进行数据处理并进行电影推荐项目源码
- 商城蛋糕数据库sql源码
- 基于Spark的电影推荐系统源码(毕设)
- NET综合解决工具,windows平台必备
- ZZU 面向对象Java实验报告
- 2024年秋学季-C#课程的信息系统大作业winform
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功