aboutsummaryrefslogtreecommitdiff
path: root/res/layout/activity_login.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/activity_login.xml')
-rw-r--r--res/layout/activity_login.xml93
1 files changed, 93 insertions, 0 deletions
diff --git a/res/layout/activity_login.xml b/res/layout/activity_login.xml
new file mode 100644
index 0000000..835a828
--- /dev/null
+++ b/res/layout/activity_login.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ slcl-android, an Android frontend for slcl
+ Copyright (C) 2023-2024 Xavier Del Campo Romero
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program 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 Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+-->
+
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="slcl, a simple and lightweight cloud"/>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="URL:"/>
+
+ <LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <CheckBox
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="HTTPS"
+ android:checked="true"
+ android:id="@+id/https"/>
+
+ <EditText
+ android:layout_width="250sp"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:id="@+id/url">
+ <requestFocus/>
+ </EditText>
+
+ </LinearLayout>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Username:"/>
+
+ <EditText
+ android:layout_width="250sp"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:id="@+id/username">
+ </EditText>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Password:"/>
+
+ <EditText
+ android:layout_width="250sp"
+ android:layout_height="wrap_content"
+ android:id="@+id/password"
+ android:inputType="textPassword"/>
+
+ <Button android:id="@+id/button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Login"/>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/error"/>
+</LinearLayout>