leinardi / FloatingActionButtonSpeedDial

A Floating Action Button Speed Dial implementation for Android that follows the Material Design specification (https://material.io/components/buttons-floating-action-button#types-of-transitions)
Apache License 2.0
1.46k stars 142 forks source link

Menu Item Focus Color #133

Open DatL4g opened 5 years ago

DatL4g commented 5 years ago

Step 1: Are you in the right place?

Step 2: Describe your environment

Step 3: Describe the problem:

The SpeedDialActionItems are not highlighted when the focus is on them. With the normal FAB this is the case and I need that for the menu as well. Especially on an AndroidTV

Steps to reproduce:

  1. Grab an AndroidTV and create a sample app with this lib
  2. click on the main fab
  3. then request focus on a menu item or navigate on it

Observed Results:

Default Main FAB Focused Main FAB Focused Main FAB and Menu Visisble Focused Menu FAB

Expected Results:

Highlighted Menu FAB on focus request

Relevant Code:

menuItems.add(new SpeedDialActionItem.Builder(downloadID, R.drawable.ic_cloud_download_white_24dp)
                .setFabImageTintColor(Color.WHITE)
                .create());
        menuItems.add(new SpeedDialActionItem.Builder(uploadID, R.drawable.ic_cloud_upload_white_24dp)
                .setFabImageTintColor(Color.WHITE)
                .create());
        speedDialView.addAllActionItems(menuItems);
<com.leinardi.android.speeddial.SpeedDialView
                        android:id="@+id/speedDial"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="bottom|end"
                        android:layout_margin="8dp"
                        app:sdMainFabOpenedSrc="@drawable/ic_close_white_24dp"
                        app:sdMainFabClosedSrc="@drawable/ic_cloud_white_24dp"
                        app:sdExpansionMode="top"
                        app:sdMainFabClosedBackgroundColor="@color/primaryColor"
                        app:sdMainFabOpenedBackgroundColor="@color/primaryColor"
                        app:sdMainFabClosedIconColor="@android:color/white"
                        app:sdMainFabOpenedIconColor="@android:color/white" />
DatL4g commented 5 years ago

@leinardi Any progress on this?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had activity in the last 60 days.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had activity in the last 60 days.