Dor Mesica
Dor Mesica

Reputation: 527

Android action bar with swipe tabs

In my application I have an action bar with swipe tabs like this:

I have something similar to this one

When I swipe between views the blue stripe moves only after a new view takes the whole screen.

How can I make it move dynamically according to the users swipes? (like in the Google Play, if the screen shows something between two views the stripe will be between the two tabs)

enter image description here

Upvotes: 1

Views: 908

Answers (2)

M D
M D

Reputation: 47817

Dynamic Tab Swipe Fragmentation Implementation:Dynamic Swipe Tab

Upvotes: 1

Ali Ahmad
Ali Ahmad

Reputation: 1351

Try this code to achieve your objective

Upvotes: 2

Related Questions