-
Notifications
You must be signed in to change notification settings - Fork 4
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
Android 13880 Hide last divider in XML Lists #327
Conversation
|
||
val list: MisticaRecyclerView = view.findViewById(R.id.test_list) | ||
list.adapter = ClickableListAdapter() | ||
compareScreenshot(Espresso.onView(ViewMatchers.withId(R.id.test_recycler_view))) |
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.
Shouldn't also be the screenshot (the image) here in the PR?
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.
Done!
📱 New catalog for testing generated: Download |
<com.telefonica.mistica.list.MisticaRecyclerView | ||
android:id="@+id/test_list" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="8dp" | ||
android:nestedScrollingEnabled="false" | ||
app:listLayoutType="full_width" | ||
/> |
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.
Perhaps this could also be created programmatically and inserted in the dummy layout. But I'm not against this, if we need to test several MisticaRecyclerView elements perhaps it's simpler this way. And it's only a layout in the test directory, should be fine.
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 think this approach is simpler and, as you said, the layout is only added to the test directory :)
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.
Nice approach 👏 check if the new screenshot should also be in this pr.
I think it should: Compare Screenshots has failed as expected.
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.
👍
📱 New catalog for testing generated: Download |
🥅 What's the goal?
Hide last divider by default in xml lists.
In Compose elements and dividers are added manually so no changes needed
🚧 How do we do it?
Check is last element in DividerItemDecoration
☑️ Checks
🧪 How can I test this?