Button text color - Android Q&A, Help & Troubleshooting

Hello everyone
I'm building an awesome black theme for my note 3 SM-N900 and finished below apps
framework-res
twframework-res
systemUI
calculator
Clock
Multiwindow
and I'm currently in Music player and I'm facing a weired problem here
in my "Sound alive" window I want to modify bottom effect like "Tube amp" , "Virtual 7.1 ch" , . . . button text (other botton will appear when scrolling buttons to the left) to change color when I select them
{
"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's the layout xml of these buttons :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout androidrientation="horizontal" android:layout_marginTop="50.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:showDividers="middle"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:id="@id/new_soundalive_effects_none" android:layout_marginLeft="2.0dip" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/none" android:layout_marginLeft="35.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_none" android:src="@drawable/music_soundalive_card_none_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_tube_amp_effect" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/tube_amp_effect" style="@style/SoundAliveEffectTitle" android:layout_marginLeft="25.0dip" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_tube_amp_effect" android:src="@drawable/music_soundalive_card_tubeamp_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_virtual_71_ch" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/virtual_71_ch" android:layout_marginLeft="17.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_virtual_71_ch" android:src="@drawable/music_soundalive_card_virtual71_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_studio" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/studio" android:layout_marginLeft="20.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_studio" android:src="@drawable/music_soundalive_card_studio_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_club" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/club" android:layout_marginLeft="19.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_club" android:src="@drawable/music_soundalive_card_room_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_concert_hall" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/concert_hall" android:layout_marginLeft="17.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_concert_hall" android:src="@drawable/music_soundalive_card_hall_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
</LinearLayout>
Click to expand...
Click to collapse
and here's the parts of styles.xml file that is referred to in layout file above:
<style name="SoundAliveEffectTitle">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@color/soundAlive_effect_text_color</item>
<item name="android:ellipsize">marquee</item>
<item name="androidaddingLeft">@dimen/new_soundalive_effect_subtext_paddingLeft</item>
<item name="android:layout_width">@dimen/new_soundalive_effect_subtext_width</item>
<item name="android:focusable">true</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">7.0dip</item>
<item name="android:singleLine">true</item>
<item name="android:fontFamily">sec-roboto-regular</item>
<style name="SoundAliveEffectLayout">
<item name="android:background">@drawable/soundalive_indicator_ripple_material</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">210.0dip</item>
<item name="android:layout_height">88.0dip</item>
<item name="android:layout_marginLeft">3.0dip</item>
<item name="android:layout_marginTop">5.0dip</item>
<item name="android:layout_marginBottom">5.0dip</item>
<style name="SoundAliveEffectBottomLine">
<item name="android:background">@color/sound_alive_card_line_off</item>
<item name="android:layout_width">198.0dip</item>
<item name="android:layout_height">3.0dip</item>
<item name="android:layout_marginBottom">4.0dip</item>
<item name="android:layout_alignParentBottom">true</item>
<item name="android:layout_centerHorizontal">true</item>
<style name="SoundAliveEffectImage">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">12.0dip</item>
<item name="android:layout_alignParentRight">true</item>
<item name="android:layout_marginEnd">12.0dip</item>
Click to expand...
Click to collapse
I also create a xml file in color folder by the name of "soundAlive_effect_text_color" and here's it's contents:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:color="#ffffffff" />
<item android:color="#ff555555" />
</selector>
Click to expand...
Click to collapse
I also used "state_checked" and "state_checkable" and "state_activated" but nothing work and I couldn't get the color of button I choose to change
but "state_pressed" work fine here
I want the color of selected button text to be white and others be 50% transparent white ( a little darker)
*** buttons nature function is like this:
ether "None" button could be selected or one of the other effect buttons
can anyone help me fix this problem???

anyone????

Related

[Guide]{MOD][UI}{ICS/FXP/JB}SystemUI look like Flyme os

this is me first posting in xda...
The first opportunity .. I try to share a little trick to modify SystemUI.apk (ICS)
Requirement:
-understand how to decompile and compile using apktool or something
how to MOD????
read carefully the text below
previously downloaded this as a complement:
https://www.dropbox.com/s/xlv0r4cmg6fe2ko/SmaliTB_2.zip
https://www.dropbox.com/s/s2teuqzpz2qtbrl/carrier_logo.png
I use apktool
pull systemUI.apk in the folder system / app and framework-res.apk and SemcGenericUxpRes.apk in system / framework
to u folder apktool
open apktool..
instal framework-res.apk and SemcGenericUxpRes.apk
Code:
apktool if framework-res.apk (enter) and apktool if SemcGenericUXPRes.apk (enter)
again... decompile SystemUI.apk
Code:
apktool d SystemUI.apk
open folder SystemUI/res/layout/Status_bar.xml
Compare this... code to u xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/statusbar_costum_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:gravity="left|center" android:id="@id/carrier_logo_id" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/carrier_logo" android:scaleType="fitCenter" android:adjustViewBounds="true" />
<LinearLayout android:orientation="vertical" android:paddingLeft="6.0dip" android:paddingRight="0.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="right" android:paddingRight="3.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.IconPartitioner android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.IconPartitioner>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="16.0dip" android:gravity="left|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:paddingRight="3.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="right" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stat_no_sim" android:background="@drawable/stat_sys_no_sim" android:paddingLeft="2.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:singleLine="true" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:layout_gravity="left|center" android:id="@id/name_carrier_id" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/carrier_name_abal" android:singleLine="true" style="@style/StatusBarNotificationText" />
<TextView android:layout_gravity="left|center" android:id="@id/battery_text" android:visibility="gone" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" style="@style/StatusBarNotificationText" />
<ImageView android:id="@id/battery" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
next..
open folder SystemUI\smali\com\android\systemui\statusbar\policy
copy and paste
Traffic$1.smali
Traffic$2.smali
Traffic$3.smali
Traffic$SettingsObserver.smali
Traffic.smali
next...
open open ids.xml in folder SystemUI/res/value/ids.xml
add this code
Code:
<item type="id" name="traffic">false</item>
<item type="id" name="carrier_logo_id">false</item>
<item type="id" name="name_carrier_id">false</item>
The above </resources>
like this
Code:
<item type="id" name="traffic">false</item>
<item type="id" name="carrier_logo_id">false</item>
<item type="id" name="name_carrier_id">false</item>
</resources>
next...
open strings.xml in folder SystemUI/res/value/strings.xml
add this code
Code:
<string name="carrier_name_abal">Paboya</string>
text Paboya you can replace up to you
The above </resources>
like this
Code:
<string name="carrier_name_abal">Paboya</string>
</resources>
again...
open styles.xml in folder SystemUI/res/value/styles.xml
add this code
Code:
<style name="TextAppearance.StatusBar.Traffic" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
The above </resources>
like this
Code:
<style name="TextAppearance.StatusBar.Traffic" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
</resources>
next..
open folder SystemUI\res\drawable-hdpi add carrier_logo.png
finish.......
and recompile...
Code:
apktool b SystemUI
next step...
decompile framework-res.apk and open dimens.xml
find this code:
Code:
<dimen name="status_bar_height">25.0dip</dimen>
change dpi to...:
Code:
<dimen name="status_bar_height">40.0dip</dimen>
next find again this code:
Code:
<dimen name="status_bar_icon_size">25.0dip</dimen>
change dpi to...:
Code:
<dimen name="status_bar_icon_size">30.0dip</dimen>
can you adjust the dip changes
finish.........
recomnpile again...
Code:
apktool b framework-res
done..........
push SystemUI.apk and framework-res.apk
SystemUI.apk to system/app
framework-res.apk to system/framework.
reboot.....
download For ICS:
for who want to try here I am using stock ics 54 if you want to try on the next or previous version ....
I am not responsible if there bootlop
but the possibility systemUI.apk can be used in all the rom.
tested b.10/54/89
https://www.dropbox.com/s/p5ej8hoxz7dw438/flymelikeUI.zip
flash on cwm...
flymelikeUI.zip
wipe cache n dalvic if any problem
download For FXP:
https://www.dropbox.com/s/w8n2lhg51gz76qe/FXPflymelikeUI.zip
flash on cwm...
FXPflymelikeUI.zip
wipe cache n dalvic if any problem
Dowload for JB:
Soon
ss ICS:
{
"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"
}
ss FXP:
may be useful if there is a mistake you can tell me :highfive:
And the result ? Any screenshots ?
dude thats too much....find a way to create a flashable zip...take help from other members..
Sory
sorry was trying to make a thread ... I am a junior member
yes
niku4uster said:
dude thats too much....find a way to create a flashable zip...take help from other members..
Click to expand...
Click to collapse
wait dude
pretty cool thanks
tut can get a little polished though.. no offence
Me‎ said:
pretty cool thanks
tut can get a little polished though.. no offence
Click to expand...
Click to collapse
sorry in advance there is little error
for guidance
More screenshoot
....
Ruliindrapraja said:
More screenshot
♪thx dude
Click to expand...
Click to collapse
:good: AWEWE SOME..LOL
Is there a way to make this work on jb would be amazing if it did
Sent from my LT22i using xda premium
Please port it to cm9 systemui!!
Enviado desde mi Xperia U usando Tapatalk 2
Please hepl me! Make a carrier_logo for xperia sola!
Thank U very much!
aybykut3 said:
Please hepl me! Make a carrier_logo for xperia sola!
Thank U very much!
Click to expand...
Click to collapse
Here you go, made it fast
Edit: Hmm I can't post a link because I don't have 10 posts...
I will send it in PM
Thanks!Very good!5+!!!!!
Android 4.0.4,stok,1.10
Sent from my ST25i using xda premium
Sent from my ST25i using xda premium
CONdemmedNORmal said:
Is there a way to make this work on jb would be amazing if it did
Sent from my LT22i using xda premium
Click to expand...
Click to collapse
Either way ... maybe you can be patient I will make in JB
zie.do2y said:
Either way ... maybe you can be patient I will make in JB
Click to expand...
Click to collapse
Well I was being patient I wasn't exactly going on saying why isn't this for jb or any crap like that I was simply asking if it would be available
Sent from my LT22i using xda premium
aybykut3 said:
Please hepl me! Make a carrier_logo for xperia sola!
Thank U very much!
Click to expand...
Click to collapse
copy thi code:
<ImageView android:gravity="left|center" android:id="@id/carrier_logo_id" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/carrier_logo" android:scaleType="fitCenter" android:adjustViewBounds="true" />
to StatuSbar.xml place it as you wish ...
Enter carrier_logo.png to drawable-hdpi folder
open idS.xml add this code:
<item type="id" name="carrier_logo_id"> false </ item>
recompile ... done
CONdemmedNORmal said:
Well I was being patient I wasn't exactly going on saying why isn't this for jb or any crap like that I was simply asking if it would be available
Sent from my LT22i using xda premium
Click to expand...
Click to collapse
I have not tried to apply it to jb but One friend I have tried and succeeded ... I am still waiting for JB really fix

[guide][GB][will be update] modding SystemUI and Framework

SYSTEMUI.APK
1. ADDING SECONDS TO STATUSBAR
this is old trick, i got it from my friend.
{
"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"
}
Stuff
1. SystemUI.apk
2. Tools to decompile/compile
3. Notepad++ or other
Tuts:
1. decompile systemui.apk
2. open statusbar.xml
3. search
Code:
<com.android.systemui.statusbar.Clock
then, replace with
Code:
<DigitalClock
4. then, you need to resize your text size and replace hex of the text color like this
Code:
android:textSize="14.0dip" android:textStyle="bold" android:textColor="#ffffffff"
or change to whatever you want
5. save and compile
6. push/flash it via CWM
NB: if you have edt tweaks on clock statusbar, you'll loss the edt
FRAMEWORK-RES.APK
Stuff:
1. framework-res.apk
2. tools to compile/decompile
3. notepad++
1. HOW TO CHANGE COLOR OF PROGRESS BAR ON STOCKROM
Tuts:
1. decompile framework-res.apk
2. make a two 9.png with size 18x18 and give name whatever you want. for example
gambaron.9.png (this is for progress bar)
gambaroff.9.png (this is for background of progress bar)
Click to expand...
Click to collapse
3. put the image to inside of folder drawable
4. open progress_horizontal.xml on framework-res/res/drawable
5. search it
Code:
<item android:id="@id/background">
<shape>
<corners android:radius="4.659973dip" />
<gradient android:startColor="#ff989898" android:endColor="#ff686868" android:angle="270.0" android:centerColor="#ff686868" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="4.659973dip" />
<gradient android:startColor="#5053ff53" android:endColor="#80029d02" android:angle="270.0" android:centerColor="#8030a030" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="4.659973dip" />
<gradient android:startColor="#ff53ff53" android:endColor="#ff029d02" android:angle="270.0" android:centerColor="#ff30a030" />
</shape>
</clip>
</item>
and replace with
Code:
<item android:id="@id/background">
<nine-patch android:src="@drawable/gambaroff" />
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="4.659973dip" />
<gradient android:startColor="#5053ff53" android:endColor="#80029d02" android:angle="270.0" android:centerColor="#8030a030" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<nine-patch android:src="@drawable/gambaron" />
</clip>
</item>
6. save, compile and push/flash it
2. HOW TO CHANGE USB STORAGE STOCKROM WITH TOUCH THE DROID TO CONNECT USB
screenshot:
Tuts:
1. go to layout and open usb_storage_activity.xml
2. replace all inside file to
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center" android:id="@id/main" android:padding="18.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<Button android:layout_gravity="center_horizontal" android:id="@id/mount_button" android:background="@drawable/usb_android" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<Button android:layout_gravity="center_horizontal" android:id="@id/unmount_button" android:background="@drawable/usb_android_connected" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/icon" android:layout_width="0.0dip" android:layout_height="0.0dip" android:src="@color/transparent" android:layout_centerHorizontal="true" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true">
<TextView android:textSize="24.0sp" android:gravity="center" android:id="@id/banner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:text="@string/usb_storage_title" android:layout_below="@id/icon" android:layout_centerHorizontal="true" />
<TextView android:textSize="14.0sp" android:gravity="center" android:id="@id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:text="@string/usb_storage_message" android:layout_below="@id/banner" />
</LinearLayout>
<RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="100.0dip" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true">
<ProgressBar android:id="@id/progress" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:indeterminate="true" style="?android:attr/progressBarStyle" />
</RelativeLayout>
</RelativeLayout>
3. save and compile
4. now push or flash it via CWM
3. CHANGE PERCENT OF BATTERY STOCKROM TO 1-100
Tuts:
1. you need to download rhis first https://www.dropbox.com/s/x1nb15u8cxeyorp/Music.rar
2. ekstrak, then move stat_sys_battery.xml and stat_sys_battery_charge.xml of the file that you downloaded earlier to the drawable folder
3. move image from the file that you download to the drawable-ldpi
4. then save and compile
5. flash/push
nice guide
Sent from my GT-S5360 using Tapatalk 2
I lost my phone today, so sorry I was not able to continue this thread again. and all my project also stopped

[GUIDE]How To Make Clickable Logo

Hello Master And All Member Of xda.today im gonna release something i got from darkcurse theme from lenox 2.2.
2.Open res/layout/statusbar expanded.xml find this
<com.android.systemui.statusbar.NotificationLinearLayout androidrientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="99.0" androidverScrollMode="ifContentScrolls">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_plmn_background" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_plmn_background" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:layout_gravity="center" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="@drawable/quickpanel_plmn_background" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/latestTitle" android:layout_alignLeft="@id/latestTitle" />
</RelativeLayout>
</ScrollView>
</com.android.systemui.statusbar.NotificationLinearLayout>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
replace with this
<com.android.systemui.statusbar.NotificationLinearLayout androidrientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="100.0">
<LinearLayout androidrientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="0.0dip" android:baselineAligned="false" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="99.0" androidverScrollMode="ifContentScrolls">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_plmn_background" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_plmn_background" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:layout_gravity="center" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="@drawable/quickpanel_plmn_background" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/latestTitle" android:layout_alignLeft="@id/latestTitle" />
</RelativeLayout>
</LinearLayout>
</ScrollView>
<SlidingDrawer android:id="@id/SlidingDrawer" android:layout_width="fill_parent" android:layout_height="135.0px" android:handle="@id/handle" android:content="@id/content">
<Button android:textColor="#00ffffff" android:id="@id/handle" android:background="@drawable/about_knob_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Tap to Expand" />
<LinearLayout android:id="@id/content" android:layout_width="fill_parent" android:layout_height="51.0px">
<include layout="@layout/device_info" />
</LinearLayout>
</SlidingDrawer>
</com.android.systemui.statusbar.NotificationLinearLayout>
4.add this to res/value/ids.xml
<item type="id" name="device_info">false</item>
<item type="id" name="SlidingDrawer">false</item>
<item type="id" name="handle">false</item>
above </resource>
5.after that move all file that download from attachment to correct place
Credit:All Lenox Dev
Me:laugh:
If This thread illegal please closed it.
im just newbie that very noob.
​
just a tip - if you are going to post code please wrap it in code tags - as
1 - makes the thread look much neater
2 - you dont get emoji in the code (you can also disable emoji by ticking the box to Disable smilies in text when you post under additional options)
marcussmith2626 said:
just a tip - if you are going to post code please wrap it in code tags - as
1 - makes the thread look much neater
2 - you dont get emoji in the code (you can also disable emoji by ticking the box to Disable smilies in text when you post under additional options)
Click to expand...
Click to collapse
Im sorry i will fix sory.im just noob newbie:crying:
any ss...
You write too fast, i do not understand : where is the res/layout/statusbar?
And do you have a screen of the result it would be?
Killnolife said:
You write too fast, i do not understand : where is the res/layout/statusbar?
And do you have a screen of the result it would be?
Click to expand...
Click to collapse
He mean statusbar_expanded.xml
Screenshot Added
Himan Boro said:
any ss...
Click to expand...
Click to collapse
hehe sory sir.im little bit busy.but his the screenshot im tak from the owner
op
please edit your 1st post
Code:
youre xml/smali etc
[*/CODE]
Replace (*)
Like this
[CODE]
<item type="id" name="device_info">false</item>
<item type="id" name="SlidingDrawer">false</item>
<item type="id" name="handle">false</item>
Minions_Army said:
op
please edit your 1st post
Code:
youre xml/smali etc
[*/CODE]
Replace (*)
Like this
[CODE]
<item type="id" name="device_info">false</item>
<item type="id" name="SlidingDrawer">false</item>
<item type="id" name="handle">false</item>
Click to expand...
Click to collapse
thaxs sir
Note:Edited

[MOD][GUIDE] Fullscreen call S5 V2.0

Thank @Mr.Luong™
I only mod it and tested on Rom RC Elite teams S5 port.
Other roms need test because i haven't phone S5
Update V2.0
. Bug fix Show caller information (mod transparent)
. Bug fix Dialer
Click to expand...
Click to collapse
Download and flash via recovery.
http://goo.gl/0VlKt2
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"
}
3. GUIDE
Thank @lacoursiere18
- http://forum.xda-developers.com/showpost.php?p=55403530&postcount=12
- http://forum.xda-developers.com/showpost.php?p=55426850&postcount=18
- http://forum.xda-developers.com/showpost.php?p=55426856&postcount=19
cooooool man :good::laugh:
thanks
Will try on rooted stock version
Sent from my SM-G900FD using Tapatalk
zyasin said:
Will try on rooted stock version
Sent from my SM-G900FD using Tapatalk
Click to expand...
Click to collapse
No. Only for deodex.
If it's stock. You need delete incallui.odex
I want InCallUI Stock Rom ANG2.
Do you have it?
InchaiMix said:
I want InCallUI Stock Rom ANG2.
Do you have it?
Click to expand...
Click to collapse
No. But you can try my mod. Can it will work
@brhoomy101 its same as u do it in another forum in ce4arab thanks for ur work bro
Sent from my SM-G900F using Tapatalk
---------- Post added at 07:05 PM ---------- Previous post was at 07:03 PM ----------
InchaiMix said:
I want InCallUI Stock Rom ANG2.
Do you have it?
Click to expand...
Click to collapse
Hey bro its working just replace incalui in system/app
Sent from my SM-G900F using Tapatalk
thanhfhuongf said:
Thank @Mr.Luong™
I only mod it and tested on Rom RC Elite teams S5 port.
Other roms need test because i haven't phone S5
Download and flash via recovery.
1. For photo stock
http://goo.gl/l6XC7v
2. For photo hot girl
http://goo.gl/D2QCw0
Click to expand...
Click to collapse
in my phone it stuck all the time.
WHERE is the restore to stock file please??
Thanks for work
Sent from my SM-G900H using Tapatalk
---------- Post added at 07:42 AM ---------- Previous post was at 07:21 AM ----------
Not working on G900H
Sent from my SM-G900H using Tapatalk
thereassaad said:
@brhoomy101 its same as u do it in another forum in ce4arab thanks for ur work bro
Sent from my SM-G900F using Tapatalk
---------- Post added at 07:05 PM ---------- Previous post was at 07:03 PM ----------
Hey bro its working just replace incalui in system/app
Sent from my SM-G900F using Tapatalk
Click to expand...
Click to collapse
no
from http://forum.xda-developers.com/showthread.php?t=2512034
I share It only I'm not a fan of Call MODs & I do not do it
Would you mind adding a Guide/How-to with this please.
So that we may add to already modified roms.
Thank you - TD
Mike31285 said:
in my phone it stuck all the time.
WHERE is the restore to stock file please??
Click to expand...
Click to collapse
keage said:
Thanks for work
Sent from my SM-G900H using Tapatalk
---------- Post added at 07:42 AM ---------- Previous post was at 07:21 AM ----------
Not working on G900H
Sent from my SM-G900H using Tapatalk
Click to expand...
Click to collapse
give me your incallui.apk
I will mod it for you.
tdunham said:
Would you mind adding a Guide/How-to with this please.
So that we may add to already modified roms.
Thank you - TD
Click to expand...
Click to collapse
Write guide are difficult for me. but I'll just give you the required files. You're free to compare and test offline.
1. Primary_call_infor.xml
2. In_call_button_voice_fragment.xml
3. Dimens.xml
4. Colors.xml
Good luck
thanks3
thanhfhuongf said:
give me your incallui.apk
I will mod it for you.
Write guide are difficult for me. but I'll just give you the required files. You're free to compare and test offline.
1. Primary_call_infor.xml
2. In_call_button_voice_fragment.xml
3. Dimens.xml
4. Colors.xml
Good luck
Click to expand...
Click to collapse
Thanks but i ve deleted and installed a new rom and everything is ok now.
@thanhfhuongf THIS and my file in callui you can edit it for me, please?
tdunham said:
Would you mind adding a Guide/How-to with this please.
So that we may add to already modified roms.
Thank you - TD
Click to expand...
Click to collapse
thanhfhuongf said:
give me your incallui.apk
I will mod it for you.
Write guide are difficult for me. but I'll just give you the required files. You're free to compare and test offline.
1. Primary_call_infor.xml
2. In_call_button_voice_fragment.xml
3. Dimens.xml
4. Colors.xml
Good luck
Click to expand...
Click to collapse
If you want I can post one.. I will pull it apart and show all the changes needed.. Just a thought if it is ok with the OP
I made, ported similar from the original Fullscreen mod for 4.3.. Glad you guys got a chance to work on this..
Looks like a TERRIFIC job!
Got it all torn apart... Let me know if a tutorial is okay with you guys.. If not I will keep it to myself.. Thanks again for you guys work
lacoursiere18 said:
If you want I can post one.. I will pull it apart and show all the changes needed.. Just a thought if it is ok with the OP
I made, ported similar from the original Fullscreen mod for 4.3.. Glad you guys got a chance to work on this..
Looks like a TERRIFIC job!
Click to expand...
Click to collapse
lacoursiere18 said:
Got it all torn apart... Let me know if a tutorial is okay with you guys.. If not I will keep it to myself.. Thanks again for you guys work
Click to expand...
Click to collapse
Yes. You can write a Guide for everyone.
Only need thank to me and Mr.Luong.
thanhfhuongf said:
Yes. You can write a Guide for everyone.
Only need thank to me and Mr.Luong.
Click to expand...
Click to collapse
OK lets get on it then/ here are the edits:
Decompile InCallUI.apk
res/colors.xml: change ALL of these:
Code:
<color name="incoming_call_image_widget_background">#00000000</color>
<color name="incall_screen_background">#00000000</color>
<color name="cover_background">#00000000</color>
<color name="incall_call_banner_background">#00000000</color>
<color name="incall_call_banner_background2">#00000000</color>
<color name="incall_call_banner_in_call_background">#00000000</color>
<color name="incall_call_banner_end_call_background">#00000000</color>
<color name="incall_call_state_label_background">#00000000</color>
<color name="incall_secondary_info_background">#00000000</color>
<color name="endcall_yellow_button_bg">#00000000</color>
<color name="endcall_green_button_bg">#00000000</color>
<color name="incall_call_button_background">#00000000</color>
<color name="incall_call_button_background_qcif_video">#00000000</color>
<color name="dialpad_background">#00000000</color>
<color name="dtmf_dialer_display_background">#00000000</color>
<color name="manage_conference_background">#00000000</color>
<color name="button_background">#00000000</color>
<color name="tutorial_background_color">#00000000</color>
<color name="tutorial_tab_background">#00000000</color>
<color name="tutorial_image_unknown_background">#00000000</color>
<color name="vt_dialpad_background">#00000000</color>
<color name="circle_time_progress_background">#00000000</color>
<color name="incall_call_banner_background_covered">#00000000</color>
<color name="incall_call_banner_background2_covered">#00000000</color>
<color name="incall_call_banner_in_call_background_covered">#00000000</color>
<color name="incall_call_banner_end_call_background_covered">#00000000</color>
<color name="incall_call_banner_active_bg">#00000000</color>
<color name="incall_call_banner_disconnect_bg">#00000000</color>
<color name="incall_call_banner_incoming_bg">#00000000</color>
<color name="incall_call_banner_onhold_bg">#00000000</color>
<color name="incall_call_state_active_bg">#00000000</color>
<color name="incall_call_state_disconnect_bg">#00000000</color>
<color name="incall_call_state_incoming_bg">#00000000</color>
<color name="incall_call_state_onhold_bg">#00000000</color>
<color name="incall_button_bg">#00000000</color>
<color name="invtcall_call_banner_active_bg">#00000000</color>
<color name="invtcall_call_banner_incoming_bg">#00000000</color>
<color name="invtcall_call_state_active_bg">#00000000</color>
<color name="invtcall_call_state_incoming_bg">#00000000</color>
<color name="popup_button_bg">#80000000</color>
<color name="incall_mw_call_card_background">#00000000</color>
<color name="drivelink_incall_call_banner_active_bg">#80000000</color>
<color name="drivelink_incall_call_banner_disconnect_bg">#80000000</color>
<color name="drivelink_incall_call_banner_incoming_bg">#80000000</color>
Next, res/dimens.xml:
Code:
<dimen name="call_card_height">[COLOR="Red"]640.0dip[/COLOR]</dimen>
Next, res/layout primary_call_info.xml I suggest copying this whole xml (A lot of moving around..You can compare to see the changes..IF you want a breakdown of what moved and where..Let me know I will try to accommodate )
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/indicator_area" android:layout_width="fill_parent" android:layout_height="@dimen/indicator_area_height" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@id/indicator_area">
<com.android.incallui.InCallPhotoView android:gravity="top|center" android:layout_gravity="center_horizontal" android:id="@id/photo" android:layout_width="640.0dip" android:layout_height="640.0dip" android:scaleType="centerCrop" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:soundEffectsEnabled="false" android:layout_alignParentStart="true" />
<ImageView android:id="@id/answer_memo_photo" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="centerCrop" android:layout_below="@id/primary_call_banner" android:layout_centerHorizontal="true" />
<ImageView android:id="@id/insetPhoto" android:padding="7.0dip" android:visibility="gone" android:layout_width="@dimen/contact_photo_inset_width" android:layout_height="@dimen/contact_photo_inset_height" android:layout_marginTop="113.0dip" android:scaleType="fitCenter" android:layout_centerHorizontal="true" />
<ViewStub android:id="@id/multi_touch_stub" android:layout="@layout/multi_touch_dummy" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<ViewStub android:id="@id/caller_info_card" android:layout="@layout/caller_info_card_view" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<ViewStub android:id="@id/photoringstub" android:layout="@layout/photoring_incall" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<LinearLayout android:orientation="vertical" android:id="@id/callstate_area" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true">
<LinearLayout android:gravity="center_vertical" android:orientation="vertical" android:id="@id/multisim_container" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/multisim_container_height">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/multisim_upper_button" android:layout_width="fill_parent" android:layout_height="@dimen/multisim_upper_height">
<Button android:id="@id/multisim_slot1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/name_slot1" android:drawableLeft="@drawable/sim_icon_gsm_01" android:layout_weight="1.0" style="@style/MultiSimBarTabAppearance" />
<Button android:id="@id/multisim_slot2" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/name_slot2" android:drawableLeft="@drawable/sim_icon_gsm_02" android:layout_weight="1.0" style="@style/MultiSimBarTabAppearance" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/multisim_bottom_line" android:layout_width="fill_parent" android:layout_height="@dimen/multisim_bottom_height">
<ImageView android:id="@id/multisim_slot1_line" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:id="@id/multisim_slot2_line" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
</LinearLayout>
</LinearLayout>
<RelativeLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/callsate_container" android:paddingTop="1.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/callstate_container_height">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/callstate_container_text_size" android:textColor="@color/incall_call_banner_text_color" android:layout_gravity="left|center" android:id="@id/intCallInfo" android:paddingLeft="12.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/intcallsetting_voice_noti" android:layout_weight="0.0" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="18.0dip" android:textColor="@color/incall_call_banner_text_color" android:gravity="left|center" android:id="@id/elapsedTimeTitle" android:paddingLeft="13.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="0.0" style="@style/InCallButtonTextShadowEffect" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/callstate_container_text_size" android:textColor="@color/incall_call_banner_text_color" android:gravity="left|center" android:id="@id/start_call_time" android:paddingLeft="13.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="0.0" style="@style/InCallButtonTextShadowEffect" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/callstate_container_text_size" android:textColor="@color/incall_call_banner_text_color" android:gravity="left|center" android:id="@id/cardSubscriber" android:paddingLeft="13.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="0.0" style="@style/InCallButtonTextShadowEffect" />
<RelativeLayout android:id="@id/recInfo" android:paddingLeft="12.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="0.0">
<ImageView android:gravity="center_vertical" android:id="@id/recordIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/record_icon_middle_margin" android:src="@drawable/call_duringcall_record_icon" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/callstate_container_text_size" android:textColor="@color/incall_call_banner_recording" android:layout_gravity="center_vertical" android:id="@id/recordText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/record_icon_right_margin" android:text="@string/menu_record_voice" android:shadowColor="@color/incall_call_banner_recording_time_shadow" android:shadowDy="2.0" android:shadowRadius="0.5" android:layout_toRightOf="@id/recordIcon" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/callstate_container_text_size" android:textColor="@color/incall_call_banner_recording" android:layout_gravity="center_vertical" android:id="@id/recordTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/record_container_right_margin" android:shadowColor="@color/incall_call_banner_recording_time_shadow" android:shadowDy="2.0" android:shadowRadius="0.5" android:layout_toRightOf="@id/recordText" />
</RelativeLayout>
<RelativeLayout android:id="@id/memoRecInfo" android:paddingLeft="12.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:layout_gravity="center_vertical" android:id="@id/memoRecordIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/record_icon_middle_margin" android:src="@drawable/call_duringcall_record_icon" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/callstate_container_text_size" android:textColor="@color/incall_call_banner_recording" android:layout_gravity="center_vertical" android:id="@id/memoRecordText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/record_icon_right_margin" android:text="@string/menu_record_voice" android:shadowColor="@color/incall_call_banner_recording_time_shadow" android:shadowDy="2.0" android:shadowRadius="0.5" android:layout_toRightOf="@id/memoRecordIcon" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/callstate_container_text_size" android:textColor="@color/incall_call_banner_recording" android:layout_gravity="center_vertical" android:id="@id/memoRecordTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/record_container_right_margin" android:shadowColor="@color/incall_call_banner_recording_time_shadow" android:shadowDy="2.0" android:shadowRadius="0.5" android:layout_toRightOf="@id/memoRecordText" />
</RelativeLayout>
<ImageView android:id="@id/hd_icon_tmo" android:paddingLeft="@dimen/call_banner_side_padding" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/call_tmo_hd" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/elapsedTimeAndStateLabel" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true">
<ImageView android:id="@id/hdVoice" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/hd_call_skt" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/callstate_container_text_size" android:textColor="@color/incall_call_banner_text_color" android:gravity="right|center" android:id="@id/hdVoiceText" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="5.0dip" android:singleLine="true" android:layout_alignParentTop="true" android:layout_alignParentRight="true" style="@style/InCallButtonTextShadowEffect" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/callstate_container_text_size" android:textColor="@color/incall_call_banner_text_color" android:gravity="right|center" android:id="@id/elapsedTime" android:paddingRight="7.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" style="@style/InCallButtonTextShadowEffect" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/callstate_container_text_size" android:textColor="@color/incall_call_banner_text_color" android:gravity="right|center" android:id="@id/callStateLabel" android:paddingRight="7.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" style="@style/InCallButtonTextShadowEffect" />
<ImageView android:layout_gravity="right|center" android:id="@id/periodMark" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="-7.0dip" android:layout_marginRight="@dimen/periodmark_right_padding" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:paddingLeft="@dimen/call_banner_side_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/call_state_container_city_text_size" android:textColor="@color/incall_banner_city_text_color" android:gravity="bottom|left|center" android:layout_gravity="bottom|left|center" android:id="@id/cityid" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" style="@style/InCallButtonTextShadowEffect" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/primary_call_banner" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="@dimen/call_banner_height" android:layout_below="@id/callstate_area">
<RelativeLayout android:id="@id/primary_call_info_banner" android:paddingLeft="@dimen/call_banner_side_padding" android:paddingBottom="3.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="@dimen/one_call_name_text_size" android:textColor="@color/incall_call_banner_text_color" android:id="@id/name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_centerVertical="true" style="@style/InCallButtonTextShadowEffect" />
<RelativeLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/labelAndNumber" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/name">
<ImageView android:id="@id/iconLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5.0dip" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
<ImageView android:id="@id/simIconLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="3.0dip" android:layout_toRightOf="@id/iconLabel" android:layout_centerVertical="true" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/one_call_number_text_size" android:textColor="@color/incall_call_banner_2nd_text_color" android:id="@id/phoneNumber" android:paddingRight="@dimen/call_banner_side_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_toRightOf="@id/simIconLabel" style="@style/InCallButtonTextShadowEffect" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/one_call_number_text_size" android:textColor="@color/incall_call_banner_2nd_text_color" android:id="@id/label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="3.0dip" android:singleLine="true" android:layout_toRightOf="@id/phoneNumber" style="@style/InCallButtonTextShadowEffect" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="@dimen/one_call_number_text_size" android:textColor="@color/incall_call_banner_2nd_text_color" android:gravity="right" android:id="@id/phoneNumberLocator" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="7.0dip" android:singleLine="true" android:layout_toRightOf="@id/label" android:layout_alignParentRight="true" style="@style/InCallButtonTextShadowEffect" />
</RelativeLayout>
<ImageView android:id="@id/callTypeIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/contacts_list_icon_internetcall" android:layout_alignBottom="@id/name" android:layout_alignParentRight="true" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/incall_call_banner_text_color" android:ellipsize="end" android:id="@id/callTypeLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" android:layout_below="@id/labelAndNumber" style="@style/InCallButtonTextShadowEffect" />
<LinearLayout android:id="@id/primary_cnapNameContainer" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxWidth="@dimen/incall_banner_text_max_Width" android:layout_below="@id/callTypeLabel">
<ImageView android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="3.0dip" android:src="@drawable/call_message_icon_skt_ltg" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="@dimen/one_call_cnap_name_text_size" android:textColor="@color/incall_call_banner_text_color" android:ellipsize="marquee" android:layout_gravity="center_vertical" android:id="@id/primary_cnapName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" style="@style/InCallButtonTextShadowEffect" />
</LinearLayout>
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="@dimen/one_call_cdnip_number_text_size" android:textColor="@color/incall_call_banner_text_color" android:ellipsize="marquee" android:id="@id/primary_cdnipNumber" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxWidth="@dimen/incall_banner_text_max_Width" android:singleLine="true" android:layout_below="@id/primary_cnapNameContainer" style="@style/InCallButtonTextShadowEffect" />
<RelativeLayout android:gravity="center_vertical" android:id="@id/callbanner_function_btn_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true">
<View android:id="@id/divider_function_view" android:background="#00000000" android:layout_width="1.0dip" android:layout_height="50.0dip" android:layout_marginRight="10.0dip" android:layout_toLeftOf="@id/divider_button" />
<FrameLayout android:id="@id/divider_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true">
<ImageButton android:id="@id/addCallBtn" android:background="#00000000" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:contentDescription="@string/onscreenAddCallText" />
<ImageButton android:id="@id/recordBtn" android:background="#00000000" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:contentDescription="@string/menu_record_voice" />
<ImageButton android:id="@id/webExBtn" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/incall_button_webex_icon" android:contentDescription="@string/webex" />
</FrameLayout>
</RelativeLayout>
</RelativeLayout>
<ImageButton android:layout_gravity="bottom" android:id="@id/onScreenMenuBtn" android:background="#00000000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/call_duringcall_menu_icon_x" android:contentDescription="@string/more_menu" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_vertical" android:orientation="horizontal" android:id="@id/incoming_popup" android:background="#00000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginRight="15.0dip" android:layout_marginBottom="50.0dip" android:layout_alignParentBottom="true">
<TextView android:textSize="16.0sp" android:textColor="@color/incall_call_banner_2nd_text_color" android:gravity="center" android:id="@id/incoming_popup_msg" android:paddingLeft="17.0dip" android:paddingTop="9.0dip" android:paddingRight="17.0dip" android:paddingBottom="9.0dip" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/info_voicerecorder_incomingcall" android:layout_weight="1.0" />
</LinearLayout>
<ToggleButton android:id="@id/extraVolumeButton" android:background="@drawable/incall_button_extra_volume_icon" android:visibility="gone" android:layout_width="52.0dip" android:layout_height="52.0dip" android:layout_marginTop="15.0dip" android:layout_marginRight="5.0dip" android:textOn="" android:textOff="" android:layout_below="@id/primary_call_banner" android:layout_alignParentRight="true" android:soundEffectsEnabled="false" android:contentDescription="@string/extra_vol_button" />
<ImageButton android:id="@id/modifyCallButton" android:background="#00000000" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginRight="5.0dip" android:src="@drawable/call_voice_conversion_lte" android:layout_below="@id/extraVolumeButton" android:layout_alignParentRight="true" android:contentDescription="@string/onscreenModifyCallText" android:hoverPopupType="tooltip" />
<ToggleButton android:id="@id/bluetoothBtn" android:background="#00000000" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:layout_marginRight="7.0dip" android:textOn="" android:textOff="" android:layout_below="@id/primary_call_banner" android:layout_alignParentRight="true" android:contentDescription="@string/headset" />
<TextView android:textSize="21.0sp" android:textColor="@color/incall_call_banner_text_color" android:id="@id/answering_memo_msg" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="37.0dip" android:layout_marginTop="5.0dip" android:layout_marginBottom="7.0dip" android:singleLine="true" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
<LinearLayout android:layout_gravity="right|center" android:orientation="vertical" android:id="@id/supplementary_info_container" android:background="#00000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:animateLayoutChanges="true" style="@style/PrimaryCallInfoSupplementaryInfoContainer">
<LinearLayout android:gravity="end" android:orientation="horizontal" android:id="@id/providerInfo" android:background="#00000000" android:paddingTop="@dimen/provider_info_top_bottom_padding" android:paddingBottom="@dimen/provider_info_top_bottom_padding" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingStart="@dimen/call_banner_side_padding" android:paddingEnd="@dimen/call_banner_side_padding">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/incall_call_banner_text_color" android:ellipsize="marquee" android:id="@id/providerLabel" android:layout_width="0.0px" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="6.0" android:textAllCaps="true" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/incall_call_banner_text_color" android:ellipsize="middle" android:gravity="end" android:id="@id/providerAddress" android:layout_width="0.0px" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="4.0" android:textAllCaps="true" android:paddingStart="8.0dip" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
</FrameLayout>
</RelativeLayout>
Continue in post #19
res/layout in_call_button_voice_fragment.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@id/inCallButtons" [COLOR="red"]##CHANGED:[/COLOR]android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/inCallIconActionBarContainer" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="51.0dip" android:layout_above="@id/inCallScreenButtonsContainer">
<ImageButton android:layout_gravity="start|bottom|center" android:id="@id/actionbar_bottom_icon_addcall" [COLOR="Red"]##CHANGED:[/COLOR]android:background="#00000000" android:visibility="gone" android:layout_width="56.0dip" android:layout_height="fill_parent" android:src="@drawable/actionbar_bottom_icon_addcall_x" />
<ImageButton android:layout_gravity="bottom|center" android:id="@id/actionbar_bottom_icon_keypad" [COLOR="red"]##CHANGED:[/COLOR]android:background="#00000000" android:visibility="gone" android:layout_width="56.0dip" android:layout_height="fill_parent" android:src="@drawable/actionbar_bottom_icon_keypad_x" />
<ImageButton android:layout_gravity="start|bottom|center" android:id="@id/actionbar_bottom_icon_message" [COLOR="red"]##CHANGED[/COLOR]:android:background="#00000000" android:visibility="gone" android:layout_width="56.0dip" android:layout_height="fill_parent" android:src="@drawable/actionbar_bottom_icon_message_x" />
<ImageButton android:layout_gravity="bottom|center" android:id="@id/actionbar_bottom_icon_note" [COLOR="red"]##CHANGED:[/COLOR]android:background="#00000000" android:visibility="gone" android:layout_width="56.0dip" android:layout_height="fill_parent" android:src="@drawable/actionbar_bottom_icon_note_x" />
<ImageButton android:layout_gravity="end|bottom|center" android:id="@id/actionbar_bottom_icon_menu" [COLOR="red"]##CHANGED:[/COLOR]android:background="#00000000" android:layout_width="56.0dip" android:layout_height="fill_parent" android:src="@drawable/actionbar_bottom_icon_menu_x" />
</FrameLayout>
<LinearLayout android:orientation="vertical" android:id="@id/inCallScreenButtonsContainer" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="0.0dip" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="68.0dip" android:layout_alignParentBottom="true" android:splitMotionEvents="false">
<LinearLayout android:orientation="horizontal"[COLOR="red"] ##CHANGED:[/COLOR]android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR="red"]##ADDED:[/COLOR]<LinearLayout android:orientation="horizontal" android:id="@id/incall_upper_button_contaienr" android:layout_width="180.0dip" android:layout_height="68.0dip" android:splitMotionEvents="false">
<Button android:id="@id/addCallButton" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:text="@string/onscreenAddCallText" android:drawableTop="@drawable/incall_button_add_icon" android:layout_weight="1.0" android:contentDescription="@string/onscreenAddCallText_description" style="@style/InCallTouchUpperButton" />
<Button android:id="@id/rcsVideoButton" android:visibility="gone" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:text="@string/rcs_share_live_video" android:drawableTop="@drawable/incall_button_rcs_video_icon" android:layout_weight="1.0" style="@style/InCallTouchUpperButton" />
<Button android:id="@id/recordButton" android:visibility="gone" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:text="@string/menu_record_voice" android:drawableTop="@drawable/incall_record_play_button" android:layout_weight="1.0" style="@style/InCallTouchUpperButton" />
<Button android:id="@id/dialpadButton" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:text="@string/onscreenShowDialpadText" android:drawableTop="@drawable/incall_button_dialpad_icon" android:layout_weight="1.0" style="@style/InCallTouchUpperButton" />
<Button android:id="@id/endButton" android:layout_width="1.0dip" android:layout_height="fill_parent" android:text="@string/end_call" android:drawableTop="@drawable/call_icon_endcall" android:layout_weight="1.0" style="@style/InCallTouchEndButton" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/incall_lower_button_contaienr" [COLOR="red"]##CHANGED:[/COLOR]android:layout_width="180.0dip" [COLOR="red"]##CHANGED:[/COLOR]android:layout_height="68.0dip" [COLOR="red"](##REMOVED:android:layout_marginTop="2.0dip")[/COLOR] android:splitMotionEvents="false">
<ToggleButton android:id="@id/speakerButton" android:layout_marginRight="2.0dip" android:textOn="@string/onscreenSpeakerText" android:textOff="@string/onscreenSpeakerText" android:drawableTop="@drawable/incall_button_speaker_icon" android:contentDescription="@string/description_speaker" style="@style/InCallTouchToggleButtonNoFrame" />
<ToggleButton android:id="@id/muteButton" android:layout_marginRight="2.0dip" android:textOn="@string/onscreenMuteText" android:textOff="@string/onscreenMuteText" android:drawableTop="@drawable/incall_button_mute_icon" android:contentDescription="@string/description_mute" style="@style/InCallTouchToggleButtonNoFrame" />
<ToggleButton android:id="@id/bluetoothButton" android:textOn="@string/audio_mode_bluetooth" android:textOff="@string/audio_mode_bluetooth" android:drawableTop="@drawable/incall_button_bluetooth_icon" android:contentDescription="@string/description_bluetooth" style="@style/InCallTouchToggleButtonNoFrame" />
<Button android:id="@id/rcsShareButton" android:visibility="gone" android:text="@string/rcs_share" android:drawableTop="@drawable/incall_button_rcs_share_icon" style="@style/InCallTouchButtonRcsShare" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:id="@id/inCallIconContainer" android:visibility="gone" android:layout_above="@id/inCallScreenButtonsContainer" style="@style/InCallIconContainer" />
</RelativeLayout>
Lastly, res/values styles.xml:
Code:
<style name="InCallTouchUpperButton">
<item name="android:textSize">[COLOR="red"]0.0dip[/COLOR]</item> [COLOR="red"]##CHANGED[/COLOR]
<item name="android:textStyle">normal</item>
<item name="android:textColor">@color/incall_button_text</item>
<item name="android:gravity">top|center</item>
<item name="android:background">@drawable/call_dial_btn_bg</item>
<item name="android:paddingTop">14.0dip</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:drawablePadding">2.0dip</item>
</style>
<style name="InEasyCallTouchUpperButton">
<item name="android:textSize">[COLOR="red"]0.0dip[/COLOR]</item> [COLOR="red"]##CHANGED[/COLOR]
<item name="android:textStyle">normal</item>
<item name="android:textColor">@color/incall_button_text</item>
<item name="android:gravity">top|center</item>
<item name="android:background">@drawable/call_dial_btn_bg</item>
<item name="android:paddingTop">18.0dip</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:drawablePadding">7.0dip</item>
</style>
<style name="InCallTouchToggleButtonNoFrame">
<item name="android:textSize">[COLOR="red"]0.0dip[/COLOR]</item> [COLOR="red"]##CHANGED[/COLOR]
<item name="android:textStyle">normal</item>
<item name="android:textColor">@color/incall_button_text</item>
<item name="android:gravity">top|center</item>
<item name="android:background">@drawable/call_dial_btn_bg</item>
<item name="android:paddingTop">14.0dip</item>
<item name="android:layout_width">1.0dip</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:drawableBottom">@drawable/incall_toggle_button</item>
<item name="android:layout_weight">1.0</item>
</style>
In in_call_button_voice_fragment.xml I personally would move the call_icon_endcall drawable to be on the far right or left side (depending on what hand preference you have).. But yeah, thats it guys.. Have at it.. Ask any ?'s just ask:good:
Big thank.

