322 lines
13 KiB
XML
322 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/boss_bg_app">
|
|
|
|
<ScrollView
|
|
android:id="@+id/login_panel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/login_shell"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="24dp"
|
|
android:paddingTop="72dp"
|
|
android:paddingRight="24dp"
|
|
android:paddingBottom="40dp">
|
|
|
|
<TextView
|
|
android:layout_width="72dp"
|
|
android:layout_height="72dp"
|
|
android:background="@drawable/bg_secondary_button"
|
|
android:gravity="center"
|
|
android:text="B"
|
|
android:textColor="@color/boss_green"
|
|
android:textSize="28sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/login_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="22dp"
|
|
android:text=""
|
|
android:textColor="@color/boss_text_primary"
|
|
android:textSize="30sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/login_hint"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:gravity="center"
|
|
android:lineSpacingExtra="4dp"
|
|
android:text=""
|
|
android:textColor="@color/boss_text_muted"
|
|
android:textSize="14sp" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/login_progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="28dp"
|
|
android:visibility="gone" />
|
|
|
|
<Button
|
|
android:id="@+id/login_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="22dp"
|
|
android:background="@drawable/bg_primary_button"
|
|
android:paddingTop="14dp"
|
|
android:paddingBottom="14dp"
|
|
android:text=""
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/boss_surface"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/content_panel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/main_top_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/boss_surface"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="20dp"
|
|
android:paddingTop="14dp"
|
|
android:paddingRight="20dp"
|
|
android:paddingBottom="12dp">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/back_button"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginRight="8dp"
|
|
android:background="@drawable/bg_top_icon_button"
|
|
android:contentDescription="返回"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_boss_back"
|
|
android:tint="@color/boss_text_primary"
|
|
android:visibility="gone" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/top_title_group"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/top_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:text="会话"
|
|
android:textColor="@color/boss_text_primary"
|
|
android:textSize="22sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/top_subtitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:text=""
|
|
android:textColor="@color/boss_text_muted"
|
|
android:textSize="12sp"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
|
|
<EditText
|
|
android:id="@+id/top_search_input"
|
|
android:layout_width="0dp"
|
|
android:layout_height="40dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_secondary_button"
|
|
android:hint="搜索项目或线程"
|
|
android:imeOptions="actionSearch"
|
|
android:inputType="text"
|
|
android:paddingLeft="14dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="14dp"
|
|
android:paddingBottom="8dp"
|
|
android:textColor="@color/boss_text_primary"
|
|
android:textColorHint="@color/boss_text_muted"
|
|
android:textSize="15sp"
|
|
android:visibility="gone" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/search_button"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginRight="8dp"
|
|
android:background="@drawable/bg_top_icon_button"
|
|
android:contentDescription="搜索"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_boss_search"
|
|
android:tint="@color/boss_text_primary" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/refresh_button"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="@drawable/bg_top_icon_button"
|
|
android:contentDescription="快捷操作"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_boss_add"
|
|
android:tint="@color/boss_text_primary" />
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1">
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
android:id="@+id/root_pager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="72dp"
|
|
android:background="@color/boss_surface"
|
|
android:elevation="10dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:paddingLeft="12dp"
|
|
android:paddingRight="12dp">
|
|
|
|
<Button
|
|
android:id="@+id/tab_conversations"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:layout_marginRight="6dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_tab_active"
|
|
android:text="会话"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/boss_green"
|
|
android:textStyle="bold" />
|
|
|
|
<Button
|
|
android:id="@+id/tab_devices"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:layout_marginLeft="6dp"
|
|
android:layout_marginRight="6dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_tab_inactive"
|
|
android:text="设备"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/boss_text_muted"
|
|
android:textStyle="bold" />
|
|
|
|
<Button
|
|
android:id="@+id/tab_me"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:layout_marginLeft="6dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_tab_inactive"
|
|
android:text="我的"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/boss_text_muted"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/conversation_quick_actions_overlay"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:visibility="gone">
|
|
|
|
<View
|
|
android:id="@+id/conversation_quick_actions_scrim"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:alpha="0"
|
|
android:background="@color/boss_overlay_scrim" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/conversation_quick_actions_anchor"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingTop="58dp"
|
|
android:paddingRight="20dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/conversation_quick_actions_menu"
|
|
android:layout_width="196dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top|end"
|
|
android:alpha="0"
|
|
android:background="@drawable/bg_conversation_quick_actions_menu"
|
|
android:elevation="14dp"
|
|
android:orientation="vertical"
|
|
android:paddingTop="4dp"
|
|
android:paddingBottom="4dp"
|
|
android:translationY="-6dp"
|
|
android:visibility="gone">
|
|
|
|
<Button
|
|
android:id="@+id/quick_action_add_device"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:background="@android:color/transparent"
|
|
android:gravity="center_vertical|start"
|
|
android:minWidth="0dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:text="添加设备"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/boss_quick_actions_menu_text"
|
|
android:textSize="15sp" />
|
|
|
|
<Button
|
|
android:id="@+id/quick_action_scan"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:background="@android:color/transparent"
|
|
android:gravity="center_vertical|start"
|
|
android:minWidth="0dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:text="扫一扫"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/boss_quick_actions_menu_text"
|
|
android:textSize="15sp" />
|
|
|
|
<Button
|
|
android:id="@+id/quick_action_group_chat"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:background="@android:color/transparent"
|
|
android:gravity="center_vertical|start"
|
|
android:minWidth="0dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:text="发起群聊"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/boss_quick_actions_menu_text"
|
|
android:textSize="15sp" />
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
</FrameLayout>
|
|
|
|
</FrameLayout>
|