A Side Tabs Custom Story – Le démarrage
La légende de la barre d’outils inférieure
Détails supplémentaires
customTabsIntent.intent.putExtra(CustomTabsIntent.EXTRA_ENABLE_URLBAR_HIDING, false)
Installer
implementation ‘androidx.browser:browser:1.2.0’
android:name=”.ui.dig.DigBroadcastReceiver”
android:enabled=”true” />
Maîtriser la barre d’outils inférieure
fun prepareBottombar(builder: CustomTabsIntent.Builder) {
builder.setSecondaryToolbarViews(
DigBroadcastReceiver.createRemoteViews(main, false, false),
DigBroadcastReceiver.clickableIDs,
DigBroadcastReceiver.getPendingIntent(main)
)
}
prepareBottomBar(builder)
fun getDigSession(): CustomTabsSession? {
if (client == null) {
session = null
} else if (session == null) {
session = client.newSession(RabbitCallback())
setCurrentSession(session)
}
return session
}
session = getDigSession()