diff --git a/app/src/main/java/com/futo/platformplayer/dialogs/ConnectCastingDialog.kt b/app/src/main/java/com/futo/platformplayer/dialogs/ConnectCastingDialog.kt index 9291424b4e204c86e33d3ea8c2ec3698e8383c18..e9e826fec627d7d9ccedfc8772c06b3bdf26529c 100644 --- a/app/src/main/java/com/futo/platformplayer/dialogs/ConnectCastingDialog.kt +++ b/app/src/main/java/com/futo/platformplayer/dialogs/ConnectCastingDialog.kt @@ -7,6 +7,7 @@ import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.widget.Button +import android.widget.ImageButton import android.widget.ImageView import android.widget.TextView import androidx.recyclerview.widget.LinearLayoutManager @@ -26,8 +27,8 @@ import kotlinx.coroutines.launch class ConnectCastingDialog(context: Context?) : AlertDialog(context) { private lateinit var _imageLoader: ImageView; private lateinit var _buttonClose: Button; - private lateinit var _buttonAdd: Button; - private lateinit var _buttonScanQR: Button; + private lateinit var _buttonAdd: ImageButton; + private lateinit var _buttonScanQR: ImageButton; private lateinit var _textNoDevicesFound: TextView; private lateinit var _textNoDevicesRemembered: TextView; private lateinit var _recyclerDevices: RecyclerView; diff --git a/app/src/main/res/layout/dialog_casting_connect.xml b/app/src/main/res/layout/dialog_casting_connect.xml index 5cb43c350d64b93f12fe467540dffb593bbffb17..24777828ef1006dd364d6873227a0696ddc56727 100644 --- a/app/src/main/res/layout/dialog_casting_connect.xml +++ b/app/src/main/res/layout/dialog_casting_connect.xml @@ -81,43 +81,38 @@ <TextView android:id="@+id/text_remembered_devices" - android:layout_width="wrap_content" + android:layout_width="0dp" + android:layout_weight="3" android:layout_height="wrap_content" android:text="@string/remembered_devices" android:layout_marginStart="20dp" + android:layout_marginEnd="20dp" android:textSize="14dp" + android:ellipsize="end" android:textColor="@color/white" + android:maxLines="1" android:fontFamily="@font/inter_regular" /> - <Button + <ImageButton android:id="@+id/button_scan_qr" - android:layout_width="0dp" - android:layout_weight="1.7" - android:layout_height="wrap_content" - android:text="@string/scan_qr" - android:textSize="14dp" - android:textAlignment="center" - android:layout_marginEnd="2dp" - android:ellipsize="end" - android:maxLines="1" - android:fontFamily="@font/inter_regular" - android:textColor="@color/colorPrimary" - android:background="@color/transparent" /> + android:layout_width="40dp" + android:layout_height="40dp" + android:scaleType="centerCrop" + app:srcCompat="@drawable/ic_qr" + app:tint="@color/primary" /> - <Button + <Space android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" /> + + <ImageButton android:id="@+id/button_add" - android:layout_width="0dp" - android:layout_weight="1" - android:layout_height="wrap_content" - android:text="@string/add" - android:textSize="14dp" - android:textAlignment="textEnd" - android:layout_marginEnd="2dp" - android:ellipsize="end" - android:maxLines="1" - android:fontFamily="@font/inter_regular" - android:textColor="@color/colorPrimary" - android:background="@color/transparent" /> + android:layout_width="40dp" + android:layout_height="40dp" + android:scaleType="centerCrop" + app:srcCompat="@drawable/ic_add" + app:tint="@color/primary" + android:layout_marginEnd="20dp"/> </LinearLayout> <LinearLayout