I must be missing something obvious (if so I apologize). I am testing
an app on a MOTO Droid that has the system setting "Audible selection"
checked so that key clicks make sound when the buttons on my app are
pressed. I have two buttons, a "set" button and a "clear" button. The
"set" button essentially records a value from an EditText object.
The problem occurs when the user selects the EditText and the soft
keyboard appears. After a value is typed in and the user presses the
"Done" button on the soft keyboard, the key click sound does not
play.
Is the proper behavior for the key click sound to play when the "Done"
button is pressed, or do I have to force this programmatically?
If I have to do it myself, is there an preferred way to play the
sound? (I already listen for the "Done" button on the soft keyboard so
I know where I would need to play the sound.) I am hoping I have
missed some simple configuration thing here.
Here are XML definitions of the buttons and Edit Text:
<EditText
android:id="@+id/txtFoo"
android:layout_width="120dip"
android:layout_height="wrap_content"
android:paddingTop="0px"
android:textSize="40px"
android:layout_marginTop="160dip"
android:layout_gravity="center_horizontal|top"
android:textColor="#000000"
android:gravity="center"
android:text=""
android:hint="0"
android:singleLine="true"
android:inputType="phone"
android:digits="0123456789"
android:imeOptions="actionDone"/>
<ImageButton
android:id="@+id/btnSet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="43dip"
android:layout_marginLeft="18dip"
android:src="@drawable/btnset"
android:background="@null"
android:layout_gravity="left|bottom"/>
<ImageButton
android:id="@+id/btnClear"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="43dip"
android:layout_marginRight="18dip"
android:src="@drawable/btnclear"
android:background="@null"
android:layout_gravity="right|bottom"/>
Thanks,
Dan
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en