{
"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 guys who knows the names of images for orange and gray part of this sliders??
The bar is in the file progress_horizontal.XML in drawable folder and handle is in drawable mdpi folder can't remember the name of PNG.
Sent from my GT540 using XDA App
Yeah, but images are most important for me. Can't find similar images..
___________
Written with Tapatalk on GT540
Am looking forward, I really need is guys.
I found it: http://code.google.com/p/amarino/so...wable/progress_horizontal.xml?spec=svn15&r=15
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<corners android:radius="5dip" />
<gradient
android:startColor="#ff9d9e9d"
android:centerColor="#ff5a5d5a"
android:centerY="0.75"
android:endColor="#ff747674"
android:angle="270"
/>
</shape>
</item>
<item android:id="@android:id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5dip" />
<gradient
android:startColor="#80ffd300"
android:centerColor="#80ffb600"
android:centerY="0.75"
android:endColor="#a0ffcb00"
android:angle="270"
/>
</shape>
</clip>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<corners android:radius="5dip" />
<gradient
android:startColor="#eee"
android:centerColor="#999"
android:centerY="0.75"
android:endColor="#bbb"
android:angle="270"
/>
</shape>
</clip>
</item>
</layer-list>
Click to expand...
Click to collapse
So which value for bar height??
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.
This should work on any sense based ROM. I know it works on the Thunderbolt/EVO/EVO 3D. I'll be adding how to invert the Mms.apk once I know how. For now, I'm using a themed Mms.apk provided for me on my ROM.
How to change the Mms.apk font color
Located in Mms.apk/res/
Values>styles.xml
Code:
<style name="message_text_editor_style_default">
<item name="android:textSize">@com.htc:dimen/input_default_m</item>
<item name="android:textColor">#ff000000</item> [B] <<<<<-----This changes the color of the input font seen in very botom message body. Also houses the send button[/B] (Pictured Below)
<item name="android:gravity">top|left|center</item>
<item name="android:background">#ff000000</item>
<item name="android:paddingLeft">@dimen/common_layout_margin_horizontal</item>
<item name="android:paddingTop">@dimen/text_editor_padding_top</item>
<item name="android:paddingRight">@dimen/compose_bottom_editor_paddingRight</item>
<item name="android:paddingBottom">@dimen/text_editor_padding_bottom</item>
<item name="android:scrollbars">none</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:minHeight">@dimen/compose_bottom_editor_minHeight</item>
<item name="android:capitalize">sentences</item>
<item name="android:autoText">true</item>
{
"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"
}
colors>list_item_primary_text.xml <<<<Controls the text within the message bubble. (Pictured Below)
Changed all to black
colors>list_item_secondary_text.xml <<<<Controls the time stamp text within the message bubble (Pictured Below)
Changed all to black
Once I know how to correctly invert the Mms.apk as shown, I'll be sure to document that as well.
Final Result:
Keep it up bro!
Hey there! have you idea how to change this?
@op
how to change the link color plz see ss...
Galaxy Y GT-S5360
GB
Long-Press Menu Text Color (not the Menu Button "bottom popup menu")
i'm having a hell of a time finding the necessary XML edits to change the text color of context (long-press) menus and i have edited possibly every text appearance/color attribute of the framework in the styles.xml and a few other XML's in the /layout folder and i still can't get it. There seems to be no info at any forums about this specifically (searched forever).
Any thoughts? This is quite frustrating.
MY OS: non-HTC Vanilla Android Froyo
Willing to give donation in exchange for information to anyone who can help me........
This is not the final answer but it will point you in the direction. Here's the parent control that will affect a lot of text. You can then narrow it down to whichever child style that you only want it to affect--unless of course, you don't mind all of that text to be affected.
In framework-res.apk open styles.xml in \res\values in a text editor.
Look for the style
<style name="Widget.TextView" parent="@style/Widget">
<item name="textAppearance">?textAppearanceSmall</item>
</style>
Add the line
<item name="textColor">#ffff0000</item>
where #ffff0000 is any color that you want, in this example it is red, or use the color variables such as "?primaryinverse", etc.
to this so that it now looks like:
<style name="Widget.TextView" parent="@style/Widget">
<item name="textAppearance">?textAppearanceSmall</item>
<item name="textColor">#ffff0000</item>
</style>
This will result in these types of 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"
}
{
"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
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)