This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Using Scrollview i cannot get the PROCEED button placed at bottom  RSS feed

 
Ranch Hand
Posts: 91
Android
  • Mark post as helpful
  • send pies
  • 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
 
Ranch Foreman
Posts: 263
3
Android Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post dimens.xml too ?
 
Saad Zahoor
Ranch Hand
Posts: 91
Android
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Randy Tong
Ranch Foreman
Posts: 263
3
Android Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would suggest you to use Constraint Layout.
 
Saad Zahoor
Ranch Hand
Posts: 91
Android
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Randy Tong I will look into ConstraintLayout
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!