Home Ask Login Register

Developers Planet

Your answer is one click away!

matzrm February 2016

Android Wear Horizontal ListView

I'm trying to realize this layout in android wear: Timer Custom App. I think this is like a listview with horizontal orientation, but WearableListView doesn't have this attribute.


Kapouter February 2016

Try using a GridViewPager and setting negative page margins :

pager = (GridViewPager) stub.findViewById(R.id.fragment_container);
pager.setPageMargins(0, -30);

You can then implement onClick listeners on the fragments to change the current page by just clicking at the right or left of the page like the native alarm app.

Post Status

Asked in February 2016
Viewed 3,928 times
Voted 14
Answered 1 times


Leave an answer

Quote of the day: live life