messenger-android

Android graphical user interfaces for GNUnet Messenger
Log | Files | Refs | README | LICENSE

fragment_profile_base.xml (3526B)


      1 <!--
      2     This file is part of GNUnet.
      3     Copyright (C) 2021–2025 GNUnet e.V.
      4 
      5     GNUnet is free software: you can redistribute it and/or modify it
      6     under the terms of the GNU Affero General Public License as published
      7     by the Free Software Foundation, either version 3 of the License,
      8     or (at your option) any later version.
      9 
     10     GNUnet is distributed in the hope that it will be useful, but
     11     WITHOUT ANY WARRANTY; without even the implied warranty of
     12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     13     Affero General Public License for more details.
     14 
     15     You should have received a copy of the GNU Affero General Public License
     16     along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 
     18     SPDX-License-Identifier: AGPL3.0-or-later
     19 
     20     @author t3sserakt
     21 -->
     22 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     23     android:id="@+id/profileContainer"
     24     android:layout_width="match_parent"
     25     android:layout_height="match_parent"
     26     android:orientation="vertical"
     27     android:padding="16dp">
     28 
     29     <ImageView
     30         android:id="@+id/avatarImage"
     31         android:layout_width="100dp"
     32         android:layout_height="100dp"
     33         android:layout_gravity="center_horizontal"
     34         android:src="@drawable/ic_account_circle" />
     35 
     36     <TextView
     37         android:id="@+id/nameText"
     38         android:layout_width="match_parent"
     39         android:layout_height="wrap_content"
     40         android:text="Name"
     41         android:textSize="18sp"
     42         android:gravity="center"
     43         android:paddingTop="8dp" />
     44 
     45 
     46     <EditText
     47         android:id="@+id/nameEdit"
     48         android:layout_width="match_parent"
     49         android:layout_height="wrap_content"
     50         android:hint="Account Name"
     51         android:visibility="gone"
     52         android:paddingTop="8dp" />
     53 
     54     <Button
     55         android:id="@+id/btn_save_name"
     56         android:layout_width="wrap_content"
     57         android:layout_height="wrap_content"
     58         android:text="Save Name"
     59         android:visibility="gone" />
     60 
     61     <TextView
     62         android:id="@+id/publicKeyText"
     63         android:layout_width="match_parent"
     64         android:layout_height="wrap_content"
     65         android:text="Public Key"
     66         android:gravity="center"
     67         android:paddingTop="16dp"
     68         android:visibility="gone" />
     69 
     70     <ImageView
     71         android:id="@+id/qrCodeImage"
     72         android:layout_width="200dp"
     73         android:layout_height="200dp"
     74         android:layout_gravity="center_horizontal"
     75         android:visibility="gone" />
     76 
     77     <Button
     78         android:id="@+id/btn_list_attributes"
     79         android:layout_width="wrap_content"
     80         android:layout_height="wrap_content"
     81         android:text="List Attributes"
     82         android:layout_marginTop="16dp" />
     83 
     84     <Button
     85         android:id="@+id/btn_share_attributes"
     86         android:layout_width="wrap_content"
     87         android:layout_height="wrap_content"
     88         android:text="Share Attributes"
     89         android:layout_marginTop="8dp"
     90         android:visibility="gone" />
     91 
     92     <Button
     93         android:id="@+id/btn_share_identity"
     94         android:layout_width="wrap_content"
     95         android:layout_height="wrap_content"
     96         android:text="Share Identity"
     97         android:layout_marginTop="8dp" />
     98 
     99     <Button
    100         android:id="@+id/btn_block_contact"
    101         android:layout_width="wrap_content"
    102         android:layout_height="wrap_content"
    103         android:text="Block Contact"
    104         android:layout_marginTop="8dp"
    105         android:visibility="gone" />
    106 </LinearLayout>