Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,834 Members 46,720 Now Online
XDA Developers Android and Mobile Development Forum

positioning

Tip us?
 
brianeg
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: May 2014
Default positioning

I want my clock and date to have an offset of 10 from the edge of the screen so that can always be lined up no matter what time or day it is. I have to reposition them every day.

This is how i want it to look at all times
___________________________
9:30am
Tuesday June x, 2014

but sometimes it will end up like this, with the 1 in the 11 going off the screen because of the length of either the date or time.
-----------------------------------------------
11:30am
Friday June x, 2014

Is there an advanced parameter or conditional that i can apply so that it is always at a certain horizontal offset?
 
CopKiller76
Old
#2  
Senior Member
Thanks Meter 65
Posts: 109
Join Date: Jan 2014
Location: Bornheim
You can just set the text alignment to left.


Gesendet von meinem GT-I9505 mit Tapatalk
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1401813715841.jpg
Views:	39
Size:	36.7 KB
ID:	2778589  
Thread Tools
Display Modes