messenger-android

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

fragment_account_list.xml (2645B)


      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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     24     xmlns:tools="http://schemas.android.com/tools"
     25     android:id="@+id/account_list_root"
     26     android:layout_width="match_parent"
     27     android:layout_height="match_parent"
     28     android:orientation="vertical"
     29     android:padding="16dp"
     30     tools:context=".ui.account.AccountListFragment">
     31 
     32     <Button
     33         android:id="@+id/btn_create_account"
     34         android:layout_width="match_parent"
     35         android:layout_height="wrap_content"
     36         android:layout_marginBottom="16dp"
     37         android:enabled="false"
     38         android:text="@string/create_account" />
     39 
     40     <ProgressBar
     41         android:id="@+id/account_loading_indicator"
     42         android:layout_width="wrap_content"
     43         android:layout_height="wrap_content"
     44         android:layout_gravity="center_horizontal"
     45         android:layout_marginTop="24dp"
     46         android:layout_marginBottom="12dp"
     47         android:contentDescription="@string/loading_accounts" />
     48 
     49     <TextView
     50         android:id="@+id/account_status_text"
     51         android:layout_width="match_parent"
     52         android:layout_height="wrap_content"
     53         android:gravity="center_horizontal"
     54         android:paddingBottom="16dp"
     55         android:text="@string/connecting_to_gnunet"
     56         android:textAppearance="?attr/textAppearanceBodyMedium" />
     57 
     58     <androidx.recyclerview.widget.RecyclerView
     59         android:id="@+id/account_recycler"
     60         android:layout_width="match_parent"
     61         android:layout_height="0dp"
     62         android:layout_weight="1"
     63         android:contentDescription="@string/account_list_description"
     64         android:fadeScrollbars="false"
     65         android:scrollbars="vertical"
     66         android:visibility="gone"
     67         tools:listitem="@layout/item_account" />
     68 
     69 </LinearLayout>