Android Question DSTablayout is not work properly for fixed mode and fill gravity with 2 pages.

pmt

Member
Licensed User
Hi everyone,

I try Corwin 's Navigationview sample project from https://www.b4x.com/android/forum/attachments/navigationview1_0-zip.47462/

The sample project set tab mode to Fixed and gravity to Fill I am not change anything except
I try DSTablayout with 2 pages in the PageContainer ( page0 , page 1) .

It work as expected for portrait mode but not work for lanscape mode.

For lanscape mode the tab indicators are small and center as Fixed and Center mode ( it should be Fill mode), but it works as expected with 3 pages and more .

Take a look at the pictures
open

open


How to fix this problem?

Regards,
 
Last edited:

pmt

Member
Licensed User

Attachments

  • Screenshot_portrait.png
    Screenshot_portrait.png
    78.1 KB · Views: 234
  • Screenshot_portrait2.png
    Screenshot_portrait2.png
    38.5 KB · Views: 219
  • Screenshot_landscape.png
    Screenshot_landscape.png
    49.5 KB · Views: 217
  • Screenshot_landscape.png
    Screenshot_landscape.png
    49.5 KB · Views: 152
  • Screenshot_portrait2.png
    Screenshot_portrait2.png
    38.5 KB · Views: 158
  • Screenshot_portrait2.png
    Screenshot_portrait2.png
    38.5 KB · Views: 161
  • Screenshot_landscape.png
    Screenshot_landscape.png
    49.5 KB · Views: 153
Upvote 0

pmt

Member
Licensed User
Sorry again the uploaded picture did not show while upload but show after post reply , I don't know it already uploaded.

Regards,
 
Upvote 0

corwin42

Expert
Licensed User
Longtime User
Since the "look and feel" of the objects is from the original implementation of the support library I guess this is normal behavior.
 
Upvote 0
Top