java - Drag and Drop in Android Studio layout editor -


i have problem adding images app's layout. i've searched answer while, when doing friendly people of internet told me, there still no success.

  • images in png format in res/drawable folder.
  • im trying drag'n'drop them content_*.xml preview.
  • i can add elements palette.
  • i using relativelayout.

any idea may cause of problem?

view of android studio screen:

one

  1. you must store images on drawables folders not in drawable -drawable-hdpi,drawable-mdpi,drawable-xhdpi.....

  2. you should drag imageview, add image src param. can't directly drag , drop images

  3. you can't add elements in "palette".

  4. relativelayout... okay, whatever layout it's good

update1

  1. to see drawable folders must clic on arrow (see image1) , put on "project" (image2)

one

two

  1. ----------> see point 1.

  2. yes can drag&drop elemenst, textviews, imageviews, edittext....


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -