[Galaxy Note II Original Android Development] lioux:
Inverted Colors for Play Store 4.1.6

I tracked the differences from an inverted-color Play Store 4.1.6 and the standard one. The diff is attached.

Credit for the modifications go to MyLifeRocks10. Check out his thread. If you like this, thank him. :)

I would like your input on the best/simplest way to do this with Xposed.

Can I change attributes programmatically that are declarative?

Here I don't have the hook method, so I should replace resources. Do I need to replace the full file? Or, am I able to set just a single attribute?

All help is appreciated. :) If this is possible... I'll start with the Play Store then keep going.

A summary of the required modifications follow:

Set/Change background on a LinearLayout with a custom color

-<LinearLayout android:gravity="right" android:orientation="vertical" android:background="@color/setupwizard_background_color" android:layout_width="fill_parent" android:layout_height="fill_parent"
+<LinearLayout android:gravity="right" android:orientation="vertical" android:background="@color/billing_form_background" android:layout_width="fill_parent" android:layout_height="fill_parent"

Set/Change color attribute of a shape

- <solid android:color="@color/white" />
+ <solid android:color="#ff333333" />

Set/Change textColor attribute of a TextView with a custom color

- <TextView android:textSize="@dimen/content_generic_large_size" android:textStyle="bold" android:textColor="@color/play_primary_text" android:id="@id/challenge_title" android:paddingLeft="@dimen/details_content_margin" android:paddingRight="@dimen/details_content_margin" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginBottom="6.0dip" />
- <TextView android:textSize="@dimen/content_generic_small_size" android:textColor="@color/play_primary_text" android:id="@id/challenge_description" android:paddingLeft="@dimen/details_content_margin" android:paddingRight="@dimen/details_content_margin" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginBottom="6.0dip" />
+ <TextView android:textSize="@dimen/content_generic_large_size" android:textStyle="bold" android:textColor="@color/white" android:id="@id/challenge_title" android:paddingLeft="@dimen/details_content_margin" android:paddingRight="@dimen/details_content_margin" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginBottom="6.0dip" />

Set/Change color attribute of a View

- <View android:id="@id/explorer_wifi_required" android:background="@color/white" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="0.0dip" android:alpha="0.7" />
+ <View android:id="@id/explorer_wifi_required" android:background="@color/title_background" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="0.0dip" android:alpha="0.7" />

Set/Change parent of styles

- <style name="common.Activity.Light" parent="@*android:style/Theme.Light">
+ <style name="common.Activity.Light" parent="@*android:style/Theme">

Set/Change color of styles

<style name="ContentEntryTitle" parent="@*android:style/Widget.TextView">
<item name="android:textSize">@dimen/content_entry_medium_size</item>
<item name="android:textStyle">bold</item>
- <item name="android:textColor">@color/grey</item>
+ <item name="android:textColor">#ffffffff</item>

Set/Change existing colors

- <color name="grey">#ff999999</color>
+ <color name="grey">#ff909090</color>

Create new colors

+ <public type="color" name="billing_form_background" id="0x7f0a0069" />