0

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.

ilyamuromets
  • 403
  • 1
  • 7
  • 18

2 Answers2

0

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.

Quentin Hayot
  • 7,786
  • 6
  • 45
  • 62
yogesh agrawal
  • 706
  • 7
  • 15
0

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.

ilyamuromets
  • 403
  • 1
  • 7
  • 18