[Q] Progress Bar Split using Advanced Parameter - Zooper Widget General

Morning all.
I am trying to make a fancy battery bar widget using 4 progress bars each curved 90 degrees and rotated to make a full circle, and each individual bar only showing a 25% range of the battery level, so bar 1 is 0-24%, bar 2 is 25-49 % etc.
What I'm trying to do now is split the bars into sections depending on the battery level, so when the battery is below 75% but above 50, I want the 3rd section to split into 5 chunks but have the first two bars stay solid... if you get what I mean.
But I've searched and tried to find the Advanced Parameter for progress bar chunks/splits and I cannot find it. The text on the advanced parameter button in Zooper says "...control almost any aspect of this module...", and I'm not bashing, but is this one option not available or have I missed the appropriate keyword from my XDA/Google searches?
Thanks

Wrong thread

@Mokum020
Thanks for the tip I think that's the way to go.
I'll tell you what as well, trying to get the segments lined up with eachother is a PITA!

Mokum020 said:
How about making two progress bars for each section, one solid and one in chunks and show/hide them with the offset parameter at a certain % level:
Solid
Code:
[ox]$#BLEVN#>=75?1000$[/ox]
Chunks
Code:
[ox]$#BLEVN#<75?1000$[/ox]
Click to expand...
Click to collapse
Very Smart Solution!!!
P.S. I'm a robot

Ratchet_Guy said:
Very Smart Solution!!!
P.S. I'm a robot
Click to expand...
Click to collapse
I thought this was an interesting idea so I built my own version of it, attached. Would like to see the OP's as well if willing to share.
As the OP mentioned getting the segments to line up to the exact pixel/millimeter is easier said than done, but sometimes close enough looks...close enough lol.

Related

[Q] We have CircleBattery, why not CircleSignal?

My line goes from 4 bars to 0 bars so quickly, my connection is always dropping. I want to keep an eye of my connection in real-time, meaning a percentage. I've got Prono but I'd rather it be in my status bar. Is this possible with the framework etc?
kushion said:
My line goes from 4 bars to 0 bars so quickly, my connection is always dropping. I want to keep an eye of my connection in real-time, meaning a percentage. I've got Prono but I'd rather it be in my status bar. Is this possible with the framework etc?
Click to expand...
Click to collapse
The idea is great, but I doubt there is a possibility to do that. I can make circle with 25% step, but this wont be a solution.
Sent from my pocket using pen
mendozinas said:
The idea is great, but I doubt there is a possibility to do that. I can make circle with 25% step, but this wont be a solution.
Sent from my pocket using pen
Click to expand...
Click to collapse
yeah i think that would be the only possibility, great idea though
mendozinas said:
The idea is great, but I doubt there is a possibility to do that. I can make circle with 25% step, but this wont be a solution.
Sent from my pocket using pen
Click to expand...
Click to collapse
But surely it's the same principle?
Battery status icon, originally roughly 8 png's >> 100 png's
Signal strength icon, originally roughly 5 or 6 png's >> 100 png's (plus the R signal icons etc)
?
kushion said:
But surely it's the same principle?
Battery status icon, originally roughly 8 png's >> 100 png's
Signal strength icon, originally roughly 5 or 6 png's >> 100 png's (plus the R signal icons etc)
?
Click to expand...
Click to collapse
if only all was so simple we whould have it done.
but signal strenght is calculating and showing not the same way as battery (no xml files to edit for it).
Still, i would love a 5 (0 + 4) step circle signal. Or maybe a square?
Or:
- a 0+4 step pie slice of signal
- a zig zaggy line
- The word 'signal'
- a "tower" shaded in for the signal strength.
Dunno, but there is alot of leway for creativity here. Hmmm....
fllash said:
Still, i would love a 5 (0 + 4) step circle signal. Or maybe a square?
Or:
- a 0+4 step pie slice of signal
- a zig zaggy line
- The word 'signal'
- a "tower" shaded in for the signal strength.
Dunno, but there is alot of leway for creativity here. Hmmm....
Click to expand...
Click to collapse
Decompile framewirk-res.apk, find signal icons, change in what u like, compile back to apk, sign, flash.
And post here yr new icons
Sent from my pocket using pen

[Q] Turn up the brightness at the very top of the screen?

I can't make out the icons at the very top of my screen - e.g. messages, battery life, BT... (yes, I'm probably older than many of you)
I would either like to make that area large, turn up the brightness or ideally -
I'd like the number of new emails, text messages and voicemails to show up on the icons that are at the bottom of my screen like they did on my EVO3d and ET4G - not sure if that is a skin or mod or what but it was very helpful.
Any one of these solutions for this GN newbie would be most appreciated.
boe said:
I can't make out the icons at the very top of my screen - e.g. messages, battery life, BT... (yes, I'm probably older than many of you)
I would either like to make that area large, turn up the brightness or ideally -
I'd like the number of new emails, text messages and voicemails to show up on the icons that are at the bottom of my screen like they did on my EVO3d and ET4G - not sure if that is a skin or mod or what but it was very helpful.
Any one of these solutions for this GN newbie would be most appreciated.
Click to expand...
Click to collapse
Well then here's the perfect mod for you! Old Geezer
Thanks - that is very close to what I'm looking for - it concentrates on making the ones on the right more noticeable.
The problem is I need the ones on the left more noticeable. E.g. I have a battery status icon that shows me the percent of battery life remaining instead of the stock one that has bar.
It appears that items up there have a transparency thing going on - I'd like to turn that off so the images are brighter/crisper.
The items on the right are easy enough to read -e.g. how many bars I'm getting as they are a more noticeable blue.
So I guess what I'd really like is to remove the transparency if that is what is going on up there and to get my icons back on the main part of the screen that show the number of unread messages, missed calls, new email messages - not sure if that was an HTC and Samsung thing or a feature in the older version of Android but I miss it.
That stupid overlay/transparency pissed me off. But if you can decompile and do a simple xml edit and recompile it can be gone.
SystemUI.apk\res\values\dimens.xml (find line below)
<item type="dimen" name="status_bar_icon_drawing_alpha">100.0%</item>
the default setting is like 54.9999%. 100% = "0" overlay and bright icons now.
good day.
chopper the dog said:
That stupid overlay/transparency pissed me off. But if you can decompile and do a simple xml edit and recompile it can be gone.
SystemUI.apk\res\values\dimens.xml (find line below)
<item type="dimen" name="status_bar_icon_drawing_alpha">100.0%</item>
the default setting is like 54.9999%. 100% = "0" overlay and bright icons now.
good day.
Click to expand...
Click to collapse
Thanks.
Clearly your Jou Jou is much stronger than mine - could tell me exactly how to do this or would that be too complicated to explain?

[Q] What is the "usable" resolution?

I've been having some trouble finding the screen resolution without the status and navigation bars. Does anybody know this?
crossbred900 said:
I've been having some trouble finding the screen resolution without the status and navigation bars. Does anybody know this?
Click to expand...
Click to collapse
I just tried measuring it using the "Pointer location" feature in the "Developer options" menu. I'm not sure how accurate this is seeing as I had to eyeball it, but looks like status bar the top is 50 pixels thick and the navigation bar the bottom is about 95 pixels.
Knowing the resolution is 1920x1200, grabbing some calipers and measuring it out might be more accurate.
Of course, nothing will be as good as breaking into the code and actually seeing the values.
EDIT:
Did a screenshot with the layout bounds highlighted and opened the .png in Paint. I measured 48 pixels for the status bar and 96 pixels for the nav bar. It corroborates what I found in these links:
http://www.transformerforums.com/fo...07-rom-jb-4-3-katkiss-multi-window-tf101.html
http://www.drastic-ds.com/viewtopic.php?f=5&t=99
Yeah, it's a slow day at work...
Sent from my HTCONE using Tapatalk 2
Thank you.

[Q] Two Qs regarding progress bar adv parameters

Thanks for your time. Two questions, #1: I've been around here and throughout other sites, and found (it seems) dozens of different options but none have seemed to work regarding getting an object to follow a CIRCULAR progress bar. In this case, I have a simple clock that I would like to have a sunrise icon and sunset icon (each) move around the outside the clock at the appropriate time. I have tried multiple codes and combos to no avail. I have successfully managed to achieve this result on a straight prog bar using [oy]$(-34+(#BLEVN#*2.70))$[/oy]. Those are, of course, my coordinates plugged in. I've found so many different "Oh, do this, this'll work" codes that don't work, I won't bore you with them (including this one http://forum.xda-developers.com/showthread.php?t=2563932). At any rate, any help would be appreciated.
#2: Is it possible to set up a 12 hour progress bar clock that handles just am and/or just pm?
Thanks again.
#1 Take a look at the Zooper standard analog Clock
#2 Use the 24h. For am use min 0 max 12 and for pm use min 12 max 24
Sent from GT-I9505 via Tapatalk
ibashmuck said:
Thanks for your time. Two questions, #1: I've been around here and throughout other sites, and found (it seems) dozens of different options but none have seemed to work regarding getting an object to follow a CIRCULAR progress bar. In this case, I have a simple clock that I would like to have a sunrise icon and sunset icon (each) move around the outside the clock at the appropriate time. I have tried multiple codes and combos to no avail. I have successfully managed to achieve this result on a straight prog bar using [oy]$(-34+(#BLEVN#*2.70))$[/oy]. Those are, of course, my coordinates plugged in. I've found so many different "Oh, do this, this'll work" codes that don't work, I won't bore you with them (including this one http://forum.xda-developers.com/showthread.php?t=2563932). At any rate, any help would be appreciated.
#2: Is it possible to set up a 12 hour progress bar clock that handles just am and/or just pm?
Thanks again.
Click to expand...
Click to collapse
#1: Moving things circular is a bit different from moving this along a straight line. For circles you need three parameters in Zooper: thie radius of your circle ([ar][/ar]), the sweep angle of said circle ([as][/as]) and finally the rotation ([r][/r]). The first one is static and the other two depend on what you are trying to do. You need to determine the size of your circle in degrees (360 for full, 180 for half etc.) and then determine in how many steps you need to cut that size. For something that moves with the minutes of the hour it would be 60 for instance. Then your amount of degrees per minute is 360/60 and if you multiply that with the numbers of minutes #Dm#, you get your current position and rotation. So for something to move around a circle based on the minutes of the hour you would need these advanced parameters:
[r]<whatever size>[/r]
[as]$(360/60*#Dm#)$[/as]
[ar]$(360/60*#Dm#)$[/ar]​To apply this to your idea, you need to figure out in how many steps you want your circle to be broken down to (I would guess 12) and then what's your variable you want to multiply with (#ARK# maybe). With these values it should position the symbol on the hour of the sunrise.
I hope this helps you out and if not, don't hesitate to ask
#2: I think so but you probably would have to work with some advanced parameter conditionals to check whether it's currently am or pm. This depends on what exactly you are trying to do. If you can give me more details I can try to think something up.
kwerdenker said:
#1: Moving things circular is a bit different from moving this along a straight line. For circles you need three parameters in Zooper: thie radius of your circle ([ar][/ar]), the sweep angle of said circle ([as][/as]) and finally the rotation ([r][/r]). The first one is static and the other two depend on what you are trying to do. You need to determine the size of your circle in degrees (360 for full, 180 for half etc.) and then determine in how many steps you need to cut that size. For something that moves with the minutes of the hour it would be 60 for instance. Then your amount of degrees per minute is 360/60 and if you multiply that with the numbers of minutes #Dm#, you get your current position and rotation. So for something to move around a circle based on the minutes of the hour you would need these advanced parameters:
[r]<whatever size>[/r]
[as]$(360/60*#Dm#)$[/as]
[ar]$(360/60*#Dm#)$[/ar]​To apply this to your idea, you need to figure out in how many steps you want your circle to be broken down to (I would guess 12) and then what's your variable you want to multiply with (#ARK# maybe). With these values it should position the symbol on the hour of the sunrise.
I hope this helps you out and if not, don't hesitate to ask
#2: I think so but you probably would have to work with some advanced parameter conditionals to check whether it's currently am or pm. This depends on what exactly you are trying to do. If you can give me more details I can try to think something up.
Click to expand...
Click to collapse
Thanks for the response. That's actually the first parameter that I found and tried to work with, and, like then, I still can't get it to work. My "hour clock" numbers are:
x= 60
y= -210
w= 520
Using #Dh#, min 0, max 12
Putting numbers into the codes you gave...
[as]$(360/12*#ARh#)$[/as]
[ar]$(360/12*#ARh#)$[/ar]
...(or even #ARK#) still sends the icon low and to the left, as you can see in the second screen shot (I've enlarged it to show it's position better). I'm living up to my namesake with this, I know, but my guess is I'm missing one small bit that's throwing me off. Apologies, of course.

[Q] multiple condition variables

hello, i've made my first widget that shows battery level with a progress bar (ram level and cpu frequency with other bars).
Now I want that the color of bar change when value is under a certain number (for example: normally is green, below 60 is yellow, below 40 is orange and below 20 is red).
I've wrote this and working: $#BLEVN#<60?[cf]#fffce109[/cf]
the logic of this is (pseudocode): if(battery.value < 60) { bar.color=yellow}
the logic that i want realize is three "if" concatenate or a "switch" (i refear to programming language).
I've tried to concatenate three of this expression but not working.
Anyone know if it can do?
thanks
newuser22 said:
hello, i've made my first widget that shows battery level with a progress bar (ram level and cpu frequency with other bars).
Now I want that the color of bar change when value is under a certain number (for example: normally is green, below 60 is yellow, below 40 is orange and below 20 is red).
I've wrote this and working: $#BLEVN#<60?[cf]#fffce109[/cf]
the logic of this is (pseudocode): if(battery.value < 60) { bar.color=yellow}
the logic that i want realize is three "if" concatenate or a "switch" (i refear to programming language).
I've tried to concatenate three of this expression but not working.
Anyone know if it can do?
thanks
Click to expand...
Click to collapse
Use && (and) to link conditions. Since you have 3 different colors you will need 3 separate conditional statements making sure only 1 statement is true at any time. so it would look something like this:
$#BLEVN#<60&&#BLEVN#>39?yellow$$#BLEVN#<40&&#BLEVN#>19?orange$$#BLEVN#<20?red$
jr67 said:
Use && (and) to link conditions. Since you have 3 different colors you will need 3 separate conditional statements making sure only 1 statement is true at any time. so it would look something like this:
$#BLEVN#<60&&#BLEVN#>39?yellow$$#BLEVN#<40&&#BLEVN#>19?orange$$#BLEVN#<20?red$
Click to expand...
Click to collapse
thanks it working , my error was exactly that with certain values more than one condition was true.

Categories

Resources