-
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.
Merge pull request #98 from AlanCheen/feature/kt-v3
Feature/kt v3
- Loading branch information
Showing
44 changed files
with
170 additions
and
421 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
116 changes: 0 additions & 116 deletions
116
app/src/main/java/me/yifeiyuan/flapdev/DifferActivity.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
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() | ||
} | ||
|
||
} |
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
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
Oops, something went wrong.