-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App layout Home screen empty states #7007
Conversation
There is a pb with the description, this PR does not close #6999 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StateView
usage (as an item of a RecyclerView) is a bit weird. Is it possible to do otherwise?
Else only minor remarks.
Thanks!
vector/src/main/java/im/vector/app/features/home/room/list/home/HomeRoomListViewModel.kt
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/room/list/home/HomeRoomListViewModel.kt
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/room/list/home/RoomListEmptyItem.kt
Outdated
Show resolved
Hide resolved
|
||
override fun bind(holder: Holder) { | ||
super.bind(holder) | ||
holder.stateView.state = emptyData ?: StateView.State.Content |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess in this case emptyData
will never be null, so it could be a lateinit var
Agree, but problem here is that both recent carousel and filter tabs are part of the same recycler as rooms list, so we can't put whole list inside |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update and explanation!
android:id="@+id/stateView" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?android:colorBackground"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Possible overdraw: Root element paints background?android:colorBackground
with a theme that also paints a background (inferred theme is@android:style/Theme.Holo
)⚠️ Possible overdraw: Root element paints background?android:colorBackground
with a theme that also paints a background (inferred theme is@android:style/Theme.Holo
)
vector/src/main/java/im/vector/app/features/home/room/list/home/HomeRoomListViewModel.kt
Show resolved
Hide resolved
SonarCloud Quality Gate failed. |
Type of change
Content
new app layout home screen needs empty states
Motivation and context
closes #6835
Screenshots / GIFs