How to set the colour to the key in the Keyboard of Emulator

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How to set the colour to the key in the Keyboard of Emulator

Postby sathishkumar.sky » Tue Jan 06, 2009 2:25 pm

Hi All,

I would like to change the color of one key in the keyboard of Emulator.
I am not getting the com.android.internal.R.* in the findViewById function call.

Sample code:

Button bt = (Button) findViewById(com.android.internal.R.id.a)

Please help me in this aspect.

Thanks & Regards,
Sathish Kumar Y
sathishkumar.sky
Freshman
Freshman
 
Posts: 2
Joined: Tue Jan 06, 2009 2:02 pm

Top

Postby Quetzalcoatl » Tue Jan 06, 2009 5:58 pm

Sorry, you want to programatically change the colour of a hardware key?
Image
Quetzalcoatl
Senior Developer
Senior Developer
 
Posts: 129
Joined: Sat Oct 18, 2008 8:21 pm
Location: near Manchester, UK

yes change of color of key in the emulator.

Postby sathishkumar.sky » Wed Jan 07, 2009 7:41 am

Yes, I would like to change the color of the key available in the emulator programatically.
Do you mean the Keyboard viewed in the emulator is equivalent to hardware keyboard?
If the kwyboard is a hardware keyboard, then atleast I want to highlight the specific key in the board.

Please help me in this regard.
Thanks & Regards,
Sathish Kumar Y
sathishkumar.sky
Freshman
Freshman
 
Posts: 2
Joined: Tue Jan 06, 2009 2:02 pm

Postby Quetzalcoatl » Wed Jan 07, 2009 10:13 am

Yeah, the keyboard that is displayed on the emulator is (for now at least) equivalent to the hardware keyboard on the device. Maybe that will change on the new update when it reaches us, as I believe there is supposed to be support for an on-screen keyboard.
Sorry I can't help with solving your problem but I assume that the entire keyboard is lit up by one light source (I've not taken too many phones to pieces :D ) so it might be impossible. As we've got no on-screen keyboard yet I'm sure there must be a way of highlighting a keypress on it when it finally appears :)
Image
Quetzalcoatl
Senior Developer
Senior Developer
 
Posts: 129
Joined: Sat Oct 18, 2008 8:21 pm
Location: near Manchester, UK

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests