-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 王朋飞 <walgr1010>
- Loading branch information
王朋飞
committed
Nov 9, 2022
1 parent
223bc07
commit 9471710
Showing
56 changed files
with
532 additions
and
240 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
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
14 changes: 0 additions & 14 deletions
14
QuickBind/src/main/java/com/wpf/app/quickbind/annotations/BindD2VHHelper.kt
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
QuickBind/src/main/java/com/wpf/app/quickbind/annotations/BindD2VHelper.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,19 @@ | ||
package com.wpf.app.quickbind.annotations | ||
|
||
import android.view.View | ||
import androidx.recyclerview.widget.RecyclerView | ||
import com.wpf.app.quick.annotations.BindD2VHHelper | ||
|
||
/** | ||
* Created by 王朋飞 on 2022/9/5. | ||
* | ||
*/ | ||
interface BindD2VHelper<V : View, Data : Any> : | ||
BindD2VHHelper<RecyclerView.ViewHolder, V, Data> { | ||
|
||
override fun initView(viewHolder: RecyclerView.ViewHolder?, view: V, data: Data) { | ||
initView(view, data) | ||
} | ||
|
||
fun initView(view: V, data: Data) | ||
} |
4 changes: 2 additions & 2 deletions
4
QuickBind/src/main/java/com/wpf/app/quickbind/helper/binddatahelper/BindData2ViewHelper.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
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
9 changes: 4 additions & 5 deletions
9
QuickBind/src/main/java/com/wpf/app/quickbind/helper/binddatahelper/Select2CheckBox.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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
package com.wpf.app.quickbind.helper.binddatahelper | ||
|
||
import android.widget.CheckBox | ||
import androidx.recyclerview.widget.RecyclerView | ||
import com.wpf.app.quickbind.annotations.BindD2VHHelper | ||
import com.wpf.app.quickbind.annotations.BindD2VHelper | ||
|
||
/** | ||
* Created by 王朋飞 on 2022/7/13. | ||
* | ||
*/ | ||
object Select2CheckBox : BindD2VHHelper<CheckBox, Boolean> { | ||
object Select2CheckBox : BindD2VHelper<CheckBox, Boolean> { | ||
|
||
override fun initView(viewHolder: RecyclerView.ViewHolder?, view: CheckBox, aBoolean: Boolean) { | ||
view.isChecked = aBoolean | ||
override fun initView(view: CheckBox, data: Boolean) { | ||
view.isChecked = data | ||
} | ||
} |
Oops, something went wrong.