221 lines
8.5 KiB
XML
221 lines
8.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2019 Thomas Schneider
|
|
|
|
This file is a part of Fedilab
|
|
|
|
This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
License, or (at your option) any later version.
|
|
|
|
Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along with Fedilab; if not,
|
|
see <http://www.gnu.org/licenses>.
|
|
-->
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
tools:context="app.fedilab.android.activities.AdminActivity">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:theme="@style/AppTheme.AppBarOverlay">
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_marginTop="5dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:text="@string/permissions"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content" />
|
|
<TextView
|
|
android:id="@+id/permissions"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="3"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:text="@string/email"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content" />
|
|
<TextView
|
|
android:id="@+id/email"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="3"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:text="@string/email_status"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content" />
|
|
<TextView
|
|
android:id="@+id/email_status"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="3"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:text="@string/login_status"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content" />
|
|
<TextView
|
|
android:id="@+id/login_status"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="3"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:text="@string/joined"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content" />
|
|
<TextView
|
|
android:id="@+id/joined"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="3"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:text="@string/recent_ip"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content" />
|
|
<TextView
|
|
android:id="@+id/recent_ip"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="3"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:gravity="center"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:orientation="horizontal">
|
|
<Button
|
|
android:id="@+id/warn"
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:text="@string/warn"
|
|
android:textSize="16sp" />
|
|
|
|
<Button
|
|
android:id="@+id/disable"
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:text="@string/disable"
|
|
android:textSize="16sp" />
|
|
|
|
<Button
|
|
android:id="@+id/silence"
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:text="@string/silence"
|
|
android:textSize="16sp" />
|
|
</LinearLayout>
|
|
<CheckBox
|
|
android:layout_marginTop="20dp"
|
|
android:checked="true"
|
|
android:id="@+id/email_user"
|
|
android:text="@string/email_user"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
<TextView
|
|
android:labelFor="@+id/comment"
|
|
android:text="@string/custom_warning"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
<EditText
|
|
android:minLines="3"
|
|
android:id="@+id/comment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
/>
|
|
|
|
<!--
|
|
<Button
|
|
android:id="@+id/action"
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:text="@string/perform_action"
|
|
android:textSize="18sp" />
|
|
-->
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/lv_statuses"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:scrollbars="none"
|
|
android:divider="@null"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |