Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjingkanji committed Oct 7, 2023
1 parent 8eb8f2a commit c1b2ba3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions docs/header-footer.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,16 @@ binding.rv.bindingAdapter.run {
<br>


## 列表局部缺省页
## 下拉刷新位置

如果使用`CoordinatorLayout`方案来解决列表缺省页覆盖头/脚布局问题, 但是期望从页面顶部开始下拉刷新动画

- [PagePartStateFragment](https://github.com/liangjingkanji/BRV/blob/5269ef245e7f312a0077194611f1c2aded647a3c/sample/src/main/java/com/drake/brv/sample/ui/fragment/PagePartStateFragment.kt#L27)
<figure markdown>
![](https://raw.githubusercontent.com/liangjingkanji/BRV/master/docs/img/md/partial-state.gif){ width="250" }
<a href="https://github.com/liangjingkanji/BRV/blob/5269ef245e7f312a0077194611f1c2aded647a3c/sample/src/main/java/com/drake/brv/sample/ui/fragment/PagePartStateFragment.kt#L27" target="_blank"><figcaption>PagePartStateFragment</figcaption></a>
</figure>

```kotlin title="fragment_page_part_state_header.xml"
```kotlin title="fragment_page_partial_state.xml"
<com.drake.brv.PageRefreshLayout
android:id="@+id/page"
android:layout_width="match_parent"
Expand Down
Binary file added docs/img/md/partial-state.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import com.drake.brv.sample.R
import com.drake.brv.sample.databinding.FragmentPagePartStateHeaderBinding
import com.drake.brv.sample.databinding.FragmentPagePartialStateBinding
import com.drake.brv.sample.model.FullSpanModel
import com.drake.brv.sample.model.SimpleModel
import com.drake.brv.utils.linear
import com.drake.brv.utils.setup
import com.drake.engine.base.EngineFragment


class PagePartStateFragment : EngineFragment<FragmentPagePartStateHeaderBinding>(R.layout.fragment_page_part_state_header) {
class PagePartialStateFragment : EngineFragment<FragmentPagePartialStateBinding>(R.layout.fragment_page_partial_state) {

private val total = 6

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:layout_height="50dp"
android:gravity="center_vertical"
android:paddingLeft="16dp"
android:text="缺省页不会覆盖Header"
android:text="缺省页不会覆盖头布局"
android:textColor="@color/textSecond"
android:textSize="12dp" />

Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/navigation/nav_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
tools:layout="@layout/fragment_pull_refresh" />
<fragment
android:id="@+id/pagePartStateFragment"
android:name="com.drake.brv.sample.ui.fragment.PagePartStateFragment"
android:name="com.drake.brv.sample.ui.fragment.PagePartialStateFragment"
android:label="列表局部缺省页"
tools:layout="@layout/fragment_pull_refresh" />
<fragment
Expand Down

0 comments on commit c1b2ba3

Please sign in to comment.