Merge branch 'feature-article-detail-comment-no-data' into 'dev'

feat: 文章详情评论列表缺省图修改

See merge request halo/android/assistant-android!1371
This commit is contained in:
曾祥俊
2023-10-08 09:16:48 +08:00
2 changed files with 47 additions and 0 deletions

View File

@ -34,6 +34,10 @@ class ArticleDetailCommentListFragment : ListFragment<CommentItemData, ArticleDe
}
}
override fun getLayoutId(): Int {
return R.layout.fragment_list_article_detail_comment
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
mListRefresh?.isEnabled = false

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background">
<FrameLayout
android:id="@+id/skeleton"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/list_refresh"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/list_rv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<include
android:id="@+id/reuse_ll_loading"
layout="@layout/reuse_loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true" />
<include
android:id="@+id/reuse_no_connection"
layout="@layout/item_article_detail_comment_empty" />
<include
android:id="@+id/reuse_none_data"
layout="@layout/item_article_detail_comment_empty" />
<include
android:id="@+id/reuse_data_exception"
layout="@layout/item_article_detail_comment_empty" />
</RelativeLayout>