enter the youtube app -> click on browse, there would be a category list, all the edges of which fades out at both ends, this looks very nice and silky, any one has an idea how to achieve that? Thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I thought this was the default. You can control this with fadingEdge in xml:
or in Java:
For bonus points you can increase the length of the fading edge using:
I don’t think there is a Java equivalent for that.
Edit – for the divider you can use a gradient shape drawable to get that effect. For example, in
res/drawable/divider.xml:and then set it with
android:divider="@drawable/divider"and possiblyandroid:dividerHeight="1dp"on yourListView.