Android Question Universal tab-view

TheRealMatze

Active Member
Licensed User
Hi,
in B4J i can use a TabPane to create a tabbed view, but this is not a option for B4A. Which view is usable for a tabbed view on all 3 plattforms?

Regards
Matthias
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
 
Upvote 0

TheRealMatze

Active Member
Licensed User
Hi,
difficult - i can´t execute it.

Generiere R Datei. Error
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex

How can i fix it?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

TheRealMatze

Active Member
Licensed User
Ok, first error is gone - but in B4J i got

Parse den Code. Error
Fehler beim Parsen des Programms:
Fehlerbeschreibung: Unbekannter Typ: reflector
Haben Sie eine Library-Referenz vergessen?
Fehler in Zeile: 127 (ASViewPager)
Dim r As Reflector

I have included the libs

ASTabMenu 1.22
ASTabStrip 1.0
ASViewPager 1.09

Any ideas?
 
Upvote 0

TheRealMatze

Active Member
Licensed User
Thank you Erel, found it. And after closing the project and open a new one it works mostly. Only the Icons over the Tabs are not visible and the indicator-bar is not moving on resize. The Sub "GetRandomIcon" is executed, but nothing happend. When resize the form the white bar did not move to the new position.
Both is without any error - there is light on the end of the tunnel ;)

I know this is not really android-related, but the demo is only distributed as B4A.
 

Attachments

  • Resize.png
    Resize.png
    7.4 KB · Views: 117
Upvote 0

TheRealMatze

Active Member
Licensed User
Update: When i store the activated Tab and call the TabMenu_TabClick-Function with these in the MainForm_Resize it works a little better.
But if you double-click on the title and move to fullscreen the resize-event does not fire, so i need a way to detect every resize include a fullscreen-enter & leave.

The images are visible when the attribute "Tab Style" in the element ASTabMenu is set to TextIcon...
 
Upvote 0
Top