[Android Themes] KuaQ:
Hi, today I want to help you port Android 5.0 framework

Guide its simple, you need to just know how to edit .xml files​

1. How to port Dialog Window

Screen:

Tutorial

1. Decompile your framework-res apk

2. Go to /res/layout and open alert_dialog_holo.xml

3. Find the line that starts with the

<View android:id="@id/titleDividerTop"

and delete this line

Do the same with line the starts with

<View android:id="@id/titleDivider"

4. Now find this line

<TextView android:id="@id/message" android:paddingLeft="16.0dip" android:paddingTop="8.0dip" android:paddingRight="16.0dip" android:paddingBottom="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" style="?android:attr/textAppearanceMedium" />

And edit to look like this (red elements are elements which we are changing)

<TextView android:id="@id/message" [COLOR="Red"]android:paddingLeft="24.0dip"[/COLOR] android:paddingTop="8.0dip" [COLOR="Red"]android:paddingRight="24.0dip"[/COLOR] [COLOR="Red"]android:paddingBottom="24.0dip"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" style="?android:attr/textAppearanceMedium" />

5. Now we are going to edit buttons,

Find line with this id android:id="@id/buttonPanel" and delete from this line these three parameters

[COLOR="RoyalBlue"]android:divider="?dividerHorizontal"[/COLOR]
[COLOR="RoyalBlue"]android:showDividers="beginning"[/COLOR]
[COLOR="RoyalBlue"]android:dividerPadding="0.0dip"[/COLOR]

In this line (under line with id/buttonPanel)

<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:measureWithLargestChild="true" android:layoutDirection="locale" style="?android:attr/buttonBarStyle">

add this paramteters, anywhere you want

android:layout_marginLeft="24.0dip" android:layout_marginRight="24.0dip" android:paddingBottom="16.0dip" android:paddingTop="16.0dip"

After adding, line should look like this

<LinearLayout android:orientation="horizontal" [COLOR="Red"]android:layout_marginLeft="24.0dip" [/COLOR][COLOR="Red"]android:layout_marginRight="24.0dip" [/COLOR][COLOR="Red"]android:paddingBottom="16.0dip"[/COLOR] [COLOR="Red"]android:paddingTop="16.0dip"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:measureWithLargestChild="true" android:layoutDirection="locale" style="?android:attr/buttonBarStyle">

6. Now we are going to lines which starts with <Button tag (should be 3 )

Change (IN ALL 3 LINES)

android:textSize="14.0sp"

to

android:textSize="[COLOR="Red"]17.0sp[/COLOR]"

Now, in lines with android:id="@id/button2" and android:id="@id/button3" add this tag

android:textAllCaps="true"

Lines shoud look like this:

<Button android:textSize="17.0sp" android:textAllCaps="true" android:id="@id/button2" ... />
<Button android:textSize="17.0sp" android:textAllCaps="true" android:id="@id/button3" ... />

• In line with

android:id="@id/button1"

add this:

android:textStyle="bold" android:textAllCaps="true" android:textColor="@color/holo_blue_light"

line should look like this

<Button android:textSize="17.0sp" android:textStyle="bold" android:textAllCaps="true" android:textColor="@color/holo_blue_light" android:id="@id/button1" .... />

(If you have any problem check my alert_dialog_holo.xml in attach)

7. Now save changes, recompile & sign apk and push to /system/framework

2. How to port List Separators

Screen:

Tutorial

1. Download list separators.rar from attach and extract it to your drawable-xxhdpi folder (if you dont' have it just create now folder in /res called drawable-xxhdpi)

2. Now open styles.xmlin /res/values

•Find this style

<style name="Widget.TextView.ListSeparator" parent="@style/Widget.TextView">

Under this style you find parameter <item name="textColor"> change his value to #ff009587

• Now, in this style find and delete this line:

<item name="background">@drawable/dark_header_dither</item>

•Now edit this line

<item name="layout_width">fill_parent</item>

to look like this:

<item name="layout_width">[COLOR="Red"]wrap_content[/COLOR]</item>

3. Now we are looking this line

<item name="android:background">@drawable/list_section_divider_holo_dark</item>

edit this line to look like this

<item name="android:background">@drawable/[COLOR="Red"]list_section_divider_holo_dark_lollipop[/COLOR]</item>

• Now search this line:

<item name="android:background">@drawable/list_section_divider_holo_light</item>

end edit to look like this

<item name="android:background">@drawable/[COLOR="Red"]list_section_divider_holo_light_lollipop[/COLOR]</item>

4.You're done! Now recompile, sign and push to /system/framework