lurbas / ListItemView

Implementation of List Item from Material Design
Apache License 2.0
570 stars 65 forks source link

action withText support #3

Open passsy opened 7 years ago

passsy commented 7 years ago

Items without icon are always displayed in the overflow menu.

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <item
        android:id="@+id/action_heart"
        android:title="heart"
        app:showAsAction="always|withText" />
</menu>

my list item view is configured correctly

listItemView.setMenuItemsRoom(2)

It would be cool when menu items without icon could be displayed as text only flat buttons.

lurbas commented 7 years ago

Sounds like a nice improvement. Will have a little bit more time this month, and can think about it. BTW any PR is always welcome.