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
Custom Adapter #4
Comments
Hi !!! try to override onSegmentSelected(boolean isSelected, boolean isReselected) method inside your AppSegmentedViewHolder. |
Also take a look at this utility helper class, for background and radius handling |
As an example of implementation look at SegmentAdapterImpl.java and SegmentViewHolderImpl.java classes |
great, will check it and give you the result after that |
I'm receiving the below exception when I use
below are my
I have a class called |
and my implementation of
|
My Bad, i found the problem, I was assigning an array in the XML, which cause the exception, when i removed it it works |
again, thank you for your work so far.
I have a question regarding implementing Custom adapter, I assume that the Type of adapter can be anything, so in case i made the type as a custom model, which have icon and text, and need to implement the adapter to have icon and text, in the
onSegmentBind
how can I know if this is the selected or not?is it even possible to implement it like that, below is my implementation for the custom
ViewHolder
The text was updated successfully, but these errors were encountered: