Wednesday 15 May 2013

android - creating arrow keys on center of screen -


I need to control a robot for I control - an application (top, bottom Right, left) I'm writing the keys - I have used the Eclipse designer to make it, but maybe this is not possible / I have to do something like this:
 arrow keys
How do I create such buttons in the center of the screen?
Is there a better way to make arrow keys on Android?

"itemprop =" text ">

here you can:

  & lt; RelativeLayout xmlns: Android = "http://schemas.android.com/apk/Native/Android" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" & gt; & Lt; Android: id = "@ + id / View1" Android: layout_width = "30dp" Android: layout_height = "30dp" Android: layout_centerHorizontal = "true" android: layout_centerVertical = "true" /> Android: Android: Android: Android: Android: Layout_bale = "@ + ID / View 1" Android: Layout_centerhotel = "True" Android: src = "@Drawable / IC_Luncher" /> & Lt; imageView android: id = "@ + id / imageView2" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_above = "@ + id / View1" Android: layout_centerHorizontal = "true" android: src = "@ Drauble / IC_Luncher "/> & Lt; imageView android: id = "" @ + id / imageView3 Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_centerVertical = "true" Android: layout_toRightOf = "@ + id / View1" android: src = "@ Drauble / IC_Luncher "/> & Lt; imageView android: id = "" @ + id / imageView4 Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_centerVertical = "true" Android: layout_toLeftOf = "@ + id / View1" android: src = "@ Drauble / IC_Luncher "/> & Lt; / RelativeLayout & gt;   

Of course, you can change the way a Imejbtn the Imejwu else. Make sure that if you first change the name of the scene, you can update the name in the 4 image view. And be aware that the corner of each image are overlapping each other.

No comments:

Post a Comment