Is it possible to set an icon on top of a Floating action button android
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
android material-design
add a comment |
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
android material-design
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
add a comment |
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
android material-design
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
android material-design
android material-design
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
add a comment |
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
add a comment |
4 Answers
4
active
oldest
votes
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" />
I got it done completely with this code...with count also...Thanks
– Angadiworld Technologies
Nov 23 '18 at 12:12
add a comment |
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"/>
add a comment |
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>
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
add a comment |
You can use constraintlayout. It will be easier i this case
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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" />
I got it done completely with this code...with count also...Thanks
– Angadiworld Technologies
Nov 23 '18 at 12:12
add a comment |
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" />
I got it done completely with this code...with count also...Thanks
– Angadiworld Technologies
Nov 23 '18 at 12:12
add a comment |
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" />
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" />
<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" />
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
add a comment |
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
add a comment |
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"/>
add a comment |
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"/>
add a comment |
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"/>
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"/>
answered Nov 23 '18 at 10:39
Syed Fuzail AbidSyed Fuzail Abid
112
112
add a comment |
add a comment |
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>
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
add a comment |
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>
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
add a comment |
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>
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>
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
add a comment |
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
add a comment |
You can use constraintlayout. It will be easier i this case
add a comment |
You can use constraintlayout. It will be easier i this case
add a comment |
You can use constraintlayout. It will be easier i this case
You can use constraintlayout. It will be easier i this case
answered Nov 23 '18 at 10:53
ABrABr
28927
28927
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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