[GUIDE][ICS][JB] Add shortcuts on Xperia JB lockscreen

{
"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"
}
That's how it looks
It works with Xperia JB Lockscreen on Android 4.0.4 and 4.1.2 (confimed)
This guide is for skilled users.
HERE you may download my lockscreen and use it like template or basis
Lets start
Use apktool version 2 (beta) to prevent error while compilling
1. Decompile your UxpNxtLockScreen.apk
2. Find the file main.xml in res/layout folder and add the lines marked red
Lines those are marked blue you must add only if you dont have RelativeLayout in your main.xml. Its important.
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.sonyericsson.lockscreen.generic.LockScreenRootView android:id="@id/somc_blinds_lockscreen_root" android:layout_width="fill_parent" android:layout_height="fill_parent" android:directionality="leftToRight"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/background_image" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerCrop" />
[COLOR="red"]<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
[COLOR="RoyalBlue"]<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/alarm_and_charge" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginTop="8.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:directionality="leftToRight">
<include layout="@layout/top_left_next_alarm" />
<include layout="@layout/charging_status" />
</LinearLayout>
<TextView android:textSize="@dimen/lockscreen_text_size_small" android:textColor="#ffffffff" android:gravity="right|center" android:id="@id/carrier" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8.0dip" android:layout_marginRight="8.0dip" android:maxWidth="@dimen/lockscreen_carrier_text_max_width" android:text="" android:maxLines="3" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<include layout="@layout/w_clock" />
<com.sonymobile.lockscreen.topslider.TopSlider android:id="@id/top_slider" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/lockscreen_widget_slider_margin_top" android:layout_alignParentTop="true" android:directionality="none" />
<com.sonymobile.lockscreen.topslider.HorizontalWidgetSlider android:id="@id/horizontal_widget_slider" android:focusable="true" android:focusableInTouchMode="true" android:scrollbars="none" android:fadingEdge="none" android:clipChildren="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignTop="@id/top_slider" android:layout_alignBottom="@id/top_slider" android:directionality="none">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/horizontal_widget_slider_layout" android:focusable="true" android:focusableInTouchMode="true" android:clipChildren="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:directionality="none">
<include layout="@layout/music_controls" />
<View android:id="@id/top_slider_placeholder_widget" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
</com.sonymobile.lockscreen.topslider.HorizontalWidgetSlider>
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/top_slider" android:layout_alignBottom="@id/top_slider" android:layout_centerHorizontal="true">
<ProgressBar android:id="@id/camera_start_progress" android:padding="20.0dip" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:progressDrawable="@drawable/camera_start_progressbar" />
</LinearLayout>
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:gravity="center" android:id="@id/screenLockMsg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="8.0dip" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_alignParentBottom="true" />
<com.sonyericsson.lockscreen.generic.LockScreenNonTouchView android:id="@id/non_touch_view" android:background="#00000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<include android:id="@id/hint" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/lockscreen_hint_bottom_margin" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" layout="@layout/unlock_hint" />
[COLOR="RoyalBlue"]</RelativeLayout>[/COLOR]
[COLOR="red"]<LinearLayout android:gravity="center" android:layout_gravity="bottom" android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="@dimen/botbar_height">
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".DialerEntryActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.android.socialphonebook" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_call_icon" android:scaleType="center" />
</RelativeLayout>
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".activities.SocialPhonebookActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.android.socialphonebook" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_contact_icon" android:scaleType="center" />
</RelativeLayout>
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".ui.ConversationListActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.conversations" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_conversations_icon" android:scaleType="center" />
</RelativeLayout>
</LinearLayout>
</FrameLayout>[/COLOR]
</com.sonyericsson.lockscreen.generic.LockScreenRootView>
3. Find the file dimens.xml in res/values and add the lines marked red
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="set_button_width">220.0dip</dimen>
<dimen name="lockscreen_widget_slider_margin_top">93.0dip</dimen>
<dimen name="lockscreen_hint_bottom_margin">190.0dip</dimen>
<dimen name="lockscreen_text_size_small">12.0dip</dimen>
<dimen name="lockscreen_text_size_medium">14.0sp</dimen>
<dimen name="lockscreen_text_size_medium_large">16.0dip</dimen>
<dimen name="lockscreen_text_size_large">76.0dip</dimen>
<dimen name="lockscreen_text_padding">0.0dip</dimen>
<dimen name="lockscreen_carrier_text_max_width">168.0dip</dimen>
<dimen name="lockscreen_owner_margin_top">6.0dip</dimen>
[COLOR="Red"]<dimen name="botbar_width_icon_bg">100.0dip</dimen>
<dimen name="botbar_height">80.0dip</dimen>[/COLOR]
</resources>
4. Add icons from archive to res/drawable-hdpi (it depends on your display's resolution, be attentive)
ICONS
5. Unpack archive in smali folder
SMALI
Must be UxpNxtLockScreen\smali\aaa\sk0t\ui\MultyBtn.smali
6. Compile your lockscreen
Thats all
If you want to change shortcuts here is explaining:
Code:
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" [COLOR="SeaGreen"]android:tag[/COLOR]="[B].ui.ConversationListActivity[/B]" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" [COLOR="DarkOrchid"]android:contentDescription[/COLOR]="[B]com.sonyericsson.conversations[/B]" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]botbar_conversations_icon[/COLOR]" android:scaleType="center" />
</RelativeLayout>
android:contentDescription - search in AndroidManifest.xml of your apk (package parameter)
android:tag - search in AndroidManifest.xml (see parameter android:name, be attentive, you need main activity of app)
botbar_conversations_icon - icon of your shortcut
Thanks maks398tim for GUIDE
I just translated it and shared on XDA
If it works for you - please, write about it in this thread
It can be useful

Categories

Resources