messenger-android

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

fragment_attribute_list.xml (2983B)


      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     xmlns:card_view="http://schemas.android.com/apk/res-auto"
     24     android:padding="16dp"
     25     android:orientation="vertical"
     26     android:layout_width="match_parent"
     27     android:layout_height="match_parent">
     28 
     29     <LinearLayout
     30         android:orientation="horizontal"
     31         android:layout_width="match_parent"
     32         android:layout_height="wrap_content"
     33         android:gravity="center">
     34 
     35         <TextView
     36             android:text="Name"
     37             android:layout_width="0dp"
     38             android:layout_height="wrap_content"
     39             android:layout_weight="1"
     40             android:gravity="start"/>
     41 
     42         <TextView
     43             android:text="Value"
     44             android:layout_width="0dp"
     45             android:layout_height="wrap_content"
     46             android:layout_weight="1"
     47             android:gravity="center"/>
     48 
     49     </LinearLayout>
     50 
     51     <androidx.cardview.widget.CardView
     52         android:layout_width="match_parent"
     53         android:layout_height="0dp"
     54         android:layout_weight="1"
     55         android:layout_marginTop="16dp"
     56         card_view:cardElevation="4dp"
     57         android:radius="8dp">
     58 
     59         <androidx.recyclerview.widget.RecyclerView
     60             android:id="@+id/attribute_list"
     61             android:layout_width="match_parent"
     62             android:layout_height="match_parent"
     63             android:contentDescription="@string/attribute_list_description"
     64             android:scrollbars="vertical"
     65             android:fadeScrollbars="false"/>
     66     </androidx.cardview.widget.CardView>
     67 
     68     <EditText
     69         android:id="@+id/edit_key"
     70         android:hint="Key"
     71         android:layout_width="match_parent"
     72         android:layout_height="48dp" />
     73 
     74     <EditText
     75         android:id="@+id/edit_value"
     76         android:hint="Value"
     77         android:layout_width="match_parent"
     78         android:layout_height="48dp" />
     79 
     80     <Button
     81         android:id="@+id/btn_add_attribute"
     82         android:text="+"
     83         android:layout_width="wrap_content"
     84         android:layout_height="wrap_content"
     85         android:layout_gravity="end"
     86         android:layout_marginTop="8dp" />
     87 </LinearLayout>