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

127 lines
4.3 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainLinearLayout"
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
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="55dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="90"
android:orientation="vertical"
android:weightSum="90">
<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" />
<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>
<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"
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"
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>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="3">
<Button
android:id="@+id/submitToServerButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:textSize="12sp"
android:text="提交到笔记服务器"
android:drawableRight="@drawable/icon_with_size"
android:drawablePadding="5dp" />
</LinearLayout>
<TextView
android:id="@+id/statusTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/holo_blue_dark"
android:textColor="@android:color/white"
android:textSize="12sp" />
</LinearLayout>