Is it possible to set an icon on top of a Floating action button android












1















I want to add the items to the cart. The cart will be Floating action button and item count I want to show on top of it. Please help me with this.



I want something like this



enter image description here










share|improve this question

























  • you can use framelayout to achieve this

    – Har Kal
    Nov 23 '18 at 10:29






  • 4





    check this link stackoverflow.com/a/49229997/5855551. Hope it will work for you.

    – Neha Chauhan
    Nov 23 '18 at 10:29











  • you can use a simple imageview too alongwith frame or relative layout

    – Vivek Mishra
    Nov 23 '18 at 10:29






  • 3





    Possible duplicate of Badge count on Floating action button

    – Rohit5k2
    Nov 23 '18 at 10:30
















1















I want to add the items to the cart. The cart will be Floating action button and item count I want to show on top of it. Please help me with this.



I want something like this



enter image description here










share|improve this question

























  • you can use framelayout to achieve this

    – Har Kal
    Nov 23 '18 at 10:29






  • 4





    check this link stackoverflow.com/a/49229997/5855551. Hope it will work for you.

    – Neha Chauhan
    Nov 23 '18 at 10:29











  • you can use a simple imageview too alongwith frame or relative layout

    – Vivek Mishra
    Nov 23 '18 at 10:29






  • 3





    Possible duplicate of Badge count on Floating action button

    – Rohit5k2
    Nov 23 '18 at 10:30














1












1








1








I want to add the items to the cart. The cart will be Floating action button and item count I want to show on top of it. Please help me with this.



I want something like this



enter image description here










share|improve this question
















I want to add the items to the cart. The cart will be Floating action button and item count I want to show on top of it. Please help me with this.



I want something like this



enter image description here







android material-design






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 10:29









Rohit5k2

14.4k42551




14.4k42551










asked Nov 23 '18 at 10:27









Angadiworld TechnologiesAngadiworld Technologies

54




54













  • you can use framelayout to achieve this

    – Har Kal
    Nov 23 '18 at 10:29






  • 4





    check this link stackoverflow.com/a/49229997/5855551. Hope it will work for you.

    – Neha Chauhan
    Nov 23 '18 at 10:29











  • you can use a simple imageview too alongwith frame or relative layout

    – Vivek Mishra
    Nov 23 '18 at 10:29






  • 3





    Possible duplicate of Badge count on Floating action button

    – Rohit5k2
    Nov 23 '18 at 10:30



















  • you can use framelayout to achieve this

    – Har Kal
    Nov 23 '18 at 10:29






  • 4





    check this link stackoverflow.com/a/49229997/5855551. Hope it will work for you.

    – Neha Chauhan
    Nov 23 '18 at 10:29











  • you can use a simple imageview too alongwith frame or relative layout

    – Vivek Mishra
    Nov 23 '18 at 10:29






  • 3





    Possible duplicate of Badge count on Floating action button

    – Rohit5k2
    Nov 23 '18 at 10:30

















you can use framelayout to achieve this

– Har Kal
Nov 23 '18 at 10:29





you can use framelayout to achieve this

– Har Kal
Nov 23 '18 at 10:29




4




4





check this link stackoverflow.com/a/49229997/5855551. Hope it will work for you.

– Neha Chauhan
Nov 23 '18 at 10:29





check this link stackoverflow.com/a/49229997/5855551. Hope it will work for you.

– Neha Chauhan
Nov 23 '18 at 10:29













you can use a simple imageview too alongwith frame or relative layout

– Vivek Mishra
Nov 23 '18 at 10:29





you can use a simple imageview too alongwith frame or relative layout

– Vivek Mishra
Nov 23 '18 at 10:29




3




3





Possible duplicate of Badge count on Floating action button

– Rohit5k2
Nov 23 '18 at 10:30





Possible duplicate of Badge count on Floating action button

– Rohit5k2
Nov 23 '18 at 10:30












4 Answers
4






active

oldest

votes


















0














In your coordinator layout please add these and you'll have the desired effect






    <android.support.design.widget.FloatingActionButton
