没有合适的资源?快使用搜索试试~ 我知道了~
DroidDi:该项目演示了如何在android中使用各种依赖注入方法
共75个文件
xml:32个
kt:15个
png:11个
需积分: 10 0 下载量 161 浏览量
2021-04-04
14:41:15
上传
评论
收藏 256KB ZIP 举报
温馨提示
DroidDi 该项目演示了如何在android中使用各种依赖注入方法 什么是依赖注入 考虑任意两个类Class-A , Class-B ,现在要创建Class-A的对象,我们需要实例化Class-B 。 在此, Class-A依赖于Class-B 。 它们之间的关系称为dependency 现在我们可以拥有更多示例,例如Image loader using okhttp ,这里Image Loader是依赖项, okhttp是依赖项 考虑有两个类StudentClass和AddressClass ,并且StudentClass有一个address字段,现在这表明StudentClass对AddressClass有依赖关系 另一个表示形式是RecyclerView类需要Adapter来RecyclerView构建行。 因此RecyclerView依赖于Adapter 为什么需要依赖注入
资源推荐
资源详情
资源评论
收起资源包目录
DroidDi-main.zip (75个子文件)
DroidDi-main
.gitignore 1KB
app
.gitignore 6B
build.gradle 2KB
src
androidTest
java
com
demo
code
ExampleInstrumentedTest.kt 653B
main
AndroidManifest.xml 824B
res
mipmap-xhdpi
ic_launcher_round.png 7KB
ic_launcher.png 5KB
mipmap-mdpi
ic_launcher_round.png 3KB
ic_launcher.png 3KB
layout
fragment_dagger_selection.xml 841B
nav_header_main.xml 679B
automobile_fragment.xml 466B
app_bar_main.xml 1KB
content_main.xml 957B
activity_main.xml 984B
fragment_hilt_selection.xml 989B
fragment_koin_selection.xml 984B
mipmap-xxhdpi
ic_launcher_round.png 12KB
ic_launcher.png 8KB
menu
activity_main_drawer.xml 706B
main.xml 342B
drawable
ic_koin.xml 579B
side_nav_bar.xml 290B
ic_hilt.xml 617B
ic_launcher_background.xml 5KB
di_module.jpeg 39KB
ic_dagger.xml 502B
mipmap-anydpi-v26
ic_launcher_round.xml 272B
ic_launcher.xml 272B
drawable-v24
ic_launcher_foreground.xml 2KB
mipmap-hdpi
ic_launcher_round.png 5KB
ic_launcher.png 4KB
mipmap-xxxhdpi
ic_launcher_round.png 16KB
ic_launcher.png 10KB
navigation
mobile_navigation.xml 1KB
drawable-v21
ic_menu_camera.xml 583B
ic_menu_gallery.xml 437B
ic_menu_slideshow.xml 427B
values-night
themes.xml 826B
values
strings.xml 666B
colors.xml 378B
dimens.xml 403B
drawables.xml 613B
themes.xml 1KB
java
com
demo
code
MainActivity.kt 2KB
ui
dagger
placeholder 0B
selection
DaggerSelectionViewModel.kt 351B
DaggerSelectionFragment.kt 1KB
automobile
view
AutomobileFragment.kt 1KB
vm
AutomobileViewModel.kt 128B
di
components
CarComponent.kt 824B
vehicleParts
Engine.kt 258B
Wheels.kt 258B
Car.kt 525B
koin
KoinSelectionFragment.kt 979B
KoinSelectionViewModel.kt 335B
hilt
HiltSelectionFragment.kt 1011B
HiltSelectionViewModel.kt 335B
test
java
com
demo
code
ExampleUnitTest.kt 337B
proguard-rules.pro 750B
images
Logo-new.png 16KB
dagger.jpeg 58KB
settings.gradle 40B
build.gradle 642B
gradlew 5KB
README.md 5KB
gradlew.bat 2KB
gradle.properties 1KB
.idea
.gitignore 47B
misc.xml 372B
compiler.xml 170B
.name 4B
jarRepositories.xml 1KB
gradle
wrapper
gradle-wrapper.properties 230B
gradle-wrapper.jar 53KB
共 75 条
- 1
资源评论
Her101
- 粉丝: 21
- 资源: 4667
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功