package kim.hsl.databinding_demo;
public class JavaStudentUtils {
public static String nameText(String name) {
return "姓名 : " + name;
}
public static String ageText(int age) {
return "年龄 : " + age;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【Jetpack】DataBinding 架构组件 ② ( 字符串拼接函数 | 绑定点击事件函数 | DataBinding 布局中使用 import 标签导入 Java、Kotlin 类 ) https://hanshuliang.blog.csdn.net/article/details/129773150 一、字符串拼接函数 二、绑定点击事件函数 三、DataBinding 布局中使用 import 标签导入 Java、Kotlin 类 1、DataBinding 布局中使用 import 标签导入 Java 类 2、DataBinding 布局中使用 import 标签导入 Kotlin 类 四、完整代码示例 1、数据类 2、导入的 Java 类 3、导入的 Kotlin 类 4、DataBinding 布局文件 5、Activity 组件类
资源推荐
资源详情
资源评论
收起资源包目录
DataBinding_Demo.zip (62个子文件)
DataBinding_Demo
.gradle
buildOutputCleanup
cache.properties 57B
buildOutputCleanup.lock 17B
outputFiles.bin 158KB
7.4
fileChanges
last-build.bin 1B
checksums
md5-checksums.bin 20KB
sha1-checksums.bin 23KB
checksums.lock 17B
executionHistory
executionHistory.bin 1.26MB
executionHistory.lock 17B
dependencies-accessors
gc.properties 0B
dependencies-accessors.lock 17B
fileHashes
fileHashes.lock 17B
resourceHashesCache.bin 19KB
fileHashes.bin 76KB
gc.properties 0B
vcsMetadata
vcs-1
gc.properties 0B
file-system.probe 8B
gradle.properties 1KB
gradle
wrapper
gradle-wrapper.jar 58KB
gradle-wrapper.properties 242B
app
src
androidTest
java
kim
hsl
databinding_demo
ExampleInstrumentedTest.kt 675B
test
java
kim
hsl
databinding_demo
ExampleUnitTest.kt 348B
main
java
kim
hsl
databinding_demo
MainActivity.kt 733B
KotlinStudentUtils.kt 324B
JavaStudentUtils.java 253B
Student.kt 397B
res
mipmap-xxhdpi
ic_launcher_round.webp 6KB
ic_launcher.webp 3KB
mipmap-hdpi
ic_launcher_round.webp 3KB
ic_launcher.webp 1KB
drawable-v24
ic_launcher_foreground.xml 2KB
mipmap-anydpi-v26
ic_launcher.xml 272B
ic_launcher_round.xml 272B
values-night
themes.xml 818B
mipmap-mdpi
ic_launcher_round.webp 2KB
ic_launcher.webp 982B
mipmap-xxxhdpi
ic_launcher_round.webp 8KB
ic_launcher.webp 4KB
mipmap-xhdpi
ic_launcher_round.webp 4KB
ic_launcher.webp 2KB
xml
data_extraction_rules.xml 551B
backup_rules.xml 478B
values
colors.xml 378B
strings.xml 78B
themes.xml 818B
layout
activity_main.xml 2KB
drawable
ic_launcher_background.xml 5KB
AndroidManifest.xml 1KB
proguard-rules.pro 750B
libs
build.gradle 1KB
.gitignore 6B
gradlew.bat 3KB
build.gradle 296B
.idea
workspace.xml 7KB
misc.xml 439B
compiler.xml 174B
gradle.xml 687B
.gitignore 50B
settings.gradle 333B
local.properties 440B
build
kotlin
sessions
gradlew 6KB
.gitignore 225B
共 62 条
- 1
资源评论
韩曙亮
- 粉丝: 9w+
- 资源: 287
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功