[Q][DEV](Java) Make the statbar clock colour update immediately after selection? - Android Q&A, Help & Troubleshooting

hey
I'm having a few small problem with a feature I've added to a CM10.1 ROM for my device, the HTC Desire Z. The feature allows you to pick the colour of the status bar clock, yet it doesn't work perfectly: 1) the colour doesn't change immediately, you have to change the position of the clock first (e.g. if it was to the right, you'd have to pick the "No clock" option then pick the "right clock" option again, or if it was "centre clock" you'd have to move it to the right or disable and select the option you had selected previously. 2) also, not only is the status bar clock colour changed, but the clock on the notification pane (the larger clock which shows when you open notifications) is also coloured, which I don't really want.
Here's my frameworks_base commit
...and my settings commit.
I'd appreciate any help, you may have realised by now that I have no clue how to code in java

HTCDreamOn said:
hey
I'm having a few small problem with a feature I've added to a CM10.1 ROM for my device, the HTC Desire Z. The feature allows you to pick the colour of the status bar clock, yet it doesn't work perfectly: 1) the colour doesn't change immediately, you have to change the position of the clock first (e.g. if it was to the right, you'd have to pick the "No clock" option then pick the "right clock" option again, or if it was "centre clock" you'd have to move it to the right or disable and select the option you had selected previously. 2) also, not only is the status bar clock colour changed, but the clock on the notification pane (the larger clock which shows when you open notifications) is also coloured, which I don't really want.
Here's my frameworks_base commit
...and my settings commit.
I'd appreciate any help, you may have realised by now that I have no clue how to code in java
Click to expand...
Click to collapse
Where is the guide you followed.. This is all set up by code in the smali..
For it to change "on the fly" the code in the smali or the mod your reading has to allow for it..
As far as both clocks changing color.. It could also depend on the code, but it maybe an id problem as well... If the mod allows you to change both separately then I would look over the ids you changed in the smali to match your public.xml..
It could be that you link the same id for status bar clock and expanded status bar clock to the same exact Id.. So if one is changed so is the other
Sent from my SCH-I605 using xda app-developers app

Related

[Q] ADW text and icon overlap

I have text under the icons, but the text is too high. The text overlaps a small part of the icon. Can't you set the height of the text, not the size?
I have already tried fewer colums/rows and and smaller icons don't help either. This is only when I have 'New Icons" checked in UI settings
Hi,
I dont use it anymore but if I remember correctly, uncheck the second option right under New Icons should fix it.
Slu3
Thanks, going to try that.
Edit: nope, that is "highlights press color"

[MOD][XPOSED]StatusBar IconColors,CenterClock,Fullscreencaller,CRTEffe v1.4.7

So i was searching around for XPOSED Mods and i have found this mod
Features :
Features:
you can choose your favorite color for your Clock with out modifying APK files
You can add custom text along with the clock, which will be displayed in status bar and notification bar
You can add color to Date field in notification bar...
You can choose your favorite font for clock & Date field in status bar & notification bar...
You can add your favorite fonts into your /sdcard/fonts/ folder, it will be listed in the app
You can add bar code fonts for clock & Date field in status bar & notification bar..
You can add shadow and color for clock and custom text as you like
You can choose any color for status bar...
You can make full transparent for notification
You can enable 180 rotation of phones(can rotate in all directions)...
You can choose any color for Battery...
You can choose any color for Wifi signal
You can choose any color for Mobile signal
You can change the carrier name in lock-screen and notification...
You can can apply color to carrier name in lock-screen and notification...
Change the carrier name size in lock-screen
You can have Full screen caller picture in your phone
Set default caller image for full-screen caller function
Set any color for name, phone number etc
Hide Am Pm
Complete transparency for status bar
Choose any Notification panel bg image or color
Status bar Center Clock
CRT Screen off effect (No Effect,Horizontal Effect and Vertical Effect)
Enable or disable status bar during the full screen call
Apply any font for name, phone number etc for full screen caller
Ram usage in recent panel
Button to Clear all recent tasks
Notification Pull-down/Pullup Speed
Advanced Power-off menu(Soft Reboot, Reboot, Reboot to recovery, Fast boot & Screenshot)
Choose WiFi and mobile in out color
Mobile Color will be applied to mobile type as well
In full screen caller function... during incoming call glowdots color will be changed...
I found i did not make it ,, did NOT create , the owner of this mod is @FemBlack and this is his thread of the mod
Download
Clockcolormod 1.4.7
i tested it on my mega i9200 and everything worked good except for CRT off effect but the rest is really awesome i really loved it and liked to share it with you guys

