pagertitlestrip

How to customize PagerTitleStrip android

天大地大妈咪最大 提交于 2019-12-03 13:50:57
问题 I must customize a PagerTitleStrip in ViewPager in this way: I have to create circles with numbers corresponding to the inside pages, the circle in the middle has to be bigger. Anyone have any suggestions? 回答1: You can use Following code to create custom View Pager Indicator for your View Pager public class SimpleViewPagerIndicator extends LinearLayout implements OnPageChangeListener { private static final String TAG = SimpleViewPagerIndicator.class .getSimpleName(); private Context context;

How to mimic the listView stickey-items like on Lollipop's contacts app?

本秂侑毒 提交于 2019-11-28 07:33:09
Background Google has recently published a new version of Android, which has a contact app that look like this : The problem I need to mimic this kind of list, but I can't find out how to do it well. This consists of 3 main components: the stickey titles, which stay as long as the top contact has the name that starts with this letter. The circular photos or circle+letter (for contacts that don't have photos) the PagerTitleStrip, which has uniform spacing between the items, and tries to show them all on the screen (or allow to scroll if needed). What I've found There are plenty of third party

How to mimic the listView stickey-items like on Lollipop's contacts app?

五迷三道 提交于 2019-11-27 01:56:32
问题 Background Google has recently published a new version of Android, which has a contact app that look like this : The problem I need to mimic this kind of list, but I can't find out how to do it well. This consists of 3 main components: the stickey titles, which stay as long as the top contact has the name that starts with this letter. The circular photos or circle+letter (for contacts that don't have photos) the PagerTitleStrip, which has uniform spacing between the items, and tries to show