Show share icon when there's enough room

This commit is contained in:
Naveen 2023-07-26 16:16:10 +05:30
parent b2ec0f19ea
commit aa683a0957
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3
6 changed files with 12 additions and 6 deletions

View file

@ -10,7 +10,8 @@
android:title="@string/delete" /> android:title="@string/delete" />
<item <item
android:id="@+id/cab_share" android:id="@+id/cab_share"
android:showAsAction="never" android:icon="@drawable/ic_share_vector"
android:showAsAction="ifRoom"
android:title="@string/share" /> android:title="@string/share" />
<item <item
android:id="@+id/cab_add_to_playlist" android:id="@+id/cab_add_to_playlist"

View file

@ -11,7 +11,8 @@
app:showAsAction="always" /> app:showAsAction="always" />
<item <item
android:id="@+id/cab_share" android:id="@+id/cab_share"
android:showAsAction="never" android:icon="@drawable/ic_share_vector"
android:showAsAction="ifRoom"
android:title="@string/share" /> android:title="@string/share" />
<item <item
android:id="@+id/cab_properties" android:id="@+id/cab_properties"

View file

@ -11,7 +11,8 @@
app:showAsAction="always" /> app:showAsAction="always" />
<item <item
android:id="@+id/cab_share" android:id="@+id/cab_share"
android:showAsAction="never" android:icon="@drawable/ic_share_vector"
android:showAsAction="ifRoom"
android:title="@string/share" /> android:title="@string/share" />
<item <item
android:id="@+id/cab_add_to_playlist" android:id="@+id/cab_add_to_playlist"

View file

@ -11,6 +11,7 @@
app:showAsAction="always" /> app:showAsAction="always" />
<item <item
android:id="@+id/cab_share" android:id="@+id/cab_share"
android:showAsAction="never" android:icon="@drawable/ic_share_vector"
android:showAsAction="ifRoom"
android:title="@string/share" /> android:title="@string/share" />
</menu> </menu>

View file

@ -17,7 +17,8 @@
app:showAsAction="always" /> app:showAsAction="always" />
<item <item
android:id="@+id/cab_share" android:id="@+id/cab_share"
android:showAsAction="never" android:icon="@drawable/ic_share_vector"
android:showAsAction="ifRoom"
android:title="@string/share" /> android:title="@string/share" />
<item <item
android:id="@+id/cab_properties" android:id="@+id/cab_properties"

View file

@ -11,7 +11,8 @@
app:showAsAction="always" /> app:showAsAction="always" />
<item <item
android:id="@+id/cab_share" android:id="@+id/cab_share"
android:showAsAction="never" android:icon="@drawable/ic_share_vector"
android:showAsAction="ifRoom"
android:title="@string/share" /> android:title="@string/share" />
<item <item
android:id="@+id/cab_properties" android:id="@+id/cab_properties"