[android-developers] Re: LinearLayout in LinearLayout

2009-07-16 Thread 单单
LinearLayout in LinearLayout throw the Exception java.lang.RuntimeException: mBaselineAlignedChildIndex of LinearLayout set to an index that is out of bounds. setBaselineAligned to false with parent LinearLayout can resolve this. On Jun 25, 9:28 pm, Mr.No f.hi...@arcor.de wrote: Hi folks,

[android-developers] Re: LinearLayout in LinearLayout

2009-06-26 Thread JdbcDroid
it's wird, it's work for me,so it's a problem for you if you set the orientation to vertical? On Jun 25, 9:02 pm, Mr.No f.hi...@arcor.de wrote: dont work,  only if i setOrientation to vertical. On 25 Jun., 17:21, JdbcDroid jd.bens...@gmail.com wrote: try to use l1.setOrientation(...) just

[android-developers] Re: LinearLayout in LinearLayout

2009-06-25 Thread Mr.No
Ive fixed it, but its strage, if i create it from xml file it dont throws an exception. Within the code i must turn off the baseline alginment. On 25 Jun., 15:28, Mr.No f.hi...@arcor.de wrote: Hi folks, ive  a little problem: Why is the following code causing an exception? The Code throws

[android-developers] Re: LinearLayout in LinearLayout

2009-06-25 Thread Peli
You have not set any layout parameters. http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html l2.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); Peli www.openintents.org On Jun 25, 3:28 pm, Mr.No f.hi...@arcor.de wrote:

[android-developers] Re: LinearLayout in LinearLayout

2009-06-25 Thread Mr.No
Ive tried it with layoutparams its the same. the default layoutarams will be assigned to the layout. On 25 Jun., 16:26, Peli peli0...@googlemail.com wrote: You have not set any layout parameters.http://developer.android.com/reference/android/widget/LinearLayout.La... l2.setLayoutParams(new

[android-developers] Re: LinearLayout in LinearLayout

2009-06-25 Thread JdbcDroid
try to use l1.setOrientation(...) just before l1.addView(...) On Jun 25, 4:42 pm, Mr.No f.hi...@arcor.de wrote: Ive tried it with layoutparams its the same. the default layoutarams will be assigned to the layout. On 25 Jun., 16:26, Peli peli0...@googlemail.com wrote: You have not set any

[android-developers] Re: LinearLayout in LinearLayout

2009-06-25 Thread Mr.No
dont work, only if i setOrientation to vertical. On 25 Jun., 17:21, JdbcDroid jd.bens...@gmail.com wrote: try to use l1.setOrientation(...) just before l1.addView(...) On Jun 25, 4:42 pm, Mr.No f.hi...@arcor.de wrote: Ive tried it with layoutparams its the same. the default layoutarams