I'm trying to make a weather widget that displays the current forecast with the high/low temps of the day. I want it to be displayed like I have it on the attached image file.
Since the width of the forecast text will change depending on the weather, I was wondering how I can set up the widget so that the high/low temps are always at a set distance from the back of the forecast text.
Just set the text to align right and the temperatures to align left.
Gesendet von meinem GT-I9505 mit Tapatalk
CopKiller76 said:
Just set the text to align right and the temperatures to align left.
Gesendet von meinem GT-I9505 mit Tapatalk
Click to expand...
Click to collapse
I should have pointed out that I have this weather widget on the edge of the left side of the screen. This would mean that the text would get cut off if it got to a certain width.
I did find a fix on my problem though; albeit a sloppy one. I have two rich text objects (font size = 30):
1) #DCCOND# [s=18]#W0MINN#[/s]
2) [c=#00ffffff]#DCCOND#[/c] [s=18]#W0MAXN#[/s]
The second text object has its Y-offset so that the high temp is right above the low temp. This creates the layout that I was going for.
Ok this should work
Gesendet von meinem GT-I9505 mit Tapatalk
Related
In a text widget, the alignment shifts across when it changes weather pattern, so from "light rain" to "wind" obviously as one is shorter it shifts along losing alignment. Why can't it just work from a margin?
Sent from my Nexus 5 using Tapatalk
prawnguevara said:
In a text widget, the alignment shifts across when it changes weather pattern, so from "light rain" to "wind" obviously as one is shorter it shifts along losing alignment. Why can't it just work from a margin?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Did you try changing the alignment option of the text module? If you want the text to align to a left or right edge, just set it appropriately and the text will stay oriented. As a sidenote: if you leave the align option on standard, it will align to the choosen anchor point. So if you use center, the text will also center. If you use center left, the text should align left.
kwerdenker said:
Did you try changing the alignment option of the text module? If you want the text to align to a left or right edge, just set it appropriately and the text will stay oriented. As a sidenote: if you leave the align option on standard, it will align to the choosen anchor point. So if you use center, the text will also center. If you use center left, the text should align left.
Click to expand...
Click to collapse
No the problem still happens when the word changes. It shifts over a bunch completely out of line with others. I'm baffled why it just can't align
Sent from my Nexus 5 using Tapatalk
prawnguevara said:
No the problem still happens when the word changes. It shifts over a bunch completely out of line with others. I'm baffled why it just can't align
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Could you upload your template and some screenshots so I can take a look at it?
I'm trying to showcase an image with a custom bitmap on Lightning Launcher; however, the image is blurry even at 100% scaling.
If you view it in the gallery app, it looks perfectly fine.
Does anyone know why this is happening?
Thank you!
Bump.
If i use images they look fine.
What format do you use?
Sent from GT-I9505 via Tapatalk
CopKiller76 said:
If i use images they look fine.
What format do you use?
Sent from GT-I9505 via Tapatalk
Click to expand...
Click to collapse
I do a fullscreen widget. The image itself takes only a portion of the whole thing. Rest of the widget is filled in with either a mono-colored rectangle or the background fill in.
Green background is the one with the widget. Black background is the one with the gallery.
It's not horrendously blurry, but you can still see it if you look closely enough (and then you notice it every time after).
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...
Lately I noticed that I cannot change my screen orientation by tilting my nexus, so I downloaded an app for testing the sensor, where it didn't move, every dot was in the center of the circle. I am running CM11 nightly with elementalX Kernel, but it a week ago everything worked fine. Even after a reboot, the dots remain at the center of the circles of the test app.
Is the hardware broken or is it a CM bug? Thanks in advance
Gesendet von meinem Nexus 7 mit Tapatalk
If I go to a low lightened place, put brightness at 100% and slide down the quick tiles, then I can see the status bar where it was before in a pink, 5% opacity color. I mean, I have a temporary ghost status bar everywhere.
Why? IPS Quantum? Hardware problem? Am I the only one? I'm so confused.
Yeah, same here. Why does it happen?
So I just got home from work and decided to watch a few videos on YouTube. Went full screen and bam! The icons on the right side of the status bar have burnt in to the screen. I'm gonna try and get a picture of it but I dunno if my Nexus 5 will pick it up.
Anyone else having this issue?
Same here. Really seems to be temporary because for me these "burnt in" icons change from time to time. So strange...
Gesendet von meinem LG-H815 mit Tapatalk
Same here, it's even becoming worse (it comes on faster and stays longer)
I went to the service centre and they got my lcd replaced.