1) Create a png of a triangle.
2) Create a state list drawable where the selected state uses that image
and the unelected state doesn't (You may want to get more involved and add
pissed states).
3) Create a custom layout to inflate for the tab that has a text view and
set the bottom drawable of that text view to use your state list drawable
created in step 2
4) When you create your tabs, inflate the layout created in step 3 and set
it as the custom view of your tab

DISCLAIMERS:
There may be a better way to accomplish this, but this is what I thought of
initially. I have done stuff like this in the past but it's been a while do
there may be done additional tweaking you need to do. If I remember right I
used PagerTab Strip.

Hour that at least gets you in the right direction.

Thanks,
Justin

On Fri, Jul 31, 2015, 3:38 AM Pratama Nur Wijaya <set.mnemo...@gmail.com>
wrote:

> Hi everyone,
>
> i want to make custom tab like these (see image)
>
> http://www.awesomescreenshot.com/image/444876/fd1fdc0ed49b53f846b6b2282868235a
>
> its look like instagram login page,
>
> i have try using Design Support Lib TabLayout
> but i dont have an idea how to custom tablayout indicator like that
>
>
> any suggestion ?
> Thanks before
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to