Pdf Tab Bar
View showing a horizontal list of document tabs. It is bound to a DocumentCoordinator through bindToDocumentCoordinator, which it mirrors: documents become tabs, the visible document is the selected tab, and tapping, closing or dragging a tab is forwarded back to the coordinator.
The tabs are rendered with Jetpack Compose in a single child view that takes the remaining width. The bar stays a horizontal LinearLayout, so integrators can keep adding their own views next to the tabs, such as an "add tab" button at index 0.
Types
Listener for clicks on tabs and their close buttons.
Listener for changes to tabs list.
Properties
Functions
Registers OnTabClickedListener to get notified about clicks on tabs in this tab bar. If the listener has been registered previously, this method will be a no-op.
Registers OnTabsChangedListener to get notified when tabs list changes. If the listener has been registered previously, this method will be a no-op.
Binds the tab bar to the DocumentCoordinator. Document coordinator is used to manage loaded documents and to switch between them.
Searches tabs for tab that corresponds to the given document descriptor.
Removes a previously registered OnTabClickedListener. If the listener hasn't been registered previously, this method will be a no-op.
Removes a previously registered OnTabsChangedListener. If the listener hasn't been registered previously, this method will be a no-op.
Sets the tab close mode which determines how the user is able to close documents. Defaults to showing tab close button on selected tab only.
Unbinds the tab bar from the DocumentCoordinator.