• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Android Studio activity slide to directions.

 
Ranch Hand
Posts: 55
  • 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!
 
Master Rancher
Posts: 571
9
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: 55
  • 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: 55
  • 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:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic