Dotted Line - Zooper Widget General

Hey Guys!
I'm looking for an option to add dotted lines or dashed lines. Is it possible to do or not?

You can use a userdefined progressbar. Min 0 Value 100 Max 100 and play with the settings.
Sent from GT-I9505 via Tapatalk

Yes, progress bar is what you need, 'Spacing - distance between chunks' will give you a dotted line.

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] 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.

Something a bit crazy... [progress bar clear & transparent]

Hi, is it possible to have the background of my progress bar as clear and the foreground as transparent, or vice versa? I don't want them both transparent, I need one to be in clear mode. Cheers!
Please tell me the diffrence between clear and transparent.
Gesendet von meinem GT-I9505 mit Tapatalk
CopKiller76 said:
Please tell me the diffrence between clear and transparent.
Gesendet von meinem GT-I9505 mit Tapatalk
Click to expand...
Click to collapse
Hi! Transparent you don't see, but clear actually erases anything that's beneath it.
For my understanding clear and transparent is the same. But you can set the drawing mode to erase if this is what you want.
Gesendet von meinem GT-I9505 mit Tapatalk
StrangerWeather said:
Hi, is it possible to have the background of my progress bar as clear and the foreground as transparent, or vice versa? I don't want them both transparent, I need one to be in clear mode. Cheers!
Click to expand...
Click to collapse
I get what you are trying to do. You want a progress bar that gradually reveals a graphic underneath it as the bar progresses, or the opposite, makes it appear gradually. I don't think you can set drawing mode separately for the foreground and background, which is what you want.
Just use width (or height) and the appropriate offset to have a drawmode clear rectangle "grow" on top of the graphic.
Example:
[rw]#BLEVN#[rw][ox](#BLEVN#-100)/2[/ox]
This will make a rectangle that keeps the left side at the same location as the rectangle grows from 0 to 100 in length.
So it will do this:
X
XX
XXX
XXXX
as battery level goes up.
If you don't do the offset, it will grow from the middle.
***X
**XX
*XXX
You will have to scale this to the size of your graphic. So if your graphic is 240 units wide:
[rw]#BLEVN#*240/100[rw][ox](#BLEVN#*240/100-240)/2[/ox]
or [rw]#BLEVN#*2.4[rw][ox](#BLEVN#*1.2-120)[/ox]
(Edit, I guess you can't triforce here, lol)
brizey said:
I get what you are trying to do. You want a progress bar that gradually reveals a graphic underneath it as the bar progresses, or the opposite, makes it appear gradually. I don't think you can set drawing mode separately for the foreground and background, which is what you want.
Just use width (or height) and the appropriate offset to have a drawmode clear rectangle "grow" on top of the graphic.
Example:
[rw]#BLEVN#[rw][ox](#BLEVN#-100)/2[/ox]
This will make a rectangle that keeps the left side at the same location as the rectangle grows from 0 to 100 in length.
So it will do this:
X
XX
XXX
XXXX
as battery level goes up.
If you don't do the offset, it will grow from the middle.
***X
**XX
*XXX
You will have to scale this to the size of your graphic. So if your graphic is 240 units wide:
[rw]#BLEVN#*240/100[rw][ox](#BLEVN#*240/100-240)/2[/ox]
or [rw]#BLEVN#*2.4[rw][ox](#BLEVN#*1.2-120)[/ox]
(Edit, I guess you can't triforce here, lol)
Click to expand...
Click to collapse
Wow, that's great many thanks for your help! That's exactly what I am trying to do!
brizey said:
I get what you are trying to do. You want a progress bar that gradually reveals a graphic underneath it as the bar progresses, or the opposite, makes it appear gradually. I don't think you can set drawing mode separately for the foreground and background, which is what you want.
Just use width (or height) and the appropriate offset to have a drawmode clear rectangle "grow" on top of the graphic.
Click to expand...
Click to collapse
This works great, thanks. My question now is how do I go about making that drawmode clear rectangle "shrink" on top of the graphic.
Sorry if it's obvious but I am not really scientifically minded...
Deleted...

[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.

[Q] Progress Bar Split using Advanced Parameter

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.

Categories

Resources