# Kotlin Examples
- RecycleView using JetPack libraries
- Passing data between fragments
- MVVM example
- Popup window
-
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
1.使用JetPack库的RecycleView RecyclerView 是 Android 中功能强大的 UI 组件,是 Jetpack 库的一部分,用于通过在用户滚动时回收项目视图来有效地显示大量数据。它是对 ListView 和 GridView 的改进,通过重用项目视图并允许更复杂的布局行为来提供更好的性能。 2. 片段之间传递数据 在 Kotlin 中,应用程序可以使用 Bundle 将数据打包成键值对,然后使用 setArguments() 方法将其设置为接收片段的参数,从而在片段之间传递数据。 3.MVVM示例 MVVM 代表模型-视图-视图模型,它是一种用于软件开发的架构模式,包括基于 Kotlin 的 Android 应用程序。 4. 弹出窗口 简单的弹出菜单
资源推荐
资源详情
资源评论
收起资源包目录
Kotlin-Examples-master.zip (66个子文件)
gradle.properties 1KB
gradle
wrapper
gradle-wrapper.jar 53KB
gradle-wrapper.properties 233B
app
src
androidTest
java
mobile
kotlinexamples
ExampleInstrumentedTest.kt 634B
test
java
mobile
kotlinexamples
ExampleUnitTest.kt 346B
main
java
mobile
kotlinexamples
MainActivity.kt 2KB
adapter
SectionAdapter.kt 1KB
jetpack
Jetpackrecycleview.kt 2KB
mvvm
MainRecyclerAdapter.kt 1KB
MainViewModelFactory.kt 428B
Mvvm_Activity.kt 2KB
MainViewModel.kt 417B
Books.kt 99B
rest
ApiClient.kt 968B
ApiInterface.kt 323B
Popupwindow.kt 2KB
model
DataModel.kt 473B
fragments
PassDataFragmentsMainClass.kt 1KB
Communicator.kt 143B
FragmentReceived.kt 1KB
FragmentSend.kt 909B
res
mipmap-xxhdpi
ic_launcher_round.png 10KB
ic_launcher.png 6KB
mipmap-hdpi
ic_launcher_round.png 5KB
ic_launcher.png 3KB
drawable-v24
ic_launcher_foreground.xml 2KB
mipmap-anydpi-v26
ic_launcher.xml 270B
ic_launcher_round.xml 270B
menu
popup_example.xml 563B
mipmap-mdpi
ic_launcher_round.png 3KB
ic_launcher.png 2KB
mipmap-xxxhdpi
ic_launcher_round.png 15KB
ic_launcher.png 9KB
mipmap-xhdpi
ic_launcher_round.png 7KB
ic_launcher.png 4KB
values
colors.xml 208B
strings.xml 360B
styles.xml 383B
layout
activity_passdatafragmentsmain.xml 331B
jatpack.xml 450B
list_item.xml 842B
item_mvvm.xml 2KB
activity_main.xml 2KB
popuwindow.xml 623B
fragmentreceived_activity.xml 1KB
fragmentsend_activity.xml 2KB
activity_main_mvvm.xml 2KB
drawable
ic_launcher_background.xml 5KB
AndroidManifest.xml 2KB
proguard-rules.pro 751B
build.gradle 2KB
.gitignore 7B
gradlew.bat 2KB
build.gradle 836B
.idea
jarRepositories.xml 1KB
codeStyles
codeStyleConfig.xml 142B
Project.xml 381B
vcs.xml 180B
misc.xml 1KB
compiler.xml 169B
gradle.xml 727B
encodings.xml 191B
settings.gradle 15B
gradlew 5KB
.gitignore 203B
README.md 123B
共 66 条
- 1
资源评论
小云同志你好
- 粉丝: 1051
- 资源: 1015
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功