- Dec 12, 2022
- 357
- 2
This class helps you create a simple Text Based Bread Crumbs Feature which supports CharSequence too.
Usage is very simple.
Create a list which has individual items to be shown as bread crumbs. This can be text / charSequence or mix of both.
Initialize TextCrumbs and pass this list and a label where the crumbs are to be displayed.
Everytime you change the list, call refresh method.
Note: By default the label will be horizontally scrollable but somehow charsequence spans do not allow for dragging, so only way a person can scroll it is using separators. To make it easier for user, place your label in a HorizontalScrollView or any other way you like. Source Code is attached.
Spoiler: Description
TextCrumbs
Author: epiCode
Version: 1
Usage is very simple.
Create a list which has individual items to be shown as bread crumbs. This can be text / charSequence or mix of both.
Initialize TextCrumbs and pass this list and a label where the crumbs are to be displayed.
Everytime you change the list, call refresh method.
Note: By default the label will be horizontally scrollable but somehow charsequence spans do not allow for dragging, so only way a person can scroll it is using separators. To make it easier for user, place your label in a HorizontalScrollView or any other way you like. Source Code is attached.
Spoiler: Description
TextCrumbs
Author: epiCode
Version: 1
- TextCrumbs
- Events:
- _Clicked (Position As Int)
- Fields:
- ClickColor As Int
- underline As Boolean
- Functions:...
- Events:
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید