I have a layout that has 3 TextView's
, one for title, one for date and one for a site name. I'd like the title to be above the date and site and the site to be right align to the date.
For some reason, the site TextView
is a little higher than the date and I can't figure out why:
This is the layout code I'm using:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/browser_bg"
android:orientation="vertical">
<ScrollView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:paddingTop="10dp"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:paddingBottom="10dp"
>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dip"
android:orientation="horizontal"
>
<TextView
android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textSize="18sp"
android:textStyle="bold"
/>
<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="13sp"
android:textStyle="italic"
android:paddingTop="5dp"
android:layout_below="@id/title"
android:layout_alignParentLeft="true"
/>
<TextView
android:id="@+id/site"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="13sp"
android:gravity="right"
android:layout_alignParentRight="true"
android:layout_below="@id/title"
/>
</RelativeLayout>
</ScrollView>
</LinearLayout>