Questions tagged [alignment]

In GUI (inc. web page) context, alignment refers to the positioning of visual elements. Or for memory addresses, being a multiple of some power of 2.

In GUI (inc. web page) context, alignment refers to the positioning of visual elements. Three possibility of alignment left, right, and center.

In a memory addressing context, alignment is the placement of data or code at memory addresses that are multiples of some (usually small) power of 2, for example having an array start at a 16-byte boundary with C++ alignas(16) int foo[1024];. This means the address will end with at least 4 0 bits.

For this meaning, prefer the tag.

8627 questions
3
votes
3 answers

Android RelativeLayout: How to put a view above another view, without necessarily touching?

I am displaying a ListView that can have any number of rows. I want the ListView to wrap the content. I also want some text to be at the bottom of the screen, regardless of the size of the list. Like so: My attempt at making this happen is below,…
Kalina
  • 5,504
  • 16
  • 64
  • 101
3
votes
2 answers

AChartEngine Barchart bar alignment

I having some problems with Achartengine. It's very useful, I know. I'm facing a bar alignment problem. My labels are in center, while my bars seems to be a little bit displaced. I put a link for the image: BarChart Alignment The label alignment are…
learner
  • 1,311
  • 3
  • 18
  • 39
3
votes
1 answer

GWT - How to center contents inside ScrollPanel

I have a FormPanel inside a ScrollPanel. The ScrollPanel is located in the center part of DockLayoutPanel. I want to vertially and horizontally center the FormPanel inside the ScrollPanel. I tried a few ways to do this but no success. I have tired…
Joey
  • 2,732
  • 11
  • 43
  • 63
3
votes
2 answers

Make JLabel html content right-to-left

I want to change a JLabel's content direction to be right to left. The Jlabel content is HTML and I tested all these (& none of them worked!): lbl.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); …
Ariyan
  • 14,760
  • 31
  • 112
  • 175
3
votes
0 answers

can we make printf align values on decimal point?

I've encountered an array of floating point values that I can't make print out in a reasonable way with the old tried and true printf() function. The problem, I guess, is that the range of numbers is huge... from tiny numbers like -3.66542e-296 to…
honestann
  • 1,374
  • 12
  • 19
3
votes
0 answers

TextView gravity="top" but changing font size dynamically doesn't keep text align to the top

I have an app that needs to dynamically align text views over certain locations on an image. The image is scaled to fit the view. Text entries are added by the user. I'm using a RelativeLayout and margins to properly position the text. All is…
Larry Landry
  • 1,241
  • 1
  • 8
  • 4
3
votes
1 answer

Set UIView to resize based on UILabel

I'd like to have my UILabel shown here center horizontally & vertically within the overlay AND I'd like the overlay UIView (the black area with the light alpha behind the hipster lorem ipsum text) to resize to give me 10 pixels of padding at the…
ChickensDontClap
  • 1,871
  • 4
  • 22
  • 39
3
votes
1 answer

CSS/HTML Align divs horizontally

So i need divs to align horizontally and fill blank spaces left in previous row's like so: Can this be achieved?
3
votes
1 answer

Vertical align : baseline doesnt work in Chrome

I have this really silly question to be honest. Anyways here goes. Ive been trying to use the vertical align: baseline; which is working in itself. The problem is that it works in IE and Firefox. My problem is that for some wierd reason it doesnt…
Raelona
  • 29
  • 3
3
votes
1 answer

struct alignment on a 64-bit machine

I have the following struct on a 64-bit Linux machine. struct __wait_queue_head { spinlock_t lock; struct list_head task_list; }; where typedef struct { raw_spinlock_t raw_lock; } spinlock_t; and struct…
gjain
  • 4,468
  • 5
  • 39
  • 47
3
votes
4 answers

Aligning floats of different heights

I'm having difficulties controlling the vertical alignment of my floats. My current situation looks like this: My desired alignment would be this: Hence the vertical alignment of aside#headlines. When I swap section#thumbs and aside#headlines in…
knalpiap
  • 67
  • 1
  • 7
3
votes
2 answers

How to "align" 2 strings?

First let me explain what I mean by "alignment". Let's say we have to strings : e.g. AGBCDEF ABCDIEFK Their "alignment" would be : A - G - B - C - D - - E - F - A - - B - C - D - I - E - F - K ----------------------------------- A - ? - B - C…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
2
votes
2 answers

  1. positions odd when image is aligned to the left

http://www.brixwork.com/realtors/blog/marketing-promotion/combining-pdfs-online-for-a-comprehensive-presentation/ I have two occurrences of
  1. s in this blog post. The first instance is formatted fine, using this CSS: .post_content ul,…
jeffkee
  • 5,106
  • 12
  • 44
  • 76
2
votes
2 answers

Why is my label not centered along the y axis? (Stanford SEE CS106A)

I am trying to learn java using Stanford's online CS106A course. The course uses the acm library packages from http://jtf.acm.org/ Can anyone tell me why is my code below doesn't centered the label along the y axis? import acm.program.*; import…
user1296058
  • 173
  • 1
  • 12
2
votes
5 answers

What portability issues are associated with byte-level access to pointers in C?

Purpose I am writing a small library for a larger project which supplies malloc/realloc/free wrapper-functions as well as a function which can tell you whether or not its parameter (of type void *) corresponds to live (not yet freed) memory…
anon