android:id="@+id/panic_fab"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_gravity="bottom|right"
android:layout_marginBottom="15dp"
android:layout_marginRight="15dp"
android:background="@drawable/clip_gradient"
android:elevation="12dp"
android:src="@drawable/ic_error_outline_black_24dp"
app:elevation="6dp"
app:pressedTranslationZ="12dp" />

<android.support.design.widget.FloatingActionButton
android:id="@+id/panic_fab1"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="bottom|right"
android:layout_marginBottom="15dp"
android:layout_marginRight="15dp"
android:background="#fff"
android:elevation="12dp"
android:src="@drawable/notification"
app:elevation="8dp"
app:pressedTranslationZ="12dp" />





enter image description here






share|improve this answer
























  • I got it done completely with this code...with count also...Thanks

    – Angadiworld Technologies
    Nov 23 '18 at 12:12



















0














button tint to keep background color in your case it will be orange
src will be the above image which u have in white a dish container
you can use a frame layout and make another button and align than to top right



<android.support.design.widget.FloatingActionButton
android:id="@+id/add_new"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_add_white"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:backgroundTint="@color/red"
android:layout_margin="@dimen/margin_10"/>





share|improve this answer































    0














    i have tested this hope this will work for you. Do some changes acording to ua requirements



     <FrameLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    >
    <android.support.design.widget.FloatingActionButton
    android:id="@+id/add_new"
    android:layout_width="60dp"
    android:layout_height="@dimen/margin_60"
    android:src="@drawable/ic_add_white"
    android:padding="@dimen/margin_20"
    android:backgroundTint="@color/red"
    android:layout_margin="@dimen/margin_10"/>

    <android.support.design.widget.FloatingActionButton
    android:id="@+id/add_nw"
    android:layout_width="30dp"
    android:layout_height="30dp"
    android:layout_gravity="right"
    android:layout_marginTop="@dimen/margin_5"
    android:backgroundTint="@color/blue"
    android:src="@drawable/ic_add_white" />
    </FrameLayout>





    share|improve this answer
























    • Thanks...By using above code i got it done...FAB inside FAB. But now how to show count on inner FAB? Any Idea ?

      – Angadiworld Technologies
      Nov 23 '18 at 11:05











    • simply you can count the no of items in your cart. what i mean is that u vl b using an recycle view or list view inside ua cart . get there size and set that text to ua button

      – Syed Fuzail Abid
      Nov 23 '18 at 11:10













    • instead of using second FAB use textview there and set the circular drawable then u can easily set the text over there

      – Syed Fuzail Abid
      Nov 23 '18 at 11:15



















    0














    You can use constraintlayout. It will be easier i this case



    enter image description here






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53444914%2fis-it-possible-to-set-an-icon-on-top-of-a-floating-action-button-android%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      In your coordinator layout please add these and you'll have the desired effect






          <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab"
      android:layout_width="60dp"
      android:layout_height="60dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="@drawable/clip_gradient"
      android:elevation="12dp"
      android:src="@drawable/ic_error_outline_black_24dp"
      app:elevation="6dp"
      app:pressedTranslationZ="12dp" />

      <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab1"
      android:layout_width="20dp"
      android:layout_height="20dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="#fff"
      android:elevation="12dp"
      android:src="@drawable/notification"
      app:elevation="8dp"
      app:pressedTranslationZ="12dp" />





      enter image description here






      share|improve this answer
























      • I got it done completely with this code...with count also...Thanks

        – Angadiworld Technologies
        Nov 23 '18 at 12:12
















      0














      In your coordinator layout please add these and you'll have the desired effect






          <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab"
      android:layout_width="60dp"
      android:layout_height="60dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="@drawable/clip_gradient"
      android:elevation="12dp"
      android:src="@drawable/ic_error_outline_black_24dp"
      app:elevation="6dp"
      app:pressedTranslationZ="12dp" />

      <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab1"
      android:layout_width="20dp"
      android:layout_height="20dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="#fff"
      android:elevation="12dp"
      android:src="@drawable/notification"
      app:elevation="8dp"
      app:pressedTranslationZ="12dp" />





      enter image description here






      share|improve this answer
























      • I got it done completely with this code...with count also...Thanks

        – Angadiworld Technologies
        Nov 23 '18 at 12:12














      0












      0








      0







      In your coordinator layout please add these and you'll have the desired effect






          <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab"
      android:layout_width="60dp"
      android:layout_height="60dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="@drawable/clip_gradient"
      android:elevation="12dp"
      android:src="@drawable/ic_error_outline_black_24dp"
      app:elevation="6dp"
      app:pressedTranslationZ="12dp" />

      <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab1"
      android:layout_width="20dp"
      android:layout_height="20dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="#fff"
      android:elevation="12dp"
      android:src="@drawable/notification"
      app:elevation="8dp"
      app:pressedTranslationZ="12dp" />





      enter image description here






      share|improve this answer













      In your coordinator layout please add these and you'll have the desired effect






          <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab"
      android:layout_width="60dp"
      android:layout_height="60dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="@drawable/clip_gradient"
      android:elevation="12dp"
      android:src="@drawable/ic_error_outline_black_24dp"
      app:elevation="6dp"
      app:pressedTranslationZ="12dp" />

      <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab1"
      android:layout_width="20dp"
      android:layout_height="20dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="#fff"
      android:elevation="12dp"
      android:src="@drawable/notification"
      app:elevation="8dp"
      app:pressedTranslationZ="12dp" />





      enter image description here






          <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab"
      android:layout_width="60dp"
      android:layout_height="60dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="@drawable/clip_gradient"
      android:elevation="12dp"
      android:src="@drawable/ic_error_outline_black_24dp"
      app:elevation="6dp"
      app:pressedTranslationZ="12dp" />

      <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab1"
      android:layout_width="20dp"
      android:layout_height="20dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="#fff"
      android:elevation="12dp"
      android:src="@drawable/notification"
      app:elevation="8dp"
      app:pressedTranslationZ="12dp" />





          <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab"
      android:layout_width="60dp"
      android:layout_height="60dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="@drawable/clip_gradient"
      android:elevation="12dp"
      android:src="@drawable/ic_error_outline_black_24dp"
      app:elevation="6dp"
      app:pressedTranslationZ="12dp" />

      <android.support.design.widget.FloatingActionButton
      android:id="@+id/panic_fab1"
      android:layout_width="20dp"
      android:layout_height="20dp"
      android:layout_gravity="bottom|right"
      android:layout_marginBottom="15dp"
      android:layout_marginRight="15dp"
      android:background="#fff"
      android:elevation="12dp"
      android:src="@drawable/notification"
      app:elevation="8dp"
      app:pressedTranslationZ="12dp" />






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Nov 23 '18 at 10:44









      Sai JayantSai Jayant

      144212




      144212













      • I got it done completely with this code...with count also...Thanks

        – Angadiworld Technologies
        Nov 23 '18 at 12:12



















      • I got it done completely with this code...with count also...Thanks

        – Angadiworld Technologies
        Nov 23 '18 at 12:12

















      I got it done completely with this code...with count also...Thanks

      – Angadiworld Technologies
      Nov 23 '18 at 12:12





      I got it done completely with this code...with count also...Thanks

      – Angadiworld Technologies
      Nov 23 '18 at 12:12













      0














      button tint to keep background color in your case it will be orange
      src will be the above image which u have in white a dish container
      you can use a frame layout and make another button and align than to top right



      <android.support.design.widget.FloatingActionButton
      android:id="@+id/add_new"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:src="@drawable/ic_add_white"
      android:layout_alignParentBottom="true"
      android:layout_alignParentRight="true"
      android:backgroundTint="@color/red"
      android:layout_margin="@dimen/margin_10"/>





      share|improve this answer




























        0














        button tint to keep background color in your case it will be orange
        src will be the above image which u have in white a dish container
        you can use a frame layout and make another button and align than to top right



        <android.support.design.widget.FloatingActionButton
        android:id="@+id/add_new"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_add_white"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:backgroundTint="@color/red"
        android:layout_margin="@dimen/margin_10"/>





        share|improve this answer


























          0












          0








          0







          button tint to keep background color in your case it will be orange
          src will be the above image which u have in white a dish container
          you can use a frame layout and make another button and align than to top right



          <android.support.design.widget.FloatingActionButton
          android:id="@+id/add_new"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/ic_add_white"
          android:layout_alignParentBottom="true"
          android:layout_alignParentRight="true"
          android:backgroundTint="@color/red"
          android:layout_margin="@dimen/margin_10"/>





          share|improve this answer













          button tint to keep background color in your case it will be orange
          src will be the above image which u have in white a dish container
          you can use a frame layout and make another button and align than to top right



          <android.support.design.widget.FloatingActionButton
          android:id="@+id/add_new"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/ic_add_white"
          android:layout_alignParentBottom="true"
          android:layout_alignParentRight="true"
          android:backgroundTint="@color/red"
          android:layout_margin="@dimen/margin_10"/>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 23 '18 at 10:39









          Syed Fuzail AbidSyed Fuzail Abid

          112




          112























              0














              i have tested this hope this will work for you. Do some changes acording to ua requirements



               <FrameLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              >
              <android.support.design.widget.FloatingActionButton
              android:id="@+id/add_new"
              android:layout_width="60dp"
              android:layout_height="@dimen/margin_60"
              android:src="@drawable/ic_add_white"
              android:padding="@dimen/margin_20"
              android:backgroundTint="@color/red"
              android:layout_margin="@dimen/margin_10"/>

              <android.support.design.widget.FloatingActionButton
              android:id="@+id/add_nw"
              android:layout_width="30dp"
              android:layout_height="30dp"
              android:layout_gravity="right"
              android:layout_marginTop="@dimen/margin_5"
              android:backgroundTint="@color/blue"
              android:src="@drawable/ic_add_white" />
              </FrameLayout>





              share|improve this answer
























              • Thanks...By using above code i got it done...FAB inside FAB. But now how to show count on inner FAB? Any Idea ?

                – Angadiworld Technologies
                Nov 23 '18 at 11:05











              • simply you can count the no of items in your cart. what i mean is that u vl b using an recycle view or list view inside ua cart . get there size and set that text to ua button

                – Syed Fuzail Abid
                Nov 23 '18 at 11:10













              • instead of using second FAB use textview there and set the circular drawable then u can easily set the text over there

                – Syed Fuzail Abid
                Nov 23 '18 at 11:15
















              0














              i have tested this hope this will work for you. Do some changes acording to ua requirements



               <FrameLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              >
              <android.support.design.widget.FloatingActionButton
              android:id="@+id/add_new"
              android:layout_width="60dp"
              android:layout_height="@dimen/margin_60"
              android:src="@drawable/ic_add_white"
              android:padding="@dimen/margin_20"
              android:backgroundTint="@color/red"
              android:layout_margin="@dimen/margin_10"/>

              <android.support.design.widget.FloatingActionButton
              android:id="@+id/add_nw"
              android:layout_width="30dp"
              android:layout_height="30dp"
              android:layout_gravity="right"
              android:layout_marginTop="@dimen/margin_5"
              android:backgroundTint="@color/blue"
              android:src="@drawable/ic_add_white" />
              </FrameLayout>





              share|improve this answer
























              • Thanks...By using above code i got it done...FAB inside FAB. But now how to show count on inner FAB? Any Idea ?

                – Angadiworld Technologies
                Nov 23 '18 at 11:05











              • simply you can count the no of items in your cart. what i mean is that u vl b using an recycle view or list view inside ua cart . get there size and set that text to ua button

                – Syed Fuzail Abid
                Nov 23 '18 at 11:10













              • instead of using second FAB use textview there and set the circular drawable then u can easily set the text over there

                – Syed Fuzail Abid
                Nov 23 '18 at 11:15














              0












              0








              0







              i have tested this hope this will work for you. Do some changes acording to ua requirements



               <FrameLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              >
              <android.support.design.widget.FloatingActionButton
              android:id="@+id/add_new"
              android:layout_width="60dp"
              android:layout_height="@dimen/margin_60"
              android:src="@drawable/ic_add_white"
              android:padding="@dimen/margin_20"
              android:backgroundTint="@color/red"
              android:layout_margin="@dimen/margin_10"/>

              <android.support.design.widget.FloatingActionButton
              android:id="@+id/add_nw"
              android:layout_width="30dp"
              android:layout_height="30dp"
              android:layout_gravity="right"
              android:layout_marginTop="@dimen/margin_5"
              android:backgroundTint="@color/blue"
              android:src="@drawable/ic_add_white" />
              </FrameLayout>





              share|improve this answer













              i have tested this hope this will work for you. Do some changes acording to ua requirements



               <FrameLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              >
              <android.support.design.widget.FloatingActionButton
              android:id="@+id/add_new"
              android:layout_width="60dp"
              android:layout_height="@dimen/margin_60"
              android:src="@drawable/ic_add_white"
              android:padding="@dimen/margin_20"
              android:backgroundTint="@color/red"
              android:layout_margin="@dimen/margin_10"/>

              <android.support.design.widget.FloatingActionButton
              android:id="@+id/add_nw"
              android:layout_width="30dp"
              android:layout_height="30dp"
              android:layout_gravity="right"
              android:layout_marginTop="@dimen/margin_5"
              android:backgroundTint="@color/blue"
              android:src="@drawable/ic_add_white" />
              </FrameLayout>






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 23 '18 at 10:49









              Syed Fuzail AbidSyed Fuzail Abid

              112




              112













              • Thanks...By using above code i got it done...FAB inside FAB. But now how to show count on inner FAB? Any Idea ?

                – Angadiworld Technologies
                Nov 23 '18 at 11:05











              • simply you can count the no of items in your cart. what i mean is that u vl b using an recycle view or list view inside ua cart . get there size and set that text to ua button

                – Syed Fuzail Abid
                Nov 23 '18 at 11:10













              • instead of using second FAB use textview there and set the circular drawable then u can easily set the text over there

                – Syed Fuzail Abid
                Nov 23 '18 at 11:15



















              • Thanks...By using above code i got it done...FAB inside FAB. But now how to show count on inner FAB? Any Idea ?

                – Angadiworld Technologies
                Nov 23 '18 at 11:05











              • simply you can count the no of items in your cart. what i mean is that u vl b using an recycle view or list view inside ua cart . get there size and set that text to ua button

                – Syed Fuzail Abid
                Nov 23 '18 at 11:10













              • instead of using second FAB use textview there and set the circular drawable then u can easily set the text over there

                – Syed Fuzail Abid
                Nov 23 '18 at 11:15

















              Thanks...By using above code i got it done...FAB inside FAB. But now how to show count on inner FAB? Any Idea ?

              – Angadiworld Technologies
              Nov 23 '18 at 11:05





              Thanks...By using above code i got it done...FAB inside FAB. But now how to show count on inner FAB? Any Idea ?

              – Angadiworld Technologies
              Nov 23 '18 at 11:05













              simply you can count the no of items in your cart. what i mean is that u vl b using an recycle view or list view inside ua cart . get there size and set that text to ua button

              – Syed Fuzail Abid
              Nov 23 '18 at 11:10







              simply you can count the no of items in your cart. what i mean is that u vl b using an recycle view or list view inside ua cart . get there size and set that text to ua button

              – Syed Fuzail Abid
              Nov 23 '18 at 11:10















              instead of using second FAB use textview there and set the circular drawable then u can easily set the text over there

              – Syed Fuzail Abid
              Nov 23 '18 at 11:15





              instead of using second FAB use textview there and set the circular drawable then u can easily set the text over there

              – Syed Fuzail Abid
              Nov 23 '18 at 11:15











              0














              You can use constraintlayout. It will be easier i this case



              enter image description here






              share|improve this answer




























                0














                You can use constraintlayout. It will be easier i this case



                enter image description here






                share|improve this answer


























                  0












                  0








                  0







                  You can use constraintlayout. It will be easier i this case



                  enter image description here






                  share|improve this answer













                  You can use constraintlayout. It will be easier i this case



                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 23 '18 at 10:53









                  ABrABr

                  28927




                  28927






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53444914%2fis-it-possible-to-set-an-icon-on-top-of-a-floating-action-button-android%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Costa Masnaga

                      Fotorealismo

                      Sidney Franklin