I'm using a blue theme, but the loading bar always insisting on staying orange, these themes are never, always in the same color as the standard yellow / orange.
googled a bit and found no topic how, so I'll post a tutorial on how to make a very simple way ..
* color of the volume bar.
* color of slash loading browser.
* download progress bar color.
is actually a file only those responsible for the color, the file is within the framework-res.apk.
step by step;
* Has sdk/java/adb/apktool/7zip/Notepad + + installed (obviously).
* copy to your pc the framework-res.apk:
# adb pull /system/framework/framework-res.apk
* Decompile the apk:
#apktool d framework-res.apk
* find this file: framework-res\res\drawable\progress_horizontal.xml
*Open it with notepad++;
*note these lines:
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background">
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff9d9e9d" android:endColor="#ff747674" android:angle="270.0" android:centerY="0.75" android:centerColor="#ff5a5d5a" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#800099cc" android:endColor="#a0ffcb00" android:angle="270.0" android:centerY="0.75" android:centerColor="#8000aae3" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff0099cc" android:endColor="#ffffcb00" android:angle="270.0" android:centerY="0.75" android:centerColor="#ff00aae3" />
</shape>
</clip>
</item>
</layer-list>
Click to expand...
Click to collapse
* The sets marked in red are the values to be changed, the default is that this file is BLUE!
* if you want to put another color, just color code the researches in photoshop or another image editor.
ex:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
PS: attention! only the last six digits, the first two are responsible for the transparency!
* make a copy of the original framework-res.apk elsewhere. (to ensure that you have saved an original).
* Compile again.
#apktool b framework-res framework-res2.apk
* we now have two files "apk"
- framework-res. apk
- framework-res2. apk
* Open both files with 7zip (OPEN ONLY, NOT EXTRACT).
* copy the file "progress_horizontal.xml" compiled in "framework-res2.apk to the original framework-res.apk. respecting the path /res/drawable
*restart, open recovery, mounts & storage = mount system
#adb push framework-res.apk /system/framework
#adb shell
#cd /system/framework
#chmod 644 framework-res.apk
restart...
Awesome how do I edit the yellow bar present when increasing/decreasing the volume ??
Trying to learn to theme. What programs do I need?
Sent from my PC36100 using Tapatalk 2
Related
Hi mates I just want to share this guide of How to make a Floating Statusbar Like a Phablet/Tablet
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Original Thread
Hello, i just try to make my phone like a phablet/tablet with 4.0.4 or 4.1.2 android os last time, but i don't know i can make it a simple or not.
But now i can make it a "pop up manipulation" with some background manipulation too. So, here we go the tutorial will start now!
The first of this tutorial you must know about :
1. How to decompile/compile the apk file (don't ask here, you can search on google how to do that)
2. How to coding a xml file with some code
3. You must have a Apktool/ApkManager/ToolAlite by KuyaGaol
4. You must have a JDK and Latest Net framework for run Apktool/ApkManager/ToolAlite by KuyaGaol
5. You must take a beer! lol
Oke the first method is :
1. Download my Floating.zip
2. Pull the Framework-res.apk and SystemUI.apk
3. Do "if framework" on your Apktool/ApkManager/ToolAlite by KuyaGaol
4. Decompile SystemUI.apk
5. Extract my Floating.zip to your drawable directory. (you can extract on "drawable" or "drawable-mdpi" folder).
6. Open status_bar.xml from /res/layout/here and find this code, modify and save :
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"
and add this line code :
Code:
android:background="@drawable/trans"
or paste my line :
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="#00000000" android:gravity="center" android:id="@id/date" android:background="@drawable/trans" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
7. Open status_bar_expanded.xml from /res/layout/here and find this code, modify and save :
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical"
and add this line code :
Code:
android:background="@drawable/bg"
or paste my line :
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:background="@drawable/bg" android:focusable="true" android:descendantFocusability="afterDescendants"
8. Open status_bar_tracking.xml from /res/layout/here and find this code. modify and save :
Code:
<View android:background="@drawable/shade_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0" />
and change to this line :
Code:
<View android:background="@drawable/shade_bg" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_weight="1.0" />
Find this line :
Code:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
and change to this line :
Code:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/trans" android:scaleType="fitXY" />
9. Recompile your SystemUI.apk project and push it to your phone to the /system/app directory
Thanks To :
- Rizalien
- Official Group Galaxy Young Indonesia
- Official Group Sony Xperia X8 Indonesia
- Tiny Anastasia Development Group
- DCSMS
@petrukgrinder
- and YOU!
Click to expand...
Click to collapse
can u share systemui.apk!?
thanks!
Sent from my LG-P500 using xda app-developers app
x-dira said:
can u share systemui.apk!?
thanks!
Sent from my LG-P500 using xda app-developers app
Click to expand...
Click to collapse
sorry but i am using different device
Sent from my GT-S5360 using xda premium
can u share guide mode quick panel with volume & brightness... in screenshot
Thanks
Sent from my LG-P500 using xda app-developers app
Hello today I am Bring My first thread how to ad AF Volume Panel to Android Mobile Its Very Easy Methods to Do it. I have waste many time to do make some smali codes so don't kang this smali .ok Lets Start
Requirement:
Apktool http://forum.xda-developers.com/showthread.php?t=1755243
Framework.jar from ur phone
Framework-res.apk from ur phone
Nice Brain to Understand
Instructions:
Step 1 :- Decompile Framework-res.apk
Step 2 :- Open decompiled folder / values / ids.xml and Merged down the Framework-res.zip with ur Decompiled Folder
Step 3 :-
Code:
<item type="id" name="warning_message_af">false</item>
before </resources>
Step 4 :- Open layout/volume_adjust.xml Remove All lines
Step 5 :- Add This
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="@drawable/panel_background" android:layout_width="300.0dip" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/message" android:layout_width="0.0dip" android:layout_height="0.0dip" />
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/additional_message" android:layout_width="0.0dip" android:layout_height="0.0dip" />
<LinearLayout android:gravity="left|center" android:orientation="horizontal" android:layout_width="280.0dip" android:layout_height="45.0dip" android:layout_marginTop="6.0dip" android:layout_marginBottom="6.0dip">
<ImageView android:id="@id/other_stream_icon" android:padding="0.0dip" android:layout_width="42.0dip" android:layout_height="32.0dip" />
<ImageView android:id="@id/ringer_stream_icon" android:padding="0.0dip" android:layout_width="42.0dip" android:layout_height="32.0dip" />
<ProgressBar android:id="@id/level" android:layout_width="215.0dip" android:layout_height="32.0dip" android:layout_marginRight="16.0dip" android:progressDrawable="@drawable/progress_volume_adjust" style="?android:attr/progressBarStyleHorizontal" />
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/warning_message_af" android:layout_width="195.0dip" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginTop="3.0dip" android:layout_marginRight="15.0dip" android:layout_marginBottom="5.0dip" />
</LinearLayout>
</LinearLayout>
Step 6 :- Recompile the framework-res.apk
Step 7 :- Decompile The Output framework-res.apk one
Step 8 :- Open values/public.xml
Step 9 :- Search for
Code:
<public type="id" name="warning_message"
Step 10 :- Note Down public id we need
Step 11 :- Decompile framework.jar
Step 12 :- Downloads The Attachment and merged with ur Decompiled folder
Step 13 :- Open smali / android / view
Step 14 pen VolumePanel
Step 15 :- Search for 0x1020263
Step 16 :- You will See
HTML:
.line 148
const v4, 0x1020263
invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v4
check-cast v4, Landroid/widget/TextView;
iput-object v4, p0, Landroid/view/VolumePanel;->mWarningMessage:Landroid/widget/TextView;
Step 17 :- Change smali codes first list five digit like if my warning_message_af is 0x010[B20265][/B] Volume Panel ids is 0x1020263
then we have replace waring public codes id to volume panel ids only last five digit
Step 18 :- Recompile The Framework.jar
Step 19 :- Sign The The Two apps
Step 20:- Push to ur phone
Step 21 :- Happy Modding
Result:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Reserved
Reserved
What it does? screenshots?
..
Check
Mrinal Roy said:
..
Click to expand...
Click to collapse
Updated Check OP SS is Added
OK like the title said this guide is for :
- Adding Actionbar back button like in ICS/JB
- Changing titlebar height and settings background
First thing if u want look of ICS/JB Settings go here
Second if u want Wifi/Bt buttons/toggles fo here
Also this, placing a custom icon on the title bar of a certain app here
What Is Required :
? Brain function - but not all function dont worry
? Rooted phone
? Notepad++(for opening build.prop files)
? Android Commander
? Tool for decompiling jar files - apkmanager/apktool/virtous or...
Click to expand...
Click to collapse
Adding Actionbar back button like in ICS/JB :
*This part is for adding back button in "About Phone" section but if u have free time (your gonna need it!)
same metod can be used for rest of Settings categories, just have to find them... like for "Development" changes
have to be made in development_prefs.xml, for Display there is display_settings.xml.. and androidmanifest.xml ofc!
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. STEP - DECOMPILE Settings.apk
res/xml/device_info_settings.xml
add this line :
Code:
<CheckBoxPreference android:layout="@layout/actionbar_device_info_preferences" android:title="@string/about_settings" android:key="device_info_ab_settings" />
bellow:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
2. STEP - Open your Android-Manifest.xml and change :
Code:
<activity android:label="@string/device_info_settings" android:name="DeviceInfoSettings" android:configChanges="keyboardHidden|orientation">
to this :
Code:
<activity [COLOR="Red"]android:theme="@*android:style/Theme.Black.NoTitleBar"[/COLOR] android:label="@string/device_info_settings" android:name="DeviceInfoSettings" android:configChanges="keyboardHidden|orientation">
3. STEP - Download setfiles.rar and push files to your decompiled Settings.apk
4. STEP - Re-sign your apk and push it to system/app.
5. STEP - Because we made change to androidmanifest we have to make change to services.jar also
Decompile /system/framework/services.jar
com/android/server/PackageManagerService.smali, look for
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921 [COLOR="DeepSkyBlue"]- this number could be different in your files[/COLOR]
change it to :
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921
[COLOR="Red"] const/4 v6, 0x0
return v6[/COLOR]
6. STEP - Re-sign your apk and push it to system/framework.
Changing titlebar height and settings background :
1. STEP - DECOMPILE framework-res.apk
res/values/styles.xml
2. STEP - find this lines :
Code:
<style name="Theme">
bellow that find something like :
Code:
<item name="windowBackground">@drawable/screen_background_dark</item>
change it to :
Code:
<item name="windowBackground">@drawable/[COLOR="Red"]mybackground[/COLOR]</item>
then find :
Code:
<item name="windowTitleSize">25.0dip</item>
change it to :
Code:
<item name="windowTitleSize">[COLOR="Red"]48.0dip[/COLOR]</item>
3. STEP - Download framefiles.rar and push files to your decompiled framework-res.apk
4. STEP - Re-sign your apk and push it to system/framework.
If I forgot something dont upset it will be upload.
Credits:
Sniper Killer
Recognized Contributor
SpaceCaker
Recognized Themer / Contributor
reserved
background*
tomgacz said:
background*
Click to expand...
Click to collapse
changed.
help
Vesavoj said:
reserved
Click to expand...
Click to collapse
I want to center the text in titlebar.please help me.thanks
sorry my english is so bad
desire1990 said:
I want to center the text in titlebar.please help me.thanks
sorry my english is so bad
Click to expand...
Click to collapse
Decompile framework-res.apk
res/layout/screen_title.xml
change this line :
Code:
<TextView android:gravity="center_vertical" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
to this :
Code:
<TextView android:gravity="[COLOR="Red"]center[/COLOR]" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
thank!!
Vesavoj said:
Decompile framework-res.apk
res/layout/screen_title.xml
change this line :
Code:
<TextView android:gravity="center_vertical" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
to this :
Code:
<TextView android:gravity="[COLOR="Red"]center[/COLOR]" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
Click to expand...
Click to collapse
thank u so much!!! <3
---------- Post added at 01:55 AM ---------- Previous post was at 01:39 AM ----------
I tried, but failed :crying:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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:
Click to expand...
Click to collapse
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
Code:
<View android:id="@id/titleDividerTop"
and delete this line
Do the same with line the starts with
Code:
<View android:id="@id/titleDivider"
4. Now find this line
Code:
<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)
Code:
<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
Code:
[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)
Code:
<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
Code:
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
Code:
<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)
Code:
android:textSize="14.0sp"
to
Code:
android:textSize="[COLOR="Red"]17.0sp[/COLOR]"
Now, in lines with android:id="@id/button2" and android:id="@id/button3" add this tag
Code:
android:textAllCaps="true"
Lines shoud look like this:
Code:
<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
Code:
android:id="@id/button1"
add this:
Code:
android:textStyle="bold" android:textAllCaps="true" android:textColor="@color/holo_blue_light"
line should look like this
Code:
<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:
Click to expand...
Click to collapse
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
Code:
<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:
Code:
<item name="background">@drawable/dark_header_dither</item>
•Now edit this line
Code:
<item name="layout_width">fill_parent</item>
to look like this:
Code:
<item name="layout_width">[COLOR="Red"]wrap_content[/COLOR]</item>
3. Now we are looking this line
Code:
<item name="android:background">@drawable/list_section_divider_holo_dark</item>
edit this line to look like this
Code:
<item name="android:background">@drawable/[COLOR="Red"]list_section_divider_holo_dark_lollipop[/COLOR]</item>
• Now search this line:
Code:
<item name="android:background">@drawable/list_section_divider_holo_light</item>
end edit to look like this
Code:
<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
01.11.2014
Added Dialog & Separators guides
My tutorial How to port Lolipop Check boxes and Radio buttons with animations
Cool
wow
I'll add some new stuffs ASAP
(UP)
Can you make for my resolution my resolution is ldpi please make it i want to try it please
because i can any theme created for my tablet my tablet is unknown but i know it's name
Ok
I'll made it for all res
What about animation bro
Sent from my ST25i using Tapatalk
Sir what is the color code are using in this <color name="holo_blue_light"></color>
Punkzappa09 said:
Sir what is the color code are using in this <color name="holo_blue_light"></color>
Click to expand...
Click to collapse
Is color from your framework-res (/res/values/colors)
Hello , thank you for your tutorial you know how to remove the lines in the settings ? This is an .xml file ?
Thank you .
Sure, can you post tour decompiled settings.apk?
KuaQ said:
Sure, can you post tour decompiled settings.apk?
Click to expand...
Click to collapse
If you give me the way I do , thank you .
EDIT : You need exactly ?
---------- Post added at 06:56 PM ---------- Previous post was at 06:27 PM ----------
KuaQ said:
Sure, can you post tour decompiled settings.apk?
Click to expand...
Click to collapse
Ok the simplest , I send you, thank you .
http://www.partage-facile.com/TXDUDPN0Q6/secsettings.zip.html
dragonballz said:
If you give me the way I do , thank you .
EDIT : You need exactly ?
---------- Post added at 06:56 PM ---------- Previous post was at 06:27 PM ----------
Ok the simplest , I send you, thank you .
http://www.partage-facile.com/TXDUDPN0Q6/secsettings.zip.html
Click to expand...
Click to collapse
So..
In your styles.xml find line
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo" />
and replace it with this:
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo">
<item name="android:listViewStyle">@style/MyListViewStyle</item>
<item name="android:listSeparatorTextViewStyle">@style/ListSeparator</item>
</style>
Now add this 2 styles in your styles.xml
Code:
<style name="ListSeparator" parent="@*android:style/Widget.DeviceDefault.Light.TextView.ListSeparator">
<item name="android:background">#00000000</item>
</style>
Code:
<style name="MyListViewStyle" parent="@android:style/Widget.ListView">
<item name="android:divider">#00000000</item>
<item name="android:dividerHeight">1px</item>
</style>
Shoud working, I dont test it. pleas report if working or not. Of course you can add your own parametr in to this styles like text color or size..
KuaQ said:
So..
In your styles.xml find line
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo" />
and replace it with this:
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo">
<item name="android:listViewStyle">@style/MyListViewStyle</item>
<item name="android:listSeparatorTextViewStyle">@style/ListSeparator</item>
</style>
Now add this 2 styles in your styles.xml
Code:
<style name="ListSeparator" parent="@*android:style/Widget.DeviceDefault.Light.TextView.ListSeparator">
<item name="android:background">#00000000</item>
</style>
Code:
<style name="MyListViewStyle" parent="@android:style/Widget.ListView">
<item name="android:divider">#00000000</item>
<item name="android:dividerHeight">1px</item>
</style>
Shoud working, I dont test it. pleas report if working or not. Of course you can add your own parametr in to this styles like text color or size..
Click to expand...
Click to collapse
Thank you , but it does not work :crying:
dragonballz said:
Thank you , but it does not work :crying:
Click to expand...
Click to collapse
What does it means: recompiling error/fc/lines are still there?
KuaQ said:
What does it means: recompiling error/fc/lines are still there?
Click to expand...
Click to collapse
Not the lines are still apparent
KuaQ said:
What does it means: recompiling error/fc/lines are still there?
Click to expand...
Click to collapse
Here is my modified styles.xml may be I have an error !!!
Sir thanks for this awesome guide, will this work for jelly bean 4.2.2?
In this guide , I will tell "How to add About ROM" option in Settings.
Tested this option on Android 4.2 and 4.4
REQUIREMENTS :
1. Brain
2. Apktool
3. Notepad ++
4. Knowledge on How to Decompile/Recompile the apk
Lets start ,
1. Decompile your Settings.apk and merge the file (given below).
2. Now add these lines in "device_info_settings.xml" or any other xml present in Settings.apk/res/xml.
PHP:
<PreferenceCategory android:layout="@layout/rom_logo" android:title="" />
<PreferenceScreen android:title="@string/about_rom" android:key="container" android:summary="@string/about_rom_summary">
<Preference android:title="@string/rom_name" android:summary="@string/rom_name_summary" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/rom_developer" android:summary="@string/rom_developer_summary" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/rom_version" android:summary="@string/rom_version_summary" style="?android:preferenceInformationStyle" />
<PreferenceScreen android:title="@string/rom_thanks" android:key="rom_thanks" android:summary="@string/rom_thanks_summary" android:fragment="com.android.settings.gurpreet.ContributorsCloud" />
<Preference android:title="@string/mywebsite" android:key="website" android:summary="@string/website">
<intent android:action="android.intent.action.VIEW" android:data="http://anythingultimate.blogspot.in/2014/01/i-am-writingthis-blogso-that-users-of.html" />
</Preference>
<PreferenceScreen android:title="@string/changelog_title" android:key="changelog">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.gurpreet.changelog.ChangeLog" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/additional_info" android:key="container" android:summary="@string/additional_info_summary">
<Preference android:title="@string/info" android:summary="@string/info_summary" style="?android:preferenceInformationStyle" />
</PreferenceScreen>
</PreferenceScreen>
NOTE :- Change the website link according to you in this line in the above code.
PHP:
<intent android:action="android.intent.action.VIEW" android:data="http://anythingultimate.blogspot.in/2014/01/i-am-writingthis-blogso-that-users-of.html" />
3. Now open "strings.xml" and add these lines above </resources>.
PHP:
<string name="about_rom">About ROM</string>
<string name="about_rom_summary">This contains all information about the ROM</string>
<string name="rom_name">ROM Name</string>
<string name="rom_name_summary">ZINGERONE™</string>
<string name="rom_developer">ROM Developer</string>
<string name="rom_developer_summary">Gurpreet Singh</string>
<string name="rom_version">ROM Version</string>
<string name="rom_version_summary">1.0</string>
<string name="rom_thanks">Special Thanks To</string>
<string name="rom_thanks_summary">Touch here to see the names</string>
<string name="mywebsite">Website</string>
<string name="website">Touch here to go to my website</string>
<string name="about_gen">General Information</string>
<string name="changelog_title">Changelogs</string>
<string name="changelog_dialog">ZINGERONE™ CHANGELOGS</string>
<string name="changelog_loading">Download the list of changes...</string>
<string name="changelog_error">Error loading list of changes</string>
<string name="additional_info">Additional Information</string>
<string name="additional_info_summary">Some additional information about ROM</string>
<string name="info">Guide By Gurpreet Singh</string>
<string name="info_summary">Enjoy guys. Keep helping each other</string>
NOTE :- Change the strings according to your choice.
4. Now open the "AndroidManifest.xml" and add this activity.
PHP:
<activity android:label="@string/changelog_title" android:name=".gurpreet.changelog.ChangeLog" android:theme="@android:style/Theme.Holo.Light.Dialog.Alert">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
5. Now Recompile your Settings.apk & Sign it and then again Decompile it.
6. Now go to smali/com/android/settings/gurpreet/changelog and open the "ChangeLog$1.smali". Then replace the id with the id present in public.xml of your Settings.apk
0x7f0c09fb
PHP:
<public type="string" name="changelog_dialog"
7. Now go to smali/com/android/settings/gurpreet/changelog and open the "ChangeLog.smali". Now again replace the ids with the ids present in public.xml of your Settings.apk.
0x7f0c09fd
PHP:
<public type="string" name="changelog_error"
0x7f0c09fc
PHP:
<public type="string" name="changelog_loading"
Important Information :
• The contributors image is in Settings/assets folder. Change it according to your choice. You can change the background colour from gray to any by editing this "-0xbbbbbc" in ContributorsCloud.smali.
• The changelog list is in the ROM/system/etc. You can change it according to you. Don't forget to change the permission of "rom-changelogs.txt" to rw-r--r--
• You can change the ROM Logo by editing the "logo_rom.png" in Settings/drawable
Special Thanks To :
1. Cyanogenmod
2. XDA
3. GK-Lollipop ROM
4. Sumeet Darade
5. MAAaD
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Yeah! That's what I want!!
Yeah me too @dark_optimistic
Thanks bro.
Android小楼阁-QQ群 439637151
来自搭载Android 2.3 GingerBread的华为Y220-T10
hi could you add an option in my setting.apk
About Phone>>"Rom Devloper" and insid this option
contain:
- Devloper Name : Awedh Wedaan
-Rom Name : New Brava DM-990
and below the title:
--to contact with Devloper Press on Icon--
first icon : when sombody press on it take him to phone dealer and show my number +967734746556
the other icon :when sombody press on it take him to chat with me via whatsapp -if he has whatsapp.apk in his phone
pleas help me and i'll be greatful
if you can do this ,do it and upload th apks and give me the links to download it or you can try to making a guide to what i mention it above in red color and let the world now who r you
awadh730 said:
hi could you add an option in my setting.apk
About Phone>>"Rom Devloper" and insid this option
contain:
- Devloper Name : Awedh Wedaan
-Rom Name : New Brava DM-990
and below the title:
--to contact with Devloper Press on Icon--
first icon : when sombody press on it take him to phone dealer and show my number +967734746556
the other icon :when sombody press on it take him to chat with me via whatsapp -if he has whatsapp.apk in his phone
pleas help me and i'll be greatful
if you can do this ,do it and upload th apks and give me the links to download it or you can try to making a guide to what i mention it above in red color and let the world now who r you
Click to expand...
Click to collapse
Why in the HELL would you want to give your number out to the users of your rom? Also who in the HELL would care o even call!!? And lastly it's crazy how this dude was cool enough to take the time out of his everyday life to create this guide for all XDA users and then someone like you comes in here and rather then just being grateful you start demanding him to make these outlandish modificationis for you which you could do yourself if you'd do some research...well I dont know about the whole phone number dialer thing but the whatsapp is not hard just do some research or offer to pay the man to do it!
interesante
pudiste lograr hacerlo
How do you resign the app without the platform key?