• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using Scrollview i cannot get the PROCEED button placed at bottom

 
Ranch Hand
Posts: 92
Android
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an issue using scroll view below are the cases

**CASE 1**

when i don't use scrollview i get the layout like [this][1] and this is the layout i need.
Problem with this approach is when the device resolution is low 412 x 732 or below i cant see the whole content of the layout for that reason **i need scrollview**

**CASE 2**

if i use scroll view i get the view like this [this][2] and [this][3] this which is perfect and what i need for 412 x 732 or below but the problem occur when i see the layout in higher resolution 1080x1920 i get [this][4]

what is need is in **CASE 2** for higher resolution device the PROCEED button should touch the bottom with bottomPadding=20dp just like **CASE 1** image

I Really appreciate if someone give me suggestion to acquire the layout that work for both the devices having high and low resolution



**Layout**

in layout i removed the scrollview and i get the layout that is good for high resolution device but with the low resolution i do not get the whole content to see because i need to scroll down


 [1]: https://i.stack.imgur.com/lFrNY.png
 [2]: https://i.stack.imgur.com/OIkFd.png
 [3]: https://i.stack.imgur.com/JPRHe.png
 [4]: https://i.stack.imgur.com/21OMe.png
 
Rancher
Posts: 665
10
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post dimens.xml too ?
 
Saad Zahoor
Ranch Hand
Posts: 92
Android
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Randy Tong
Rancher
Posts: 665
10
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would suggest you to use Constraint Layout.
 
Saad Zahoor
Ranch Hand
Posts: 92
Android
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Randy Tong I will look into ConstraintLayout
 
reply
    Bookmark Topic Watch Topic
  • New Topic