how to merge several css files in pixate-freestyle-android

113 Views Asked by At

My XML layout:

<LinearLayout android:orientation="vertical"...>

    <View android:id="@+id/bar" .../>
    <TextView android:id="@+id/text" .../>

</LinearLayout>

I have default.css:

#bar{ background-color: red; }
#text{ color: red; }

And custom.css:

#text{ color: green; }

If I do "PixateFreestyle.init(this);", I can see that by applying default.css (View - red, TextView - red).

If I do "PixateFreestyle.init(this, "custom.css");", I can see that by applying custom.css (View - not red, default value of view, TextView - green).

How to merge default.css and custom.css? I want to get View - red, TextView - green.

In other words, I want to initialize library with two files that styles applied from both.

2

There are 2 best solutions below

0
ilyamuromets On BEST ANSWER

In order to solve my problem, I'm using the default.css, and then I'm downloading custom.css and apply it over the default.

1
yogesh agrawal On

change in default.css only with the green color because if you merge two css file it will take later one only or either you can use dynamic changing of css file after few seconds but merging at a one time i think it not possible.