fragment_join_lobby.xml (2950B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 This file is part of GNUnet. 4 Copyright (C) 2021–2025 GNUnet e.V. 5 6 GNUnet is free software: you can redistribute it and/or modify it 7 under the terms of the GNU Affero General Public License as published 8 by the Free Software Foundation, either version 3 of the License, 9 or (at your option) any later version. 10 11 GNUnet is distributed in the hope that it will be useful, but 12 WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 Affero General Public License for more details. 15 16 You should have received a copy of the GNU Affero General Public License 17 along with this program. If not, see <http://www.gnu.org/licenses/>. 18 19 SPDX-License-Identifier: AGPL3.0-or-later 20 21 @author t3sserakt 22 --> 23 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 24 xmlns:tools="http://schemas.android.com/tools" 25 xmlns:app="http://schemas.android.com/apk/res-auto" 26 android:id="@+id/lobby_join_layout" 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 tools:context=".ui.lobby.LobbyJoinFragment"> 30 31 <androidx.camera.view.PreviewView 32 android:id="@+id/camera_preview" 33 android:layout_width="0dp" 34 android:layout_height="0dp" 35 app:layout_constraintTop_toTopOf="parent" 36 app:layout_constraintBottom_toTopOf="@id/qr_text" 37 app:layout_constraintStart_toStartOf="parent" 38 app:layout_constraintEnd_toEndOf="parent"/> 39 40 <EditText 41 android:id="@+id/qr_text" 42 android:hint="Lobby ID or QR Code" 43 android:layout_width="0dp" 44 android:layout_height="wrap_content" 45 android:inputType="text" 46 app:layout_constraintTop_toBottomOf="@id/camera_preview" 47 app:layout_constraintStart_toStartOf="parent" 48 app:layout_constraintEnd_toEndOf="parent" 49 android:layout_margin="16dp"/> 50 51 <LinearLayout 52 android:id="@+id/button_row" 53 android:orientation="horizontal" 54 android:layout_width="0dp" 55 android:layout_height="wrap_content" 56 android:gravity="end" 57 android:layout_margin="16dp" 58 app:layout_constraintTop_toBottomOf="@id/qr_text" 59 app:layout_constraintStart_toStartOf="parent" 60 app:layout_constraintEnd_toEndOf="parent"> 61 62 <Button 63 android:id="@+id/cancel_button" 64 android:text="Cancel" 65 android:layout_width="0dp" 66 android:layout_height="wrap_content" 67 android:layout_weight="1"/> 68 69 <Button 70 android:id="@+id/join_button" 71 android:text="@string/join" 72 android:layout_width="0dp" 73 android:layout_height="wrap_content" 74 android:layout_weight="1"/> 75 </LinearLayout> 76 77 </androidx.constraintlayout.widget.ConstraintLayout>