android linear layout solution
Posted
by dykzei
on Stack Overflow
See other posts from Stack Overflow
or by dykzei
Published on 2010-05-23T18:17:20Z
Indexed on
2010/05/23
18:20 UTC
Read the original article
Hit count: 512
![alt text][1] [1]: http://s48.radikal.ru/i120/1005/ff/6e439e04bbc8.jpg
hi
what i'm trying to achieve is #1 but what i get is #2
it seems linear layout stacks with height of it's first element and shrinks second's element height to that.
the xml for those is the following:
<?xml version="1.0" encoding="utf-8"?>
android:layout_weight="5" /> android:text="Aaa aaaaa aaa aaaaa, aaaaaaa aaa aaa a, aaa aa aaaaaaa aaa aa. Aaa aaaaa aaa aaaaa, aaaaaaa aaa aaa a, aaa aa aaaaaaa aaa aa. Aaa aaaaa aaa aaaaa, aaaaaaa aaa aaa a, aaa aa aaaaaaa aaa aa. Aaa aaaaa aaa aaaaa, aaaaaaa aaa aaa a, aaa aa aaaaaaa aaa aa. Aaa aaaaa aaa aaaaa, aaaaaaa aaa aaa a, aaa aa aaaaaaa aaa aa. Aaa aaaaa aaa aaaaa, aaaaaaa aaa aaa a, aaa aa aaaaaaa aaa aa." />
© Stack Overflow or respective owner