Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Using CoordinatorLayout with relative layout

 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All I am trying to implement a CoordinatorLayout with relative layout .


Now the problem is that when I am trying to scroll by relativeLayout but it doesn't happens.I guess I have missed something .scrolling at toolbar is giving me desired output but scrolling at relativeLayout is not giving desired output.How can I implement the same.
 
Rancher
Posts: 399
7
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want scroll relative layout to top?
 
priyanshi bhardwaj
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Randy Tong wrote:You want scroll relative layout to top?


Yes currently when I am scrolling at the toolbar relative layout get's scroll up but If I am scrolling at relative layout then no scrolling get's detected and relative layout doesn't get scroll to top. How to make this backward compatible also?
 
Randy Tong
Rancher
Posts: 399
7
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to put your relative layout inside a Scroll View.
 
priyanshi bhardwaj
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Randy Tong wrote:You need to put your relative layout inside a Scroll View.


Tried that also it is allowing scrolling inside relative layout but I want relative layout to go on top(same effect which appears when I am scrolling at toolbar) when scroll happens on it.
 
Rancher
Posts: 2143
15
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you elaborate little more?
 
priyanshi bhardwaj
Ranch Hand
Posts: 194
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Swastik Dey wrote:Can you elaborate little more?



I have tried another Hack It is working for me now. Let's see if it again creates any problem I will let you know.
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!