What's the best way to handle this scenario?

I've an app I'm working on that will have 3 different screens (layouts
essentially).  One will be a search box with a couple radio buttons
and a search button.  One will be a results list (I'm liking listview
for this, sound good?).  One will be the whichever result the user
selects and display the data which will be several lines of
information and possibly a picture.
Also at the top of each screen will be a header, similar to that of a
webpage with frames and will be static while each of the three screens
scrolls below.  I would like the main header to have an onclick
function to show the search screen again.

Any suggestions on this?

I have the search screen in a linearlayout now but when I click the
search button I got the search screen to dissappear but the results
screen doesn't show.  The header stays at the top though and if
clicked shows the search screen.  I do that with setVisibility() but
that may be a bad practice.  I was able to test my search
functionality out with toasts to see if it works and it does, but I
need to display my results, not just flash them at the user lol!


Any suggestions?

Here's my code thus far below...  Keep in mind I just have the header,
search and search results screens but the search results screen is
just a textview.








<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical" >
    <TextView android:id="@+id/maintitle1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="TITLE WILL GO HERE"
                  android:textColor="#A4C17F"
                  android:textStyle="bold"
                  android:textSize="23sp"
                  android:width="400sp"
                  android:background="#E0DB97"
                  android:shadowColor="#000000"></TextView>
    <TextView android:id="@+id/maintitle2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="SUBTITLE WILL GO HERE."
              android:textSize="12sp"
              android:width="400sp"
              android:background="#E0DB97"
              android:textColor="#000000"/>




<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical"
              android:id="@+id/searchboxLL">
        <TextView android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:id="@+id/spacer"
                          android:height="40sp"></TextView>
        <TextView android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:id="@+id/search_label"
                          android:text="Search Books"
                          android:paddingLeft="10sp"
                          android:textColor="#FFFFFF"
                          android:textSize="14sp"></TextView>
        <EditText android:id="@+id/searcharea"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:width="390sp"></EditText>

<RadioGroup
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:orientation="horizontal"
  id="@+id/searchtypes">

<RadioButton android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/bauthor"
android:text="Author"></RadioButton>
<RadioButton android:id="@+id/btitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Title"></
RadioButton>
<RadioButton android:id="@+id/bisbn"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="ISBN"></
RadioButton>

</RadioGroup>
<Button android:id="@+id/search_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Search Books"
android:cursorVisible="true" android:textColor="#7B905F"/>

</LinearLayout>


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical"
              android:id="@+id/searchresultsLL">

                <TextView android:id="@+id/search_results"
                                  android:layout_width="wrap_content"
                                  android:layout_height="wrap_content"
                                  android:text="Search Results Here."
                                  android:textSize="12sp"
                                  android:width="400sp"
                                  android:height="50sp"
                                  android:textColor="#FFFFFF" />




</LinearLayout>



</LinearLayout>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to