0

I have a problem to include lots of pictures and buttons in the xml, I have tried to ScrollView but pictures and buttons can not be made ​​up as I wanted.

How can i use ScrollView and AbsoluteLayout in one xml so I can include more pictures and buttons in the xml?

adig
  • 115
  • 1
  • 3
  • 9
  • paste the layout code in the question – Pratik Mar 19 '12 at 13:05
  • 2
    Never use AbsoluteLayout at all, it's deprecated for a reason. You will run into trouble on many devices. –  Mar 19 '12 at 13:06
  • never use AbsoluteLayout for design android app, it is not reliable in android ok, and past ur design layouts here so we can give some solution right? – Hasmukh Mar 19 '12 at 13:09
  • so how can I add more buttons and an image if the screen is full xml? – adig Mar 19 '12 at 13:27

1 Answers1

-2

NEVER use AbsoluteLayout! Instead try and recreate your layout using a RelativeLayout or LinearLayout.

Remember a ScrollView can only have a single Child layout, so use a ViewGroup here.

Mimminito
  • 2,803
  • 3
  • 21
  • 27
  • Sorry I dont follow. What do you need to see? – Mimminito Mar 19 '12 at 14:36
  • so how can I add more buttons and an image if the screen is full xml? is it impossible? – adig Mar 19 '12 at 16:04
  • Your layout will have the following logic: ScrollView -> LinearLayout-> TextView. Place your views inside the LinearLayout. This is a simple layout question, which can be answered by viewing the Android Samples – Mimminito Mar 19 '12 at 16:06