New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Improved TabView CSS Support #2738
Comments
+1 |
Same request here ! |
@sitefinitysteve One of the main obstacles to styling the individual tabs with pseudo classes is that the tabs are not UI views in our view hierarchy. The
So for example, when you set TabView.selectedColor to something, here is what happens on Android:
So it will be very difficult to use the pseudo class approach for TabViewItems. So I think to implement the following css:
What do you think? |
@sitefinitysteve Regarding the Android tab text, do you want the text of the selected tab to match the color of the horizontal line below it? Or you want to change the text color of all tabs? In other words, given the following CSS:
You want the text of the selected tab (Item 1) to be yellow, right? |
And another question. Do you need to be able to specify a different background color for the selected tab only? Currently you can only change the highlight, i.e. text color on iOS and the horizontal line color on Android. |
Can we get @myninka to comment in on the requirements for colors? I basically just need the flexibility to implement the theme, but since we're here it would be great to allow users freedom to do whatever they need. Re: Css properties: I mean those are non-standard, thats why I was throwing about the pseudo idea. I'm personally fine with that as long as it's documented and not lost in the void, but what is the discussion over there, everyone cool with it? |
We have discussed this with @hamorphis and agreed css should set the following:
|
👍 Thanks @hamorphis @myninka ! |
I am currently working on implementing these:
I tried to implement selected-tab-background-color, but it is quite hard. On iOS I need to hack the internals of the control and I read that this can ban the app on the AppStore. On Android the individual tabs are not stretched to occupy the full height of the TabStrip and if I change the background of only one it looks ugly. So to achieve this on Android I would have to hack the Android control as well. So for now I don't think we will support selected-tab-background-color. The Rich UI TabView will have those capabilities though. |
@hamorphis By Rich UI TabView do you mean the TelerikUI for NS package? |
@sitefinitysteve Yes. |
@sitefinitysteve, @myninka I have created a pull request. |
Thx @hamorphis people are gonna love this |
IMPORTANT
All CSS properties have their respective properties on the TabView class so you can set them from XML and/or code-behind:
|
If A
|
For tab view with tabitem->iconsource, tabTextColor is not applying to icon. But selectedTabTextColor applied to icon properly |
Is it possible to change TabView's Item height? |
I Want to remove the shadow bellow the title tabs...how can I remove that? |
I'm also looking for a way to control the tabview height, or at least reduce the vertical padding somewhat. |
Can someone please help me. I want to change on android tab highlight height. How I can do it? |
Tabs Need:
It would keep the colors out of the XML and give me more flexability, also "color" on TabView also changes the tab content area, which is problematic :/
The text was updated successfully, but these errors were encountered: