fragment_create_account.xml (2935B)
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 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent"> 26 27 <LinearLayout 28 android:orientation="vertical" 29 android:padding="16dp" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content"> 32 33 <TextView 34 android:text="@string/create_account" 35 android:textSize="24sp" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content"/> 38 39 <EditText 40 android:id="@+id/account_name_input" 41 android:hint="@string/account_name" 42 android:layout_width="match_parent" 43 android:inputType="textPersonName" 44 android:layout_height="48dp"/> 45 46 <Button 47 android:id="@+id/select_avatar_button" 48 android:text="@string/select_avatar" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content"/> 51 52 <ImageView 53 android:id="@+id/avatar_preview" 54 android:layout_width="100dp" 55 android:layout_height="100dp" 56 android:layout_marginTop="8dp" 57 android:src="@drawable/ic_avatar_placeholder" 58 android:scaleType="centerCrop"/> 59 60 <LinearLayout 61 android:orientation="horizontal" 62 android:layout_width="match_parent" 63 android:layout_height="wrap_content" 64 android:layout_marginTop="16dp"> 65 66 <Button 67 android:id="@+id/cancel_button" 68 android:layout_width="0dp" 69 android:layout_height="wrap_content" 70 android:layout_weight="1" 71 android:text="@string/cancel"/> 72 73 <Button 74 android:id="@+id/confirm_button" 75 android:layout_width="0dp" 76 android:layout_height="wrap_content" 77 android:layout_weight="1" 78 android:text="@string/confirm"/> 79 </LinearLayout> 80 </LinearLayout> 81 </ScrollView>