android - How to move image view in xml -


I'm new in Android development and I use the Eclipse Java to develop the app. My problem is that I can do element like Image View or Button in Adobe Flash where I want it. how can I do this. Relative layout keeps the elements relative to other objects. Can I change the relative layout and change it to me? (I mean which layout) Thanks here is my code

  & lt; RelativeLayout xmlns:. Android = "http://schemas.android.com/apk/res/android" xmlns: device = "http: //schemas.android.com/tools" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: background = "# ff8D8D8D" tool: Reference = "com.example.deniz.MainActivity"> & Lt; imageView android: id = "@ + id / imageView1" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: layout_alignParentLeft = "true" Android: layout_alignParentTop = "true" Android: scaleType = "fitXY" android: src = "@ Drawable / back" /> & Lt; Android: layout_alignParentRight = "true" android: layout_alignParentTop = "true" android: onClick = "close_app" Android: source = "wrap_content" android: layout_height = "wrap_content" android: id = "@ + id / off" = "@ Drawable / exit" /> & Lt; Android: layout_highth = "wrap_content" Android: layout_alignParentLeft = "true" Android: layout_alignParentTop = "true" android: layout_marginLeft = "22dp" Android: layout_margin: id = "@ + id / new_project" android: layout_width = "wrap_contject" TOP = "24dp" android: onClick = "open_new" Android: src = "@ drawable / Btnm" / & gt; & Lt; imageView android: id = "@ + id / little" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_alignLeft = "@ + id / new_project" Android: layout_below = "@ + id / new_project" Android: Leaut_margin = Lead = "L6dp" Android: Leaut_mrjintop = "L8dp" Android: src = "@ drawable / Btnm" / & gt; & Lt; Android: layout_height = "wrap_content" android: layout_alignParentBottom = "true" android: layout_marginBottom = "16dp" Android: layout_toRightOf = "@ + ID / New_project": imageView Android: id = "@ + id / ImageView01" Android: layout_width = "wrap_content" "Android: scaleType =" fitCenter "Android: src =" @drawable / buttonam "/> & Lt; / RelativeLayout & gt; I'm not an experienced Android developer (clearly reflects my reputation),  

But with the humble experience that has been, I think I will give a problem to your problem

You must stick to RelativeLayout and use any of these functions / a mixture:

  • - Versions of honeycomb
  • setLayoutParams (LayoutParams parameter)

Available for a very recommended or used ViewGroup which, , Is not really what you 'seek'

Although mostly used layout - Say, LinearLayout, RelativeLayout -. Sufficient possibility to apply the most design, I hope my answer is that what you get is what you are aiming to do just that

Happy development!

Cheers!


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -