Hello I am having a problem. I am having three buttons in a view and whenever the view is loaded then all the three buttons are displayed but none of the button is shown in clicked as default. What I want to do is that when that view is loaded I want the first of the three buttons to be shown in clicked form and its data shown in the listview below it.. Can someone please help...
This is my Layout where I have three Buttons and a listview each button has a list to be displayed in listview. This Page is loaded after Splash Screen and what I want is the first button to show the list associated with it in listview when the page loads the each time.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:id="@+id/calender_layout"
android:layout_width="fill_parent"
android:layout_height="@dimen/dimention_of_background_of_button"
android:background="#06960F"
android:orientation="horizontal"
android:weightSum="3" >
<Button
android:id="@+id/nearby_btn"
android:layout_width="0dp"
android:layout_height="@dimen/dimention_of_button"
android:layout_gravity="center"
android:layout_weight="1"
android:background="@drawable/btn_nearby_selected"/>
<Button
android:id="@+id/myevent_btn"
android:layout_width="0dp"
android:layout_height="@dimen/dimention_of_button"
android:layout_gravity="center"
android:layout_weight="1"
android:background="@drawable/btn_myevents"/>
<Button
android:id="@+id/fav_btn"
android:layout_width="0dp"
android:layout_height="@dimen/dimention_of_button"
android:layout_gravity="center"
android:layout_weight="1"
android:background="@drawable/btn_favorite"/>
</LinearLayout>
<ListView
android:id="@+id/Eventlist"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/calender_layout"
android:layout_above="@+id/cal_footer_layout">
</ListView>
<LinearLayout
android:id="@+id/cal_footer_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="#06960F"
android:orientation="horizontal"
android:weightSum="100" >
<Spinner
android:id="@+id/Searchspinner"
android:layout_width="0dp"
android:layout_height="@dimen/spinner_selection_height"
android:layout_gravity="center"
android:layout_weight="40"
android:background="#06960F"
android:spinnerMode="dropdown" />
<EditText
android:id="@+id/EnterDataToSearch"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="60"
android:drawableLeft="@drawable/search_icon"
android:inputType="text" />
</LinearLayout>
</RelativeLayout>