Input textbox with canvas view... how???

by Wesley Sagittarius » Mon, 16 Jun 2008 14:34:28 GMT


Sponsored Links
 hi all,

I want to have a UI in layout where canvas view can have Input textbox
at bottom...

anyone have any idea how to append textbox into canvas view???



Wesley.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Native VPN client

Hi all,

Does anyone have any information of the source of the native VPN
client in Android 2.2 - what code base is it based on: openvpn,
sttrongswan, etc?

And specifically what feature set (IKEv2, mode-config, PKCS11,
smartcard usage, etc) and algorithms (ECDH, AES-256, Sha-256, etc) are
supported by it.

There is not a lot of info about it anywhere that I can find and these
details are not exposed in the configuration screens.

Thanks in adnvace

-- 

2. There is new issue being introduced in Froyo of search dialog after its window type has been changed from "TYPE_SEARCH_BAR" in Eclair to "TYPE_APPLICATION"

Issue described:
--------------------------------------------------------------------
Issue:Virtual keypad " dances " if user launches starts serach while
you tube is playing.....please see attached video

Steps:
1.Start playing a youtube video with slider open
2.While the video is playing....press the search TSB..this launches
the search window
3.Close the slider and touch within the search box to launch the
virtual keypad.....note virtual keypad is launched but is dancing as
in the attached video
--------------------------------------------------------------------


We got the root cause analysis:
--------------------------------------------------------------------
This issue is newly introduced in Froyo, which did not exist in
Eclair.

In Froyo, the Search Dialog has been moved from system to application
context, and its window type has been changed from "TYPE_SEARCH_BAR"
in Eclair to "TYPE_APPLICATION".
Because of this change, the Search Dialog window will be taken into
account when the window manager decides whether to shown the status
bar(used to be ignored in Eclair, which should be correct case). Since
the search dialog window does not have the "FLAG_FULLSCREEN" flag that
hides the staus bar, while the application base window (Youtube
window) underneath does, the window manager shows the status bar first
and then hides it(repeats doing this for a few times) when there are
window re-layout requests coming, that is what the flicker is all
about.
--------------------------------------------------------------------


And we fix it as below updating:
--------------------------------------------------------------------
diff --git a/core/java/android/app/SearchDialog.java b/core/java/
android/app/SearchDialog.java
index 7625c04..2daf660 100644
--- a/core/java/android/app/SearchDialog.java
+++ b/core/java/android/app/SearchDialog.java
@@ -173,6 +173,7 @@ public class SearchDialog extends Dialog
implements OnItemClickListener, OnItemS

         Window theWindow = getWindow();
         WindowManager.LayoutParams lp = theWindow.getAttributes();
+        lp.type = WindowManager.LayoutParams.TYPE_SEARCH_BAR;
         lp.width = ViewGroup.LayoutParams.MATCH_PARENT;
         // taking up the whole window (even when transparent) is less
than ideal,
         // but necessary to show the popup window until the window
manager supports
--------------------------------------------------------------------


My question is:
1. Does Froyo team get similar issue from developers ?
2. Why Froyo team need such changes for Search Dialog ?
3. Did we get the right root cause ?
4. How will Froyo team resolve this problem ?

-- 

3. Opinions wanted on ExpandableListView - debug or rewrite?

4. Android and Java card link

5. Knwon issues and limitations on running Android applications on Android 2.1 smartphone

6. TextView visibility problem

7. Documentation Building