- Breadcrumbview for activity/fragment navigation and tracking.
- Easy to use library.
- Add Item
- Remove Item
- Change home drawable
- Change separator drawable
- Change text color
- Change text size
- Change text style
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
implementation 'com.github.santosh-kumar-kaushal:BreadcrumbSample:1.1'
android:id="@+id/breadcrumbView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"/>
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
breadcrumbView=findViewById(R.id.breadcrumbView)
breadcrumbView.addHomeDrawable(R.drawable.breadcrumb_home_icon)
}
breadcrumbView.addItem(breadcrumb)
breadcrumbView.removeItem()
data class BreadcrumbData(var breadCrumb: ItemType = ItemType.BODY,
var title: String):Breadcrumb(breadCrumb,title)
{
override var textColor: Int=R.color.bread_crumb_color
override var textSize: Int=15
override var separatorDrawable: Int=R.drawable.breadcrumb_body_separator
override var textStyle: TextStyle = TextStyle.BOLD_ITALIC
}
Copyright (C) 2020 Santosh Kumar
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.