• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Android Studio activity slide to directions.

 
Ranch Hand
Posts: 56
  • 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: 666
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
What you mean by continuous effect?
 
Darius Boteand
Ranch Hand
Posts: 56
  • 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: 56
  • 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.
 
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic