leinardi / leinardi/FloatingActionButtonSpeedDial

Transparent color innder circle

Open
#84 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Priority: Medium Status: Stale Type: Bug
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: 1.0.2
  • Android version: 23 and 28
  • Support library version: 27.1.1
  • Device brand: Emulator
  • Device model: Emulator
Step 3: Describe the problem:
Steps to reproduce:
  1. Set alpha color to SpeedDialView or action item
  2. Views will have an inner circle
Observed Results:

Whenever you set a color with alpha channel to SpeedDialView (or it's actions), there will be an inner circle visible. This circle gets smaller, when you click hold the button(s).

Relevant Code:

Core sections of the code that I'm using:

private void initializeSpeedDial(){
	@ColorInt int bgColor = Color.argb(119, 26, 255, 68);
	SpeedDialView sdw = view.findViewById(R.id.speed_dial);

	sdw.addActionItem(new SpeedDialActionItem.Builder(
			R.id.some_id, R.drawable.ic_bubbles)
			.setFabBackgroundColor(bgColor)
			.setLabel("Test")
			.setFabImageTintColor(Color.WHITE)
			.create()
	);
}
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	android:layout_width="match_parent"
	android:layout_height="match_parent">

	<com.leinardi.android.speeddial.SpeedDialView
		android:id="@+id/speed_dial"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		app:sdExpansionMode="top"
		app:sdMainFabClosedBackgroundColor="#74F4"
		app:sdMainFabOpenedBackgroundColor="#74F4"
		app:sdMainFabClosedSrc="@drawable/ic_plus"
		/>
</RelativeLayout>
Screenshot:

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 reproducing the issue with SpeedDialView and SpeedDialActionItem using the provided Java and XML, setting an alpha color on the action item or main button. Trace the background rendering for those components and verify the behavior on Android versions 23 and 28. Done means transparent colors no longer produce a visible inner circle, including during press or hold.

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
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.