{
"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"
}
Hello everyone,,
Still in gingerbread (stock rom). I want to share to you how to add a data toggle in statusbar pulldown for galaxy y duos GT-S6102 and maybe work in another device,,
I hope it is usefull for you
REQUIREMENT :
1. You must know how to decompiling/compiling apk
2. Knowledge about editing xml
3. Notepad++
4. You must have apktool/apkmanager
Let's start
GUIDE :
a. Pull SystemUI from system/app/ and decompile it with apktool. ( I do not explain how to compile, decompile )
b. Download the quickpanel_quick_settings_background.png from attachments.
c. Now open res/layout/quickpanel_quick_settings.xml and add these lines at where you want to show
Code:
<FrameLayout android:layout_width="fill_parent" android:layout_height="98.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_data_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:src="@drawable/quickpanel_icon_data_off" />
<com.android.systemui.statusbar.quickpanel.DataConnectionSettingButton android:textSize="13.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_data_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_dc_text" />
</FrameLayout>
d. replace quickpanel_quick_settings_background.png at SystemUI.apk\res\drawable-ldpi
e. compile systemui
f. push it back system/app
have fun
I will have a try if possible
Sent from my GT-S7500 using xda premium
Nice Guide Bro... update more cool guides
Related
I am trying to edit Settings.apk to look similar to the styling in the Samsung Galaxy. The summary text for various options is blue, I want to do this as well:
{
"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"
}
I have been trying to edit this, but the xml files dont have TextViews, they are Android PreferenceScreen's. Is there a way to change this? I tried adding 'android:textColor=........' but obviously this does not apply to PreferenceScreen.
Is there another area inside the Settings.apk that will define summary text color for PreferenceScreen? I have searched Google and only find the same unanswered post on about 10 different sites.
Sample code from wireless_settings.xml:
Code:
<PreferenceScreen android:title="@string/network_settings_title" android:summary="@string/network_settings_summary" android:dependency="toggle_airplane">
<intent android:targetPackage="com.android.phone" android:action="android.intent.action.MAIN" android:targetClass="com.android.phone.Settings" />
</PreferenceScreen>
The associated strings.xml entry:
Code:
<string name="network_settings_summary">Set options for roaming, networks, APNs</string>
public.xml entry:
Code:
<public type="string" name="network_settings_summary" id="0x7f09027a" />
Thank you!
PS: If you have the Settings.apk from a Galaxy S phone, I would love to obtain a copy so I can inspect how they have done thins
i'm not pretty sure, but i have same problem with u, i think you can find TextView on framework.jar, not settings.apk. there is text view.smali inside jar file.
Hi! Luckely, Ice Cream Sandwhich, have become stable enough for daily use on the beloved HTC Hero At least as if you don't use camera But what we do not have is previews in the fancy recent apps dialog. So I decided to make a simple mod to make it a little more appealing and I decided to share it in case there are other phones with the same problem
The mods here are done in the SystemUI.apk. I'm using APK-multitool, but any tool should work as long as you manage to decompile and compile the systemui
Change the stuff I have highlightened
res/layout-land/status_bar_recent_item:
Code:
<FrameLayout android:id="@id/app_thumbnail" android:background="[B]@drawable/recents_bg"[/B] android:visibility="invisible" [B]android:layout_width="@dimen/status_bar_recents_thumbnail_width" [/B][B]android:layout_height="@dimen/status_bar_recents_thumbnail_height" [/B]android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
res/layout-port/status_bar_recent_item:
Code:
<FrameLayout android:id="@id/app_thumbnail" [B]android:background="@drawable/recents_bg"[/B] android:visibility="invisible" [B]android:layout_width="@dimen/status_bar_recents_thumbnail_width" android:layout_height="@dimen/status_bar_recents_thumbnail_height" [/B]android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_toRightOf="@id/app_label" android:layout_alignParentTop="true">
Now you can add the png (name it recents_bg) you want in the drawable/*dpi folder and compile
One thing to mention is that it will have a a dark overlay. To get rid of this change the android:foreground to recents_bg instead
I hope I haven't forgotten too much and that some people find it useful
{
"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"
}
Hey people,
After porting the Xperia JB lockscreen to My device, i thought of putting a guide that's simple and easy, so that everyone can try doing it on their own..
For CM9 based ROM's:victory:
Assuming you Know how to De/Re-compile....
Here's
STEP 1: Decompile your android.policy.jar
And put THESE files into \smali\com\android\internal\policy\impl
Done.Recompile your android.policy
STEP 2: Add THIS to \framework
STEP 3: Add THIS to \fonts
STEP 4: And THIS to \etc\permissions
STEP 5: Now for the Lockscreen Settings(in order to change your wallpaper)
Decompile you Settings.apk
Navigate to \res\xml
Open settings_headers.XMl
Add the following Lines
Code:
<header android:icon="@drawable/ic_settings_lockscreen" android:id="@id/lock_screen_settings" android:title="Xperia Settings">
<intent android:targetPackage="com.sonyericsson.lockscreen.uxpnxtjb" android:action="android.intent.action.MAIN" android:targetClass="com.sonyericsson.lockscreen.settings.Setup" />
</header>
{
"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"
}
Add this to ids.xml
(search for it, if you have it ignore.)
Code:
<item type="id" name="lock_screen_settings">false</item>
Add this to strings.xml
(search for it, if you have it ignore.)
Code:
<string name="lock_screen_title">Lock screen</string>
Recompile your Settings.apk
STEP 6: Add THIS to \system\app
STEP 7: For wallpapers, Add THIS to \etc\
All done .
SCREENSHOTS:
CREDITS:
Adi Aisiteru Reborn for making THIS compatible for CM9:good:
(don't forget to thank him too)
Sky_Walker
Thilina C for the wallpapers
You, for trying it out!
Click that thanks button if you like this MOD!
Post your feedback's
please! you could please making one for cm10.1? I have a xperia arc s
Introduction
Guys you already heard about this Feature on CM based ROMs like OMNI,Resurrection, etc....
These Header images are switching automatically according to the hour and some special days like Christmas and New Year's.
Tutorial is very EASY to do, Newbies come..
Here's how it looks:
{
"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"
}
Tutorial
Decomplie your SystemUI.apk
Download my SystemUI.apk.zip and Marge all the files (Check Attachment)
then
Go to res/layout/status_bar_expanded_header.xml (open it using notepad++)
find this code
Code:
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res-auto">
then paste this code below
Code:
<com.lenox.Contextual android:layout_width="@dimen/notification_panel_width" android:layout_height="120.0dip" />
that's it
Now recompile the SystemUI.apk and sign it and replace .
Install the Contextual Lenox Settings.apk to Enable & Disable Header (Check Attachment)
I didn't use any files from any ROMs...
all CREDIT goes to my old SGY Friends and Team Lenox Evolution
Joko N
PineappleOwl
tentenponce
Dont Forget to mention me if you used my work
that feels me happy
Nice job with posting it reserved for myself
Would love to have this one Android M, or N for that matter.
Great job with the tutorial! :good:
I am using BottomNavigationview and I want to animate the height of it, so it is extendable. My problem is that the Items stay centered vertically, but they should have a fix top-margin of e.g. 5dp. How is it possible to move them up with the top of the navbar?
My XML for one of five Items (with text!) (in menu folder):
HTML:
<item
android:id="@+id/testid1"
android:icon="@drawable/ic_test1"
android:title="@string/Overview"
android:state_pressed="true"
/>
The XML for the Navbar:
HTML:
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_gravity="bottom"
android:background="@color/white"
app:elevation="0dp"
app:itemIconSize="26dp"
app:itemIconTint="@color/NavBarGrey"
app:itemRippleColor="#B5F1F1F1"
app:itemTextColor="@color/NavBarGrey"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:menu="@menu/bottom_nav_menu" />
Here the Kotlin-Code for the "up" animation:
Code:
val anim = ValueAnimator.ofInt(convertDpToPixel(56.0).toInt(), convertDpToPixel(400.0).toInt())
anim.addUpdateListener { valueAnimator ->
val `val` = valueAnimator.animatedValue as Int
val layoutParams: ViewGroup.LayoutParams =
bottom_navigation.getLayoutParams()
layoutParams.height = `val`
bottom_navigation.setLayoutParams(layoutParams)
}
anim.setInterpolator(OvershootInterpolator(1.0f))
anim.duration = 450
anim.start()
Here is how it looks right now.
{
"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"
}
The round items should move up to the top like the blue button (which is an extra object and not part of the navbar)