XML linear layout vertical

Antroxent

New Member
Below you see my xml: I have a < linearlayout> < relativelayout/> < /linearlayout> hierarchyThe only thing I want is that all the images+text are vertically placed belowed eachother + horizontally centralised on the screen.. I have tried too much xml to reach this result, but nothing works..The first problem is that the textswitcher inside the relativelayout places itself next to the imageswitcher in the relativelayout..the second problem is that imageswitcher + textswitcher after the < /relativelayout> won't appear on the screen... :((I need this relativelayout inside the linearlayout because I animate the relativelayout and cannot delete it)thank you for the help!!\[code\] <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/layoutid"android:layout_width="fill_parent"android:layout_height="fill_parent"android:eek:rientation="vertical"android:gravity="center_horizontal"android:background="@drawable/background_donker" > <ImageView android:id="@+id/wolkanim" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:src="http://stackoverflow.com/questions/15903303/@anim/wolkanimation" /> <RelativeLayout android:id="@+id/layoutid2" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_horizontal" > <ImageSwitcher android:id="@+id/imageswitchertrein" android:layout_width="wrap_content" android:layout_height="wrap_content" android:inAnimation="@anim/fade_in" android:eek:utAnimation="@anim/fade_out" /> <TextSwitcher android:id="@+id/textswitcherafstandtekst" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:inAnimation="@anim/fadenieuw" android:eek:utAnimation="@anim/fadenieuwout" android:textSize="40sp" /> </RelativeLayout> <ImageSwitcher android:id="@+id/imageswitcherspoor" android:layout_width="wrap_content" android:layout_height="wrap_content" android:inAnimation="@anim/fade_in" android:eek:utAnimation="@anim/fade_out" android:src="http://stackoverflow.com/questions/15903303/@drawable/spoor" > </ImageSwitcher> <TextSwitcher android:id="@+id/textswitcherstationnaam" android:layout_width="wrap_content" android:layout_height="wrap_content" android:inAnimation="@anim/fadenieuw" android:eek:utAnimation="@anim/fadenieuwout" /> </LinearLayout>\[/code\]
 
Top