Hello i have sort a problem with my layout i would like somethine like
this :
+-------------------+
| |
| A |
| | height : fill_parent
| |
| |
| |
+-------------------+
| B |height : wrap_content (40dip)
+-------------------+
| C |height : wrap content
+-------------------+
A : linearLayout (vertical)
B : linearLayout (horizontal)
C: TextView
but when i do this my A component take all the screen.
i've trived this but it doesnt work
Display display = getWindowManager().getDefaultDisplay();
int heightScreen = display.getHeight();
int hauteurBarre =
((LinearLayout)findViewById(R.id.bar)).getHeight();
int hauteurOrange =
((TextView)findViewById(R.id.orange)).getHeight();
LayoutParams l =new LayoutParams(LayoutParams.FILL_PARENT,
heightScreen-hauteurBarre-hauteurOrange);
((LinearLayout)findViewById(R.id.view)).setLayoutParams(l);
does anyone have an idea?
thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en