- Translate the interface to Galician (tools/translate_gl.py), including Galician month abbreviations for dates, which Android 2.3 lacks - Resize for the Galaxy Mini's 240x320 screen: larger text, rows, tabs and buttons; all sizes now live in res/values/dimens.xml - Redraw play/pause/refresh icons for every density; slightly brighter secondary text colours Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
105 lines
4.0 KiB
XML
105 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="12dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:layout_marginBottom="6dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_launcher" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="10dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="MiniABS"
|
|
android:textSize="@dimen/login_title"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/accent" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Podcasts de Audiobookshelf"
|
|
android:textSize="@dimen/login_tip"
|
|
android:textColor="@color/sub" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<TextView style="@style/Label" android:text="Enderezo do servidor" />
|
|
<EditText
|
|
android:id="@+id/server"
|
|
style="@style/Field"
|
|
android:hint="http://192.168.1.10:13378"
|
|
android:inputType="textUri" />
|
|
|
|
<TextView android:id="@+id/user_label" style="@style/Label" android:text="Usuario" />
|
|
<EditText
|
|
android:id="@+id/user"
|
|
style="@style/Field"
|
|
android:inputType="text" />
|
|
|
|
<TextView android:id="@+id/pass_label" style="@style/Label" android:text="Contrasinal" />
|
|
<EditText
|
|
android:id="@+id/pass"
|
|
style="@style/Field"
|
|
android:inputType="textPassword" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/use_key"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:minHeight="48dp"
|
|
android:textSize="@dimen/login_check"
|
|
android:text="Usar unha chave da API" />
|
|
|
|
<Button
|
|
android:id="@+id/connect"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="@dimen/login_btn_h"
|
|
android:layout_marginTop="6dp"
|
|
android:background="@drawable/btn_accent"
|
|
android:text="Conectar"
|
|
android:textStyle="bold"
|
|
android:textSize="@dimen/login_btn_text"
|
|
android:textColor="#121519" />
|
|
|
|
<TextView
|
|
android:id="@+id/status"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:textSize="@dimen/login_status"
|
|
android:textColor="@color/accent" />
|
|
|
|
<TextView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:textSize="@dimen/login_tip"
|
|
android:textColor="@color/dim"
|
|
android:lineSpacingExtra="2dp"
|
|
android:text="Na casa, usa o enderezo local http:// do servidor. Para https://, Android 2.3 precisa que o servidor ofreza TLS 1.0 nun porto á parte (ve o README). Se o certificado non se recoñece, amosaráseche a súa pegada dixital para que a comprobes." />
|
|
</LinearLayout>
|
|
</ScrollView>
|