Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to custom size image full width and height inside CounterFab #5

Closed
NguyenVanLinh2016 opened this issue Jul 14, 2017 · 2 comments
Closed
Labels

Comments

@NguyenVanLinh2016
Copy link

<com.andremion.counterfab.CounterFab
android:id="@+id/image_view_cart"
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/shoppingcart"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/margin_8dp"
android:layout_centerVertical="true"
app:backgroundTint="@null"
android:background="@null"
android:scaleType="centerCrop"/>

@NguyenVanLinh2016
Copy link
Author

nh ch p man hinh 2017-07-14 luc 23 11 08

@andremion
Copy link
Owner

The CounterFab flows the same rule of FloatingActionButton because it is a FAB.
So you can set the size using the xml attribute app:fabSize or the method setSize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants