ActionBar Calendar Counter

The Android Design Guide has an image of the “ActionBar Calendar Counter”:

enter image description here

Is there a code implementation for this widget (if one exists)? Is this a native SDK widget or just a design pattern?

+4
source share
2 answers

I assume that the native calendar application is not open source, so I doubt that you will find the source somewhere on the Internet.

But you can probably solve this by creating a custom adapter and inflating different layouts for getView() (current / selected item) and getDropDownView() (spinner strings).

Edit: I just saw that the calendar application has become open. Here is git-Link: https://android.googlesource.com/platform/packages/apps/Calendar.git

I would also be curious if the extended ActionBar navigation bar would be a template or custom widgets. Would you publish your results after checking the source?

+1
source

Pretty late for the OP, but thought I could help passers-by. You can achieve a similar look and feel by changing the code in this lesson http://www.androidhive.info/2013/11/android-working-with-action-bar/ .

Just read the section on ActionBar Spinner. Then change the related methods to include two text images (or one text image with a tab to reach the Day 1 bookmark) instead of the icon / text.

0
source

Source: https://habr.com/ru/post/1433897/


All Articles