Use an extended FAB in GpuDriverActivity

This commit is contained in:
lynxnb 2022-11-21 09:58:10 +01:00 committed by Mark Collins
parent 163f4f2014
commit ec220c8ea9
2 changed files with 5 additions and 3 deletions

View File

@ -19,16 +19,17 @@
android:padding="@dimen/grid_padding"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
android:id="@+id/add_driver_button"
style="@style/Widget.MaterialComponents.FloatingActionButton"
style="@style/Widget.MaterialComponents.ExtendedFloatingActionButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
android:layout_margin="16dp"
android:contentDescription="@string/add_gpu_driver"
android:src="@drawable/ic_add"
android:text="@string/install"
app:hoveredFocusedTranslationZ="0dp"
app:icon="@drawable/ic_add"
app:pressedTranslationZ="0dp" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -89,6 +89,7 @@
<string name="delete_gpu_driver">Delete this GPU driver</string>
<string name="system_driver">System Driver</string>
<string name="system_driver_desc">The GPU driver provided by your system</string>
<string name="install">Install</string>
<string name="gpu_driver_install_inprogress">Installing the GPU driver…</string>
<string name="gpu_driver_install_success">GPU driver installed successfully</string>
<string name="gpu_driver_install_invalid_archive">Failed to unzip the provided driver package</string>