[Sony Cross-Device Development Themes and Apps] Pandemic:
Hi people !

I wanna just share my TUT howto add card view settings from old

Xperia X Settings into our Settings of Marshmallow after a alot investigation

and test with fails but now with succes.

Screenshot:

Steps:

1: Decompile Settings.apk

2: Download attached file then extract and merge into yours

3: Open /res/values/colors.xml, add this values:

<color name="dashboard_background_color">@drawable/dashboard_background</color>
<color name="dashboard_category_background_color">@drawable/dashboard_category_background</color>

Open /res/layout/dashboard_category.xml, on 2nd line, change to this value

android:background="?android:colorBackground"

Into this:

android:background="@drawable/dashboard_category_background"

4:

Now as you can see menu divider lines are going out of card from right side. So to fix that.

In

/res/layout/dashboard_tile.xml

In line:

<View android:id="@id/tile_divider" android:background="?android:dividerVertical" android:layout_width="fill_parent" android:layout_height="1.0dip" />

Add android:layout_marginRight="8.0dip"

Then It will look like this

<View android:id="@id/tile_divider" android:background="?android:dividerVertical" android:layout_width="fill_parent" [COLOR="red"]android:layout_marginRight="8.0dip"[/COLOR] android:layout_height="1.0dip" />

.. Extra Option ..

.. Background Of The Card Accords To Theme ..

Here is howto

:

In

dashboard_background.xml

DONT copy all - Just compare red lines

<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<padding android:top="72.0dip" />
[COLOR="red"]<solid android:color="@android:color/somc_color_primary_light" />[/COLOR]
</shape>
</item>
<item>
<shape>
<padding android:top="-72.0dip" />
[COLOR="red"]<solid android:color="#80ffffff" />[/COLOR]
</shape>
</item>
<item>
<shape>
<solid android:color="#00000000" />
</shape>
</item>
</layer-list>

Now in dashboard_category_background.xml

* DONT * copy all - Just compare red lines

<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<padding android:left="6.0dip" android:top="8.0dip" android:right="6.0dip" android:bottom="0.0dip" />
<solid android:color="#00000000" />
</shape>
</item>
<item>
<shape>
<padding android:left="1.0dip" android:top="1.0dip" android:right="1.0dip" android:bottom="1.0dip" />
<solid android:color="#03000000" />
<corners android:radius="6.0dip" />
</shape>
</item>
<item>
<shape>
<padding android:left="1.0dip" android:top="1.0dip" android:right="1.0dip" android:bottom="1.0dip" />
<solid android:color="#07000000" />
<corners android:radius="5.0dip" />
</shape>
</item>
<item>
<shape>
<padding android:left="0.0dip" android:top="0.0dip" android:right="0.0dip" android:bottom="1.0dip" />
<solid android:color="#09000000" />
<corners android:radius="4.0dip" />
</shape>
</item>
<item>
<shape>
<padding android:left="0.0dip" android:top="0.0dip" android:right="0.0dip" android:bottom="1.0dip" />
<solid android:color="#09000000" />
<corners android:radius="3.0dip" />
</shape>
</item>
<item>
<shape>
<corners android:radius="2.0dip" />
[COLOR="red"]<solid android:color="@android:color/somc_color_background_light" />[/COLOR]
</shape>
</item>
</layer-list>

- save all changes, recompile, sign, push

- done

...: Credits :...

[MENTION=6185458]idid idamrep[/MENTION]: For his guide for LP

RXS Bro [MENTION=3900807]Bloodlvst[/MENTION]: For his help

RXS Sister [MENTION=4947700]Marília de Oliveira[/MENTION]: For investigations

RXS Bro [MENTION=4783710]Mohitash[/MENTION]: For Corrections + Extra Option

-------------------

*** Note !! ***

Don`t hesitate to press the thanks for this guide !!

**********************

​