[android-developers] Running Camera app from source has bad menu layout

2011-07-13 Thread Rich E
Hi all, I have been trying to work with the Camera app from git and when I run it without _any_ modifications to the code, the menu fonts are wrong and the menu frame is drawn funky. Here are some screenshots of what I mean: http://dl.dropbox.com/u/3905723/android_debug/camera_app_big_font_1.png

[android-developers] hide top alternative keys on soft keyboard

2011-04-04 Thread Rich E
Hi all, I was wondering if it is possible to hide the top 'alternative' keys (!, ?, ", ', :, all in yellow) on the soft keyboard before showing it. I would like to conserve as much space as possible and as these keys would never be used in this specific case, it would be great if I could tell and

Re: [android-developers] Re: How to capture key events from View subclass

2011-04-02 Thread Rich E
tance() .newEditable("Placeholder"); } return _editable; } public boolean commitText(CharSequence text, int newCursorPosition) { _editable.append(text); _textView.setText(text); return true; } } On Thu, Mar 31, 2011 at 8:19 PM, Rich E wrote: > As I said in repl

Re: [android-developers] Re: How to capture key events from View subclass

2011-03-31 Thread Rich E
CTION_NEXT; return fic; } @Override public boolean onCheckIsTextEditor() { Log.d(TAG, "onCheckIsTextEditor"); return true; } On Tue, Mar 29, 2011 at 3:54 AM, Dianne Hackborn wrote: > On Mon, Mar 28, 2011 at 3:10 AM, Rich E wrote: > >> Can you explain to me h

Re: [android-developers] Re: How to capture key events from View subclass

2011-03-28 Thread Rich E
ain to me how I can 'listen' to these calls? This is exactly what I have been trying to achieve. Best, Rich > On Sun, Mar 27, 2011 at 2:24 AM, Rich E wrote: > >> Harsh, this doesn't make any sense. You are suggesting that implementing >> onKeyDown will cause onTou

Re: [android-developers] Re: How to capture key events from View subclass

2011-03-27 Thread Rich E
olean onTouchEvent(MotionEvent event) { >if (event.getAction() == MotionEvent.ACTION_DOWN) { >_active = false; >} > > this was what i was talking about > > > On Thu, Mar 24, 2011 at 5:56 PM, Rich E wrote: > >> >> On Tue, Mar 22, 2011 a

Re: [android-developers] Re: How to capture key events from View subclass

2011-03-27 Thread Rich E
nt > and do whatever you want to do with on press event > @Override >public boolean onTouchEvent(MotionEvent event) { >if (event.getAction() == MotionEvent.ACTION_DOWN) { >_active = false; >} > > this was what i was talking about > >

Re: [android-developers] Re: How to capture key events from View subclass

2011-03-27 Thread Rich E
ession you need to override > View#onCreateInputConnection(EditorInfo) in order to directly interact with > an IME. > Might be worth a shot... > > Pepijn > > > On 24/03/2011 13:26, Rich E wrote: > > > On Tue, Mar 22, 2011 at 6:14 PM, harsh chandel wrote: > >> try ont

Re: [android-developers] Re: How to capture key events from View subclass

2011-03-24 Thread Rich E
On Tue, Mar 22, 2011 at 6:14 PM, harsh chandel wrote: > try ontouch method > get x and y coordinate of the area clicked > and do as you want on the clicked event > > harsh chandel, I am not sure that I understand you.. I am using onTouchEvent() to trigger the keyboard (imm.showSoftInput() code i

[android-developers] How to capture key events from View subclass

2011-03-21 Thread Rich E
Hi, I'm trying to figure out how to capture keyboard input from a View, without subclassing EditText or something similar (the reason is that I have a complex bit of drawing to do, in which the text does not at all go in a horizontal direction, nor does it ever start at a consistent location.. so

[android-developers] is SaveRestoreState.java in 2.2?

2011-03-07 Thread Rich E.
Hi, I'm going through the ApiDemos in Android 2.2 and I can't get the SaveRestoreState example to do what the doc at the top is telling me it should do. I edit both text fields, hit the back button, then go back to SaveRestoreState, and the text fields are both reset (not just the top one). If