0

Show Action's Toast in a custom view

view story
linux-howto

http://stackoverflow.com – I needed to create a custom view to set an extra Action in a Sherlock ActionBar. Here's the xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="right" android:orientation="horizontal" > <ImageButton android:id="@+id/edit" style="@style/Widget.Sherlock.ActionButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_edi (HowTos)