Hello everyone, as we all here like Sony style I decided to get rid of AOSP Holo theme and bring up Sony's style in place of it.
{
"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"
}
Requirements:
APK Tool. I recommend you to use VTS
Text editor like Notepad++
First decompile you framework-res.apk from /system/framework/
Go to /res/values/styles.xml
Find: <style name="Theme.Holo" parent="@style/Theme"> and replace it with: <style name="Theme.Holo2" parent="@style/Theme">
Find: <style name="Theme.Holo.Light" parent="@style/Theme.Light"> and replace it with: <style name="Theme.Holo2.Light" parent="@style/Theme.Light">
Find <style name="Theme.DeviceDefault" parent="@style/Theme.Holo"> and replace it with: <style name="Theme.DeviceDefault" parent="@style/Theme.Holo2">
Find <style name="Theme.DeviceDefault.Light" parent="@style/Theme.Holo.Light"> and replace it with: <style name="Theme.DeviceDefault.Light" parent="@style/Theme.Holo2.Light">
Add this to the end:
Code:
<style name="Theme.Holo" parent="@style/Theme.DeviceDefault" />
<style name="Theme.Holo.Light" parent="@style/Theme.DeviceDefault.Light" />
To be like this:
Recompile your framework-res.
Create flashable zip and flash it with recovery.
Reboot and enjoy.
Tell me if worked with you :good:
Click to expand...
Click to collapse
Thanks for the tutorial.
naheel azawy said:
Hello everyone, as we all here like Sony style I decided to get rid of AOSP Holo theme and bring up Sony's style in place of it.
Requirements:
APK Tool. I recommend you to use VTS
Text editor like Notepad++
Click to expand...
Click to collapse
nice
Related
I wanted to give my App a nice "Web 2.0" background like the new Twitter for Android has.
When I set the image as "Background" everything looks fine in Eclipse but on my Desire the image gets blurry and distorted.
kinda like this:
{
"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"
}
Here is the solution:
Basicly I created a bitmap and used it as background.
1. create a xml file within /res/drawable ... lets name it bg_texture.xml for this example.
Fill it with this code, lets assume the image is called backgroundimage.png
Code:
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/backgroundimage"
android:tileMode="repeat"
android:filter="true"
android:dither="true" />
2. Set the "Background" property of the element to @drawable/bg_texture and it should work.
You won't see it in Eclipse, but on the phone it looks nice and crisp.
I see a minor difference i guess. You could just save a slice of their bar... like a 1 pixel wide slice, and just set that as background, and itll stretch across?
Does your image use an alpha channel? That might make it look smoother.
its not the fault of the image I guess, because it looks nice in the editor and other images on Android look nice as well... I guess its a bug in the way Android builds the UI. Kinda similar to the bug with artefacts on wallpapers. So I hoped anyone would know a workaround.
Yay I got the solution. It's from this website.
Edit: I updated the first post with the solution.
This is solutions for black theme for FroyoBread and others ROM change text color in submenu
{
"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. pull framework-res.apk from phone/rom
2. Decompile framework-res.apk to see folder res/values (if you not decompile folder values is not there)
3. in folder values is styles.xml file end change this line
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLarge[B][COLOR="Red"]Inverse[/COLOR][/B]</item>
-Just delete Inverse in last line
and
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimary[B][COLOR="Red"]Inverse[/COLOR][/B]</item>
-Just delete Inverse in last line
-and change this for vertical line in submenu
Code:
<item name="verticalDivider">@drawable/divider_vertical_bright</item>
to
Code:
<item name="verticalDivider">@drawable/divider_vertical_dark</item>
4. compile framework-res.apk
5. and finale push framework-res.apk in phone and reboot or copy whith root expoler and give premision rw-r-r-
Then you will get white text and vertical line in submenu.The expanded menu is for the more window in menu
And Attached zip is for FroyoBread | v023b | only
flash whit xRecovery
Sorry for my bad english!!!
Signing system app? Sign system app could make Fc as i know
why i need to sign?? there's already a sign at a pack of framework!
how do you do this on gingerbread?
Yeah, Mixer 7.0, the best theme ever!
Sorry for spamming
Hey guys.well as you all know some of us have trouble when applying custom theme on 4.4 [KK] and for some reason the back softkey button size is bigger than usual.so i wondered around some place and finding for a similar problem and i found a way.so i decide to share it to you guys in hope that it may also help you..
OK.Lets Go.
1.Decompile your SystemUI.apk (Make a backup 1st!!!)
2.Navigate to res/layout/navigation_bar.xml and open it with notepad++ or other editing tool.
3.Delete
Code:
android:scaleType="center"
From
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
4.Save it and recompile ur SystemUI.apk then put it back where it belong
5.Reboot.Done
Screenshots :
Before
{
"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"
}
After
I found the solution on @whitemamba original thread (http://forum.xda-developers.com/showthread.php?t=2452822) but i decide to remade it for [KK] as the data in the nav_bar.xml has been changed a little.
Credits :
@whitemamba for the original thread
Thank me if it helps
Finally you get fix that..great :fingers-crossed:
Levered said:
Finally you get fix that..great :fingers-crossed:
Click to expand...
Click to collapse
Not a new news buddy. But ok. Good.
From My Xperia Z With XDA App
Rajeev said:
Not a new news buddy. But ok. Good.
From My Xperia Z With XDA App
Click to expand...
Click to collapse
yup..
Rajeev said:
Not a new news buddy. But ok. Good.
From My Xperia Z With XDA App
Click to expand...
Click to collapse
Thanks!
I have posted before about the default white background colour on this phone which only lets you have a white background in Main applications Text / Dailer / Contacts / E-mail and Calendar with no ablity to change it even in themes
I have tried some third party apps overcome this on Dialer and text but you should not have to do this
I have just checked out the Z2 and even the Z3 Mini and its just the same .
Samsung and others give you the light or dark option.
So it looks like my only way is down the custom Rom
Unless any ideas and will custom rom do this
So come on Sony !!!!!!
See Here.
Themes
XperienceD said:
See Here.
Click to expand...
Click to collapse
Thanks just had a quick look seems a very comprehensive guide I did not realise that changing background colours was so complicated
brian566 said:
Thanks just had a quick look seems a very comprehensive guide I did not realise that changing background colours was so complicated
Click to expand...
Click to collapse
For sony apps
open framework-res.apk with winrar (do not extract it) click on res look for drawable-xhdpi and extract it once the folder is on your pc open it and search for semc_bg_light.png edit the .png and then reopen framework-re.apk and go to res/drawable-xhdpi and drag semc_bg_light in to framework-res.apk/res/drawable-xhdpi
For android based apps you would need to decompile your framework-res.apk with bdfreaks apktool and navigate to res/drawable and edit background_holo_light.xml with notepad++ then recompile it
change the red to your color ( ffffff in both areas will make a white background )
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#ffe8e8e8" android:endColor="#ffffffff" android:angle="270.0" />
</shape>
Click to expand...
Click to collapse
i changed my background too look like this
{
"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"
}
Before Android 11, I've adjusted my app to fullscreen easily
My old phone had the camera hole and base buttons outside the screen area, my new phone has a camera hole and the base buttons inside a screen.
With few settings, my app was fullscreen in the old phone.
Styles.xml
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
AndroidManifest.xml
<application
...
android:theme="@style/AppTheme.NoActionBar">
</application>
In my new phone with Android 11, I've searched everywhere on Internet. I've tried many different solutions. In the end, I put in my app the following code in that start of OnCreate().
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
window.attributes.layoutInDisplayCutoutMode =
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
WindowCompat.setDecorFitsSystemWindows(window, false)
else {
@Suppress("DEPRECATION")
window.setFlags(
WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN
)
}
I wanted a narrow margin near the base buttons and the camera hole, like Chrome.
But all can I get is a wide margin between the app and button (downward) and between the app and the camera hole (upward):
{
"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"
}
But I would want a narrow margin:
similar to Chrome browser for Android:
How can I do this programatically?
I haven't been able to find a single clue to my problem in Internet (and StackOverflow)
I also haven't been able to figure out how to identify if a given cell phone has the camera hole on the screen or if it has the base buttons on the screen. It looks like it's based on DisplayCutout, WindowInsets, boundingRectTop and boundingRectBottom, but there is no real and clear usage example in Internet.