leinardi / leinardi/FloatingActionButtonSpeedDial

Custom Fab Size

Open
#155 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.5k
Forks
149
PR merge metrics
No merged PRs in 30d

Description

Step 1: Are you in the right place?
  • I have verified there are no duplicate active or recent bugs, questions, or requests
  • I have verified that I am using the latest version of the library.
Step 2: Describe your environment
  • Library version: 3.1.1
  • Android version: all
Step 3: Describe the problem:

Option to customize fab size is not available. There is a default padding around the fab and if a custom size if given to the speedDialView the view starts to get cut from the bottom and start

Steps to reproduce:
  1. Set attribute layout_width = "50dp"
  2. Set attribute layout_height = "50dp"
Observed Results:
  • The Fav view starts to cut from start and bottom
Expected Result:
  • The whole size of the view would reduce
Relevant Code:
    android:layout_width="50dp"
    android:layout_height="50dp"

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the speed-dial view and its handling of Android layout_width and layout_height, using the 50dp example as the reproduction case. Check how the default padding affects a custom-sized FAB and verify that the complete view remains visible at the requested dimensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
design, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.