Regarding on key left

by Gladys » Thu, 25 Feb 2010 14:33:49 GMT


Sponsored Links
 Hi,

I am trying to move a window by changing its attributes when ever a
key is pressed.

The code i am using is
WindowManager.LayoutParams lp = getAttributes();
lp.x+=10;
setAttributes(lp);


for key right event.

This is working.but the left key event where i am using lp.x-=10 is
not working.

I am using this code in OnKeyDown() in PhoneWindow.java.

Can anyone help me out?

Thanks in advance

--



Other Threads

1. Is there any guides for porting android into x86?

Dear friends:
        Is there any doc exist for guiding porting android into x86?
Such as todo lists, how to do,what to do? Thanks!

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Is there any version exist that can be directly used in x86 based netbooks

HI Friends:
        I'm a fresh guy on Android system. And have the following
questions:
        1. Can Android 1.5 be directly used on X86 based netbooks? I
heard that there's a project named "Asus eee701", but in the branch of
"Cupcake", I don't konw if "Cupcake" means the same for
"Android",what's the  difference? If I use repo init -u
git://android.git.kernel.org/platform/manifest.git -b android-1.5 to
download the packages, can it works?
        2.Further more,Android's mediaframe work OpenCore's current
version is V2.02, is there any formal release than can be directly in
x86 based netbooks or laptops. I want to add more codecs into it.so
need to get the code that fit x86 architecture and can be easily
built.Is cupcake1.5 fit this?
        Thanks in advance!

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Android on HTC Alpine

4. gl functions not working, egl functions are working - android port to Overo TI OMAP 3503

5. How can i get the string from edittext?

6. Creating and showing a view/window from a Service

7. Textview Scrolling