ogaclejapan / SmartTabLayout

A custom ViewPager title strip which gives continuous feedback to the user when scrolling
Apache License 2.0
7.09k stars 1.34k forks source link

Notification notice for tab #134

Closed shayzalman closed 8 years ago

shayzalman commented 8 years ago

Great job, thanks. It would be great to have a circular notification attached to the tab title.

brittonjg commented 8 years ago

I have had a look at implementing this myself, but it would be great if it was inbuilt!

shayzalman commented 8 years ago

Hi brittonjg

Can you share an example of how you implemented this?

jjhesk commented 8 years ago

+1 this is a very important feature.

brittonjg commented 8 years ago

@joomi afraid I don't have any code related to SmartTabLayout directly. I actually used a Fab over the tabs bar to act as a notification symbol. Not a way I would really promote, just a quick solution.

ogaclejapan commented 8 years ago

Hi, @joomi I'm sorry late reply. I’ve been busy lately at work :P

The layout and size of the notification is different for each project. So, in this library offers only way to customize the tab to implementors.

DEMO app will be helpful in the way that you want to customize.

shayzalman commented 8 years ago

Hi @ogaclejapan Thanks for the response I understand your concern could you please point out a way that I could, programmatically, change the layout of a specific tab (so I could add the notification mark), and what are my options (text, color, additional element)?

TNX

ogaclejapan commented 8 years ago

Hi, @joomi

Code samples have been added to the DEMO app.

Try to build a master https://github.com/ogaclejapan/SmartTabLayout/blob/master/demo/src/main/java/com/ogaclejapan/smarttablayout/demo/DemoTabWithNotificationMarkActivity.java

shayzalman commented 8 years ago

Super cool! I will try it out.