keyboard - resizing viewgroup, overlaying viewgroups and custom editor view

by SupaGu » Tue, 09 Nov 2010 02:54:36 GMT


Sponsored Links
 im writing a keyboard and there are a number of things i want to do:

1) i want to be able to dyamically resize the the keyboard view. I
have a custom view for my keyboard, created by my
InputMethodService.onCreateInputView

i've tried calling invalidate, requestLayout, forceLayout, on the
keyboard view, on its parent and on the view root but nothing seems to
call the onMeasure code again in my layout to allow it to resize.

2) i would also like to have a view group that goes over the edit
window and possibly over the rest of the screen. for example if the
user preses a button i want to draw above thier finger (which could be
over the editor window) what the are pressing or some additional
information.

3) i would like to be able to disable the editor window and do this my
self, so for example i can change how this functions


--



Other Threads

1. Opening local HTML file via browser intent: Reaches wrong page

Hello all,

My open source application needs to browse local HTML files on the SD
card, and WebView is not enough because I need history and bookmarks.

I wrote the following code. It correctly opens the browser, but fails
to reach catalog.html and in fact it just opens whatever page was last
browsed:

Uri uri = Uri.parse("content://com.android.htmlfileprovider/sdcard/
myapp/catalog.html");
Intent intent = new Intent();
intent.setData(uri);
intent.setClassName("com.android.browser",
"com.android.browser.BrowserActivity");
startActivity(intent);

Any idea why it does not open catalog.html ?
Thank you very much!

Nicolas Raoul
http://nicolas-raoul.blogspot.com

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

2. Best practise for game SurfaceView & other view layout

I am developing a game , I used the gametemplate by MrSnowflake. Thus
I have a GameView extending the SurfaceView with a thread that handles
the drawing etc. I need 4 buttons at the bottom of the screen. These
will only use touch events, the game will not use d-pad or trackball
events.

My questions :

1) Should the surfaceview draw and handle the "button" touch presses?
Or should i add button views to the parent activity, and those button
views will handles the touch presses?

2) What is the best practise for layouts for games where surfaceview's
are extended?

3) How does one change the size of the canvas thats provided via doDraw
(). Currently the canvas is filling the screen not allowing me to see
the button views that are below the surfaceview.

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

3. How to retain EditText data when "BACK" key is pressed

4. easy way to synchronize data between phone and server

5. How to use Arial font with Webview

6. How to license Google Closed Source Apps for device

7. buttons hidden