• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Android Studio activity slide to directions.

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone!
I made a simple apk file that has 4 buttons. each button is redirecting to a new activity using a slide amin xml.
What I observed is that sliding to the right or left makes the pages stuck to each other, giving a continuous effect.
But this is not the case when I slide up or down. It has like a black gap between pages.
Are there any ways to make it look continuous?
Thank you in advance!
 
Rancher
Posts: 547
7
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you mean by continuous effect?
 
Darius Boteand
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Imagine two blank papers put on a table one next to the other.
From east to west and vis versa, it would slide from a page to another while stuck together. As if it was in fact one single big page.
From north to south and reverse, they are appearing separated (displaying a black background). The easiest experience that can relate to that is like using Microsoft Word when you get from a page to another.
 
Darius Boteand
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I found the answer myself.
In fact this "dark bar" was the colour of the navigation bar that followed the page when swiped up or down.
Changing its colour depending on what activity I go to was enough to solve the issue.
Thank you for trying at least.
 
I child proofed my house but they still get in. Distract them with this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic