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. same property in PRODUCT_PACKAGE_OVERLAYS and system.prop

in vendor/xxx/system.prop
    ro.sf.lcd_density = 160

in vendor/xxx/xxx.mk
    PRODUCT_PACKAGE_OVERLAYS += ro.sf.lcd_density = 240

after I build

on the device,
   ...
   ro.sf.lcd_density = 160
   ...
   #
   # ADDITIONAL_BUILD_PROPERTIES
   #
   ...
   ro.sf.lcd_density = 240
   ...

so I expected ro.sf.lcd_density is overridden to 240 but

the screen seems like 160dpi and when I type "getprop
ro.sf.lcd_density" it returns 160.

Is this normal? the second property in build.prop is ignored?

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

2. Abridged summary of android-developers@googlegroups.com - 100 Messages in 66 Topics

Building the google CalendarAPI sample code causing error for this line:

*import com.google.android.gdata.client.AndroidXmlParserFactory;*

Error: "*The import com.google cannot be solved"*

I know I need to install the google data library to my android-sdk-window
directory, but I don;t know where to get the .jav code.

Jingyu Li

-- 

3. Code example on possibilities of android . permission . STATUS_BAR?

4. Rebuilding just a single external project (wpa_supplicant) - toolchain problems

5. Talking to wpa_supplicant for TTLS / PEAP / TLS (Runtime+wpa_cli / JNI / LocalSocket(Unix domain socket) / wpa_supplicant.conf?)

6. Expanding the status bar from an app (android . permission . EXPAND_STATUS_BAR?)

7. Confused about activity lifecycle usage in the notepad example