android - how to put some finishing touches (rounded edges and horizontal divider) on my custom tabs -


This is the follow-up to my last question

I wanted to make some small adjustments Passed the view by passing a view in the set indicator instead of character and icon

Problem: Now I have to fully rebuild the tabs to feel and feel (I just want some small changes Was). Oh okay, I have some tabs working now which is fine.

There are basically two things that I can not seem to relax.

The main one is: (1) I have a horizontal bar right below my tab (the same color as the selected tab) by default

These are my tabs :

Enter image details here

Here are some tabs

Image Stack is not allowed due to overflow lamination (innocent to control the culprit Penalize). If there is a better message about the board Then include those links

The second is less important but it would be really good (2) how to actually show them like a tab instead of the rectangle (like the curved edges, the second image) It seems that I want to do it with divider. I'm not a graphic designer, though they have a good source for these images. Also, I want to do it in such a way that there is no hope of breaking in the future.

Someone has any suggestion (especially Q: 1), which will be highly appreciated. I wanted to throw a little padding, and now, 4 days of learning to create a custom tab Lol

I have not done this work yet, but if there is a problem with someone else, here is what I have learned for rounded corners (2)

: to be used for your tab pointer background Write something like this in the appropriate picture for me (and possibly most others) that means it's 'tab_selected.xml' and Known as nesting in both shape tabs in 'tab_directed.exml'.

  & lt; Android: bottomLeftRadius = "0dp" Android: Writrate down = "0 DP" Android: Top Levelradius = "5 DP" Android: ToprightRadius = "5 DP" /> Note: Normally I would call a 'tab' in general language, which I technically called a 'tab indicator' on Android.  

Tab indicator (1) for the horizontal divider below: I am still a bit less clear on this, but I think that you (1: A) "tab_unselected.xml" Tag that will attract the line you specify.

Alternatively, I believe that you can make a draw (1: B) by using 'Tabstrip Anesthet', 'Tabstrip Lift', and Tabwith's 'Tabstriplight' properties to be used. You can specify.

These are not so clear to me.

OK, I hope someone can help you fight with it, at least get some ideas. / html>

Comments