Tuesday, 17 September 2013

Layout in a Scroll View

Layout in a Scroll View

I want to create a design that will be look like this image Image Link.I
am not able design this layout.Please help me to create this layout .this
is what i tried to create this but unfortunately i am not getting this how
i will set this image and text.Please help
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".ItinearyPage" >
<ScrollView
android:id="@+id/main_ScrollView_Container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout
android:id="@+id/main_Inside_ScrollView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<LinearLayout
android:id="@+id/itin_Section_First"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/travel_Itenary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="6dp"
android:layout_marginTop="5dp"
android:text="@string/tarvelItinaryText"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:id="@+id/itin_Section_Second"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/itin_Section_First"
android:layout_toRightOf="@+id/itin_Section_First"
android:orientation="vertical" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="268dp"
android:layout_height="40dp"
android:layout_marginLeft="13dp"
android:layout_marginRight="13dp"
android:layout_marginTop="15dp"
android:src="@drawable/logo_demo" />
</LinearLayout>
</RelativeLayout>
</ScrollView>
</RelativeLayout>
Please help me to get this it's my first assignment.I am stucked in this
from last 2 days .I read my many tutorials and website but still i am not
able to get this

No comments:

Post a Comment