android_guides icon indicating copy to clipboard operation
android_guides copied to clipboard

BottomNavigationView: cannot set actionLayout

Open SWRHARD opened this issue 7 years ago • 1 comments

Hi, i tried to add custom layout as menu item for bottom navigation view, but it isn't showing, i have this:

<item android:id="@+id/action_in_progress" android:enabled="true" android:actionLayout="@layout/in_progress_layout" android:title="@string/in_progress_screen_title" app:showAsAction="ifRoom" />

I found one desicion : inflate this layout programmatically and it's working well, but i cant understand how to set title for this, because i have message: "BottomNavigationItemView.setTitle can only be called from within the same library group (groupId=com.android.support). This API has been flagged with a restriction that has not been met."

Thanks)

SWRHARD avatar May 30 '18 02:05 SWRHARD

i too faced this issue

ShrutiGlocalView avatar Jun 11 '19 11:06 ShrutiGlocalView