Skip to content

Commit

Permalink
Dim icons while they are connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
hufman committed Nov 3, 2024
1 parent c380147 commit 777086b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/res/layout/fragment_connection_status.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
android:src="@{viewModel.btTransportIcon}"
app:tint="@{viewModel.btTransportColor}"
app:animator="@{viewModel.btTransportIsConnecting ? @animator/pulse_in : null}"
android:alpha="@{viewModel.btTransportIsConnecting ? 1.0f : 0.2f}"
/>
<TextView
android:layout_width="wrap_content"
Expand All @@ -45,6 +46,7 @@
android:src="@{viewModel.bclIcon}"
app:tint="@{viewModel.bclColor}"
app:animator="@{viewModel.bclIsConnecting ? @animator/pulse_in : null}"
android:alpha="@{viewModel.bclIsConnecting ? 1.0f : 0.2f}"
/>
<TextView
android:layout_width="wrap_content"
Expand Down

0 comments on commit 777086b

Please sign in to comment.