[Sony Cross-Device Development Themes and Apps] Mohitash:
[MENTION=2902434]Pandemic[/MENTION]

Some corrections, fixes and extras. :)

1. Correction in first line in the guide for

/res/values/colors.xml

Red Line is corrected here

[COLOR="Red"]<color name="theme_primary">?android:colorPrimary</color>[/COLOR]
<color name="theme_primary_dark">?android:colorPrimaryDark</color>
<color name="theme_accent">?android:colorAccent</color>
<color name="dashboard_background_color">@drawable/dashboard_background</color>
<color name="dashboard_category_background_color">@drawable/dashboard_category_background</color>

2. 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" />

3. Now the extra one to make Card Style more nice (Accords to theme) as in SS

Here is how to-

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>

That's all :good:

Regards

Mohitash