-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎨 cleanup code;转换非必须的 java to kotlin code;减少非必须文件
- Loading branch information
Showing
18 changed files
with
43 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
app/src/main/java/me/yifeiyuan/flapdev/components/DataBindingComponent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package me.yifeiyuan.flapdev.components | ||
|
||
import me.yifeiyuan.flap.Component | ||
import me.yifeiyuan.flap.annotations.Delegate | ||
import me.yifeiyuan.flapdev.databinding.FlapItemSimpleDatabindingBinding | ||
|
||
/** | ||
* 测试 DataBinding 功能 | ||
* | ||
* | ||
* Created by 程序亦非猿 on 2022/8/9. | ||
*/ | ||
|
||
class SimpleDataBindingModel { | ||
var text = "该 Component 使用了 DataBinding" | ||
} | ||
|
||
@Delegate(layoutName = "flap_item_simple_databinding", useDataBinding = true) | ||
class DataBindingComponent(private var binding: FlapItemSimpleDatabindingBinding) : Component<SimpleDataBindingModel?>(binding.getRoot()) { | ||
|
||
override fun onBind(model: SimpleDataBindingModel?) { | ||
binding.model = model | ||
binding.executePendingBindings() | ||
} | ||
|
||
} |
32 changes: 0 additions & 32 deletions
32
...in/java/me/yifeiyuan/flapdev/components/databindingsample/SimpleDataBindingComponent.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...c/main/java/me/yifeiyuan/flapdev/components/databindingsample/SimpleDataBindingModel.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
ktmodule/src/main/java/me/yifeiyuan/flap/ktmodule/KtComponentModel.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
othermodule/src/main/java/me/yifeiyuan/ktx/foundation/othermodule/vb/ViewBindingModel.java
This file was deleted.
Oops, something went wrong.