BottomSheetLayout icon indicating copy to clipboard operation
BottomSheetLayout copied to clipboard

can we use Menu item instead of imageView for the button(i.e: imageViewArrow) ?

Open Srt9930 opened this issue 4 years ago • 0 comments

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

Srt9930 avatar Mar 05 '20 14:03 Srt9930