EditView: Done button not working after text entered

by MH » Thu, 06 Aug 2009 08:16:09 GMT


Sponsored Links
 Hi Folks,

I have a EditView that takes input from user - but once I enter text
using the soft keypad, the "Done" button doesn't seem to be working. I
want it to take me back to my view and exit from the keypad entry
since I'm done entering the text.
Here is how my layout is defined - what am I missing?
Thanks in advance!
-MH

<AbsoluteLayout
android:id="@+id/widget1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android=" http://schemas.android.com/apk/res/android" ;
android:background="@android:color/black">

    <EditText android:id="@+id/search_str"
        android:maxLines="1"
        android:ems="25"
        android:scrollHorizontally="true"
        android:layout_width="440px"
        android:layout_height="70px"
        android:layout_x="20px"
        android:layout_y="100px"
        android:maxEms="25"/>

    <Button android:id="@+id/button_search"
        android:text="@string/button_search_str"
        android:layout_width="100px"
        android:layout_height="50px"
        android:layout_x="80px"
        android:layout_y="200px"/>

    <Button android:id="@+id/button_search_cancel"
        android:text="@string/button_search_cancel_str"
        android:layout_height="50px"
        android:layout_width="100px"
        android:layout_y="200px"
        android:layout_x="280px"/>

    <TextView android:id="@+id/search_window_prompt"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:text="@string/search_window_prompt_str"
        android:layout_y="50px"
        android:editable="false"
        android:layout_x="180px"/>

</AbsoluteLayout>


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How can I add a background image for ListView

Hi,
   How can I add a background image for ListView instead of the
default Black.?
   Thanks.

Cheers.
Long

--~--~---------~--~----~------------~-------~--~----~

2. can we record only aac stream?

Hi friends,

I want to record the audio as aac file. I can able to record raw amr
file.

In the same I would like to record the aac file. Is it possible to
record the audio as aac file? if so how?

can any one please suggest me the solution?

Thanks,
Manoj.
--~--~---------~--~----~------------~-------~--~----~

3. Orientation Sensor return false values. And getRotationMatrix() also doesn't work. Is my ADP1 broke?

4. MediaScannerConnectionClient which content provider?

5. About to receive the mms

6. playing mp3 file over http using gstreamer in android fails

7. Faster "Canvas.drawLine()" for rectangular lines?