Requirements
1.Brain & Knowledge about Decompiling & Recompiling
2.Tool for Decompilng & Recompiling
3.Settings.apk
GUIDE
1. decompiled files Settings.apk
2. Go to the folder
smali / com / android / settings / applications and
open file LinearColorBar.smali
3. Locate the following
line: .method public constructor (Landroid / content /
Context; Landroid / util / AttributeSet V then the code
below find the following code: .prologue const v0,
-0x23d7e9
4. Replace -0x23d7e9 with color code
you want (-0x23d7e9 code is somewhat red color)
5.
Save, recompile. sign, and push it to the system
Here's
a list of color codes: White = 0x0 Red = -0x10000
Yellow = -0x100 Pink = -0xFF01 Blue = -0xFFFF01
Green = -0xFF0100
Search for other by yourself & share here
{
"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"
}
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.
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:
In some ROM the E911 service location is active and persistance.
This little guide help you if you want remove it
With ES File Manager with root permission go to:
Code:
SYSTEM/CUSTOMIZE/CID
{
"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"
}
Then open file default.xml and then search for the string:
Code:
<Item name = tipo "enable_E911_for_US_only" = "boolean"> true </ item>
Replace true with false:
Code:
<Item name = tipo "enable_E911_for_US_only" = "boolean"> false </ item>
Reboot.
E911 service location is out of location setting:good:
BEFORE
AFTER
Tested on Wolla 6.2 Sense 8 and S-Rom SL 1.0.0
Greats in viper 6.1.
Sent from my HTC One M8 using XDA-Developers mobile app
Can someone explain what is this? and how it affects us ? this E911?
@kalel77, does this remove the sprint testicle icon too? i want to remove that presistent icon from status bar....
Callliope said:
Can someone explain what is this? and how it affects us ? this E911?
Click to expand...
Click to collapse
For me, in Italy this service is not necessary. And I went to remove it then[emoji4]
Inviato dal mio HTC M8 utilizzando Tapatalk
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)
Symptom
While developing a card, I used a pseudo-class for a component to implement a color changing effect. However, the color cannot be restored.
For example, the original background color was as follows.
{
"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"
}
This figure shows the new background color after using the pseudo-class.
In normal cases, the card’s background color is changed upon tapping, and will return to the original color when you lift your finger.
This problem is caused by incomplete pseudo-classes for cards supported by Huawei Quick App Loader. Even so, there’s still an easy solution.
Solution
Simply add a tap event to the component using the pseudo-class. No logic processing is needed.
Sample code:
CSS:
<div class="sitetype_box" widgetid="8e4bf1ca-f716-46f8-8614-16d1b35002c5" onclick="test">
</div>
CSS style:
.sitetype_box {
flex-direction: column;
background-color:#FFBF00;
padding: dpConvert(0) dpConvert($elementsMarginHorizontalL) dpConvert(0) dpConvert($elementsMarginHorizontalL);
}
/** Pseudo-class */
.sitetype_box :active{
background-color: #E40078;
}
Method:
JavaScript:
test(){
console.log("message");
}
Reference:
Pseudo-classes for quick apps:
https://developer.huawei.com/consumer/en/doc/development/quickApp-References/quickapp-style#h1-1578402521212