I am trying to add two buttons to my relativelayout that includes a listview
i can only get one to show up.
I want them to be at the top of my listview kinda like tabs..
the first image is what it looks like, the 2nd is something similar to what i want.
i would of posted here but “We’re sorry, but as a spam prevention mechanism, new users aren’t allowed to post images. Earn more than 10 reputation to post images.”
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="#FFFFFF"
>
<Button android:id="@+id/plus"
android:background="@drawable/selector"
android:layout_width="75dip"
android:layout_height="75dip"
android:layout_alignParentBottom="true"
/>
<Button android:id="@+id/main2"
android:layout_height="20dp"
android:layout_width="40dp"
android:hint="Notes"
android:background="#FFFFFF"
android:layout_above="@+id/list"
>
</Button>
<Button android:id="@+id/main3"
android:layout_height="20dp"
android:layout_width="40dp"
android:hint="Titles"
android:background="#FFFFFF"
android:layout_above="@+id/list">
</Button>
<ListView
android:layout_marginTop="70dp"
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/plus"
android:smoothScrollbar="true"
android:background="#FFFFFF" android:cacheColorHint="#FFFFFF"
android:fastScrollEnabled="true" android:clickable="true"
android:layout_marginBottom="10dp"
android:divider="#000000"
android:dividerHeight="1px"
>
</ListView>
<TextView android:id="@android:id/empty" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="@string/noQ"
/>
</RelativeLayout>
I think this is about what you are looking for: