android - Alternative Layouts -


I am developing an Android application that supports content design for devices running 5.0+ and 4.1 to 4.4 Want to do

I am using the Epcapet library to get some support for older versions.

Now I have to face the features that are only present in V21, like height .

I can create a layout- v21 folder and add the layout of my activity there again, which has a lot of duplication.

Do you do it the other way?

Is there any way to use styles for this? How do I create a style from values ​​ to values-v21

Here is a link I have used that gives some information about the overriding style / topics for the v21 lollipop:

Basically you can do values ​​/ themes.xml

  & lt; style name = "Aaptim" parent = "Aaptim .base" /> gt; style name = "Aaptim .base" parent = "theme. App comet "> gt; item name =" color primary "> gt; @color / color primary & lt; item & gt; item name =" color primary diary "& gt; @ color Item name = "android: windowNoTitle" & gt; True & lt; / item & gt; Item Name = "windowActionBar" & gt; False & Color; Primary & lt; / Item & gt; Item Name = "android: windowNoTitle" Lt; / item & gt; & lt; / style & gt;  

and then values- v21 / themes.xml

  & lt; style name = "Aaptim" "Parent =" Aaptim.base ">  True   true   

To overwrite Aaptim to V21 but to maintain all properties for Aaptim. Badge by Pre-V21


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -