BottomSheetLayout
BottomSheetLayout copied to clipboard
can we use Menu item instead of imageView for the button(i.e: imageViewArrow) ?
can we use Menu item instead of imageView for the button (i.e: imageViewArrow) ? please answer me quickly.
menu.xml >> bottom_navigation_menu.xml
<menu>
<item android:id="@+id/profileFragment"
android:title="Profile"
android:icon="@drawable/ic_baseline_person_24"
app:showAsAction="always" />
</menu>
Activity.kt
profileFragment.setOnClickListener { bottomBarLayout.toggle() }
bottomBarLayout.setOnProgressListener { progress -> rotateArrow(progress)}
Here profileFragment giving an error (unresolved symbol : profileFragment) and a suggestion Create abstract property 'profileFragment'
@qhutch please help