Does android native support items to Floating Action Button? -
i want create floating action button items picture. & add text beside item. picture taken google website. found libraries solve problem. this & this pretty curious android native design libraries. 1 have idea how make possible native library?
picture:
update: code written
floatingactionbutton fab = (floatingactionbutton) findviewbyid(r.id.fab); fab.setonclicklistener(new view.onclicklistener() { @override public void onclick(view view) { // actions here } });
xml follows
<android.support.design.widget.floatingactionbutton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin" android:src="@android:drawable/ic_dialog_email" app:layout_behavior="com.alhikmah.weather360.utility.scrollawarefabbehavior" />
after finish searching , decide use floatingactionbutton library achieve such effect need. didn't find native library this.
Comments
Post a Comment