1

I want to create a floating action button with items like the picture. & also add some text beside the item. The picture is taken from google website. But i found some libraries to solve the problem. like this & this I am pretty much curious about android native design libraries. Any one have idea how to make possible with native library?

Picture:

enter image description here

Update: Code i written

 FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
    fab.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
           // my actions is here 
        }
    });

Xml are as 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" />
Shihab Uddin
  • 6,699
  • 2
  • 59
  • 74
  • Possible duplicate of [FloatingActionButton example with Support Library](http://stackoverflow.com/questions/30576450/floatingactionbutton-example-with-support-library) – MurugananthamS Aug 08 '16 at 11:55
  • @muruga5000 the question your given link is not consists the solution what i am asking. I need to add items to floating action bars with description. – Shihab Uddin Aug 08 '16 at 12:02

1 Answers1

0

After finish my searching , i am decide to use FloatingActionButton library to achieve such effect what i need. I didn't find any native library to do this.

Shihab Uddin
  • 6,699
  • 2
  • 59
  • 74