Created
February 15, 2020 12:02
-
-
Save bikashthapa01/7eb69ebb930d5026a7d84dd85e328b3f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <com.google.android.material.floatingactionbutton.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:layout_marginEnd="32dp" | |
| android:layout_marginBottom="36dp" | |
| app:backgroundTint="@color/colorPrimaryDark" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintEnd_toEndOf="parent" | |
| app:maxImageSize="35dp" | |
| app:srcCompat="@drawable/ic_add_black_24dp" /> <!-- create this icon in drable folder --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FloatingActionButton fab = findViewById(R.id.fab); | |
| fab.setOnClickListener(new View.OnClickListener() { | |
| @Override | |
| public void onClick(View view) { | |
| //todo | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment