Files
flomo-ai/app/src/main/res/layout/activity_main.xml

127 lines
4.3 KiB
XML
Raw Normal View History

2024-09-17 09:24:50 +08:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainLinearLayout"
2024-09-17 09:24:50 +08:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="14dp"
android:background="@drawable/appbackground"
android:backgroundTint="@color/semi_transparent_background"
android:backgroundTintMode="src_over">
<RelativeLayout
2024-09-17 09:24:50 +08:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2024-09-17 09:24:50 +08:00
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="55dp"
android:orientation="horizontal">
2024-09-17 09:24:50 +08:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="90"
android:orientation="vertical"
android:weightSum="90">
2024-09-17 09:24:50 +08:00
<TextView
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="60"
android:gravity="top"
android:text="flomo - ai标签版"
android:textSize="24sp"
android:textStyle="bold"
android:textColor="@android:color/black" />
2024-09-17 09:24:50 +08:00
<TextView
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="40"
android:gravity="center_vertical"
android:text="内容提到 AI选择合适的标签记录"
android:textSize="9sp" />
</LinearLayout>
<Button
android:id="@+id/configButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:alpha="0.5"
android:text="配置" />
</LinearLayout>
2024-09-17 09:24:50 +08:00
<EditText
android:id="@+id/inputEditText"
android:layout_width="match_parent"
android:layout_height="500dp"
android:layout_below="@id/linearLayout1"
android:layout_weight="0.5"
android:background="@drawable/edittext_border"
android:hint="输入文字"
android:inputType="textMultiLine"
2024-09-24 22:21:08 +08:00
android:minLines="3"
android:padding="5sp"/>
</RelativeLayout>
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="match_parent"
2024-09-17 09:24:50 +08:00
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="3">
<Button
android:id="@+id/submitToZhiPuAIButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="提交到智谱AI"
android:textSize="12sp" />
<Button
android:id="@+id/submitToSparkAIButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="提交到星火AI"
android:textSize="12sp" />
</LinearLayout>
2024-09-17 09:24:50 +08:00
<LinearLayout
2024-09-17 09:24:50 +08:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="3">
2024-09-17 09:24:50 +08:00
<Button
android:id="@+id/submitToServerButton"
android:layout_width="0dp"
2024-09-17 09:24:50 +08:00
android:layout_height="wrap_content"
android:layout_weight="2"
android:textSize="12sp"
android:text="提交到笔记服务器"
android:drawableRight="@drawable/icon_with_size"
android:drawablePadding="5dp" />
</LinearLayout>
2024-09-17 09:24:50 +08:00
<TextView
android:id="@+id/statusTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/holo_blue_dark"
2024-09-17 09:24:50 +08:00
android:textColor="@android:color/white"
android:textSize="12sp" />
2024-09-17 09:24:50 +08:00
</LinearLayout>