2025-07-02 17:48:41 +08:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<LinearLayout 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:orientation="vertical"
|
|
|
|
|
android:padding="16dp"
|
|
|
|
|
tools:context=".LoginActivity">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="登录"
|
|
|
|
|
android:textSize="24sp"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginBottom="24dp"/>
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/etUsername"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="用户名"
|
|
|
|
|
android:inputType="text"
|
|
|
|
|
android:layout_marginBottom="16dp"/>
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/etPassword"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="密码"
|
|
|
|
|
android:inputType="textPassword"
|
|
|
|
|
android:layout_marginBottom="16dp"/>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
|
|
|
|
android:hint="项目">
|
|
|
|
|
|
|
|
|
|
<AutoCompleteTextView
|
|
|
|
|
android:id="@+id/etProject"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:inputType="textMultiLine"
|
|
|
|
|
android:completionThreshold="1"
|
|
|
|
|
android:maxLines="3"
|
|
|
|
|
android:ellipsize="none"
|
|
|
|
|
android:singleLine="false"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
|
android:imeOptions="actionDone"
|
|
|
|
|
android:dropDownWidth="match_parent"
|
|
|
|
|
android:dropDownHeight="wrap_content"
|
|
|
|
|
android:dropDownVerticalOffset="4dp"
|
|
|
|
|
android:dropDownAnchor="@id/etProject"
|
|
|
|
|
android:dropDownSelector="@android:color/darker_gray"/>
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/btnClearProject"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="清除"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="#FF0000"
|
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
|
android:minWidth="0dp"
|
|
|
|
|
android:minHeight="0dp"
|
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:layout_marginStart="8dp"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<CheckBox
|
|
|
|
|
android:id="@+id/cbRemember"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="记住登录信息"
|
|
|
|
|
android:layout_marginBottom="24dp"/>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
|
android:background="@android:color/darker_gray"
|
|
|
|
|
android:padding="8dp">
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="已选项目信息:"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
android:layout_marginBottom="4dp"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvSelectedProjectName"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:padding="4dp"
|
|
|
|
|
android:text="项目名称:未选择"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
android:background="@android:color/transparent"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvSelectedProjectId"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:padding="4dp"
|
|
|
|
|
android:text="项目ID:未选择"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
android:background="@android:color/transparent"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/btnLogin"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="登录"/>
|
|
|
|
|
|
|
|
|
|
|
2025-07-11 18:25:40 +08:00
|
|
|
|
|
2025-07-02 17:48:41 +08:00
|
|
|
|
</LinearLayout>
|