-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
258 additions
and
173 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
2 changes: 1 addition & 1 deletion
2
...app/quick/ability/scope/ViewGroupScope.kt → .../app/base/ability/scope/ViewGroupScope.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,4 +1,4 @@ | ||
package com.wpf.app.quick.ability.scope | ||
package com.wpf.app.base.ability.scope | ||
|
||
import android.view.ViewGroup | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../wpf/app/quick/ability/scope/ViewScope.kt → ...m/wpf/app/base/ability/scope/ViewScope.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,4 +1,4 @@ | ||
package com.wpf.app.quick.ability.scope | ||
package com.wpf.app.base.ability.scope | ||
|
||
import android.view.View | ||
|
||
|
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
27 changes: 27 additions & 0 deletions
27
...clerView/src/main/java/com/wpf/app/quickrecyclerview/ability/helper/HeaderFooterHelper.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,27 @@ | ||
package com.wpf.app.quickrecyclerview.ability.helper | ||
|
||
import android.view.View | ||
import com.wpf.app.quickrecyclerview.QuickRecyclerView | ||
import com.wpf.app.quickrecyclerview.widget.QuickFooterShadow | ||
import com.wpf.app.quickrecyclerview.widget.QuickHeaderShadow | ||
|
||
//interface QuickRecyclerViewHeaderScope: ViewScope | ||
|
||
fun QuickRecyclerView.header( | ||
isSuspension: Boolean = false, | ||
isMatch: Boolean = true, | ||
builder: QuickHeaderShadow.() -> View | ||
): QuickHeaderShadow { | ||
val headerView = QuickHeaderShadow(context, isSuspension = isSuspension, isMatch = isMatch) | ||
headerView.addView(builder.invoke(headerView)) | ||
return headerView | ||
} | ||
|
||
fun QuickRecyclerView.footer( | ||
isMatch: Boolean = true, | ||
builder: QuickFooterShadow.() -> View | ||
): QuickFooterShadow { | ||
val footerView = QuickFooterShadow(context, isMatch = isMatch) | ||
footerView.addView(builder.invoke(footerView)) | ||
return footerView | ||
} |
5 changes: 5 additions & 0 deletions
5
QuickRecyclerView/src/main/java/com/wpf/app/quickrecyclerview/data/QuickFooterData.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,5 @@ | ||
package com.wpf.app.quickrecyclerview.data | ||
|
||
open class QuickFooterData( | ||
val isMatch: Boolean = true, //是否占满 | ||
) : QuickViewData() |
6 changes: 6 additions & 0 deletions
6
QuickRecyclerView/src/main/java/com/wpf/app/quickrecyclerview/data/QuickHeaderData.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,6 @@ | ||
package com.wpf.app.quickrecyclerview.data | ||
|
||
open class QuickHeaderData( | ||
isSuspension: Boolean = false, //View是否悬浮置顶 | ||
val isMatch: Boolean = true, //是否占满 | ||
) : QuickViewData(isSuspension = isSuspension) |
16 changes: 16 additions & 0 deletions
16
QuickRecyclerView/src/main/java/com/wpf/app/quickrecyclerview/helper/ViewToDataHelper.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
Oops, something went wrong.