Magiorom Tweaks need developers help

Hi there.
I'm not really a newbie on xda I'm actually a recognised themer in fact I'm number one themer for team venom on HTC one x variants I've recently started learning to be a developer and have my own Rom called magiorom on HTC one x+
http://forum.xda-developers.com/showthread.php?t=2449298
I need to make a magiotweaks app or even incorporate code that allows a lot of functionality.
So would really love to get help on this
My Rom runs on sense5 4.2.2 so all code needs to be based on 4.2.2
I need:
Choose long press hardware key options in particular long press back key to kill current process,
Options to choose customisation to statusbar icons,
Add data traffic indicator to right of statusbar clock
Add cpu freq information to under the clock in notification panel
Options to rearrange quicksettings
Edit carrier label in notification panel and lockscreen
Choose between sense and aosp recent apps
Extended vertical quicksettings
Choose between volume steps either default, 30 or 45 steps
Allow user to select own boot and down animations and boot sound
Allow user to edit apps that start at startup
Allow user to change notification background
Allow user to change transparency on prism, notification, statusbar and navbar
Allow user to change brightest min/highest settings
Allow user to alter clock size on lockscreen
Allow user to change color of the clocks
Allow user to select asop or sense lockscreen
Allow user to select nofications that popup on lockscreen
Allow user to turn on hardkey led notifications
Allow user to choose keyboard color
Any help is greatly needed and greatly appreciated
"There have always been ghosts in the machine. Random segments of code that have grouped together to form unexpected protocols."
ViperJBx appears to be one of these Ghosts
If you like my work please consider Donating to me
25% of all donations will be going to cancer research uk
Sent from my HTC One X+

[Q] Neatrom lite 501

flashed the latest oct 8th version on top of an earlier neatrom lite (4.8) and have an issue with the clock not appearing in the notification bar, in settings the colour of the clock is always black!! and cannot be changed, when i try to move the clock to centre or left then the other icons for signal and battery shift but the clock didgits do not appear, and help would be great.
Thumbs up to sale for a great rom.
Am too using the same version of neat rom mate. And u have to change the colour to white. Wat do you mean you can't change the colour of the clock?
thank you for your reply, in the settings menu display where the options are for clock i have clock style am/pm etc and so when i go into clock style and i select any of the options ie right, centre, or left i dont get the clock, also when i select clock colour i can use the colour picker but the "press on colout to apply" does not change and so the clock does not appear. the clock colour in the colour picker is a white cross hatch and does not change.
hold it, just found it, the slider for the transparency was on the far right and i missed it (need new glasses) i pushed it over to the left and the crosshatch then changed, thank you for your help, it was the "you have to change to white colour" comment that helped.
No probs mate. hit Thanks If I helped.

How to choose which icon is shown in statusbar without closing the app???

Hey,
ive 5 apps that has an icon on statusbar but there is only place for 4 icons, so the icon of one app is not shown in statusbar, only in this dropdown notification center (or whatever the name is)!
so my question is:
How can i choose which icons are displayed in statusbar ( without closing them)???????
TheKingOfQueens said:
Hey,
ive 5 apps that has an icon on statusbar but there is only place for 4 icons, so the icon of one app is not shown in statusbar, only in this dropdown notification center (or whatever the name is)!
so my question is:
How can i choose which icons are displayed in statusbar ( without closing them)???????
Click to expand...
Click to collapse
first install those apps which icons you want to display
and then install others
thank you for answering me, is there any other way? cause ive configured them and personalized them, i can kill one app then the icon that was not show will show now, but there must be a better way?!?

Categories

Resources