Initial commit

This commit is contained in:
Krzysztof Cieślik
2026-06-13 21:43:53 +02:00
commit 22a3e0fe7e
80 changed files with 4175 additions and 0 deletions

View File

@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/ha_white"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_connection"
android:textStyle="bold"
android:typeface="monospace"
android:textSize="18sp"
android:textColor="@color/ha_black" />
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/ha_black"
android:layout_marginTop="8dp"
android:layout_marginBottom="16dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/label_url"
android:typeface="monospace"
android:textSize="12sp"
android:textColor="@color/ha_black" />
<EditText
android:id="@+id/etUrl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:hint="http://10.0.2.2:8123"
android:inputType="textUri"
android:typeface="monospace"
android:textSize="16sp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/ha_black"
android:layout_marginBottom="16dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/label_token"
android:typeface="monospace"
android:textSize="12sp"
android:textColor="@color/ha_black" />
<EditText
android:id="@+id/etToken"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:hint="••••••••••••"
android:inputType="textPassword"
android:typeface="monospace"
android:textSize="16sp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/ha_black"
android:layout_marginBottom="16dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/label_refresh"
android:typeface="monospace"
android:textSize="12sp"
android:textColor="@color/ha_black" />
<EditText
android:id="@+id/etRefreshInterval"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:hint="30"
android:inputType="number"
android:typeface="monospace"
android:textSize="16sp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/ha_black"
android:layout_marginBottom="24dp" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/ha_black"
android:layout_marginLeft="4dp"
android:layout_marginTop="4dp" />
<Button
android:id="@+id/btnTestAndSave"
android:layout_width="match_parent"
android:layout_height="50dp"
android:text="@string/btn_test_save"
android:background="@color/ha_blue"
android:textColor="@color/ha_white"
android:typeface="monospace"
android:textStyle="bold" />
</FrameLayout>
<TextView
android:id="@+id/tvStatus"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:typeface="monospace"
android:textSize="12sp"
android:gravity="center"
android:textColor="@color/ha_black" />
</LinearLayout>