更改了界面和布局,使得界面更加好看
This commit is contained in:
BIN
Screenshot_20240922_111050.png
Normal file
BIN
Screenshot_20240922_111050.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
@@ -198,7 +198,7 @@ class MainActivity : AppCompatActivity() {
|
||||
findViewById<EditText>(R.id.inputEditText).text.toString()
|
||||
val buttonText = tab.text.toString()
|
||||
inputEditText.setText("#$buttonText\n\n$currentText")
|
||||
|
||||
|
||||
statusText.text = "标签已增加"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@android:color/black" />
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<stroke
|
||||
android:width="2dp"
|
||||
android:color="@color/foreground_color" />
|
||||
<corners android:radius="8dp" />
|
||||
</shape>
|
||||
@@ -5,80 +5,117 @@
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<LinearLayout
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="100">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="90"
|
||||
android:gravity="center_vertical"
|
||||
android:text="flomo - ai 标签版本"
|
||||
android:textSize="24sp" />
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Button
|
||||
android:id="@+id/configButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="配置"
|
||||
android:layout_gravity="end"
|
||||
android:alpha="0.5" />
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="90"
|
||||
android:orientation="vertical"
|
||||
android:weightSum="90">
|
||||
|
||||
</LinearLayout>
|
||||
<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" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/inputEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="输入文字"
|
||||
android:inputType="textMultiLine"
|
||||
android:minLines="3"
|
||||
android:layout_weight="0.5"
|
||||
android:background="@drawable/edittext_border" />
|
||||
<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
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="100">
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/submitToZhiPuAIButton"
|
||||
android:layout_width="113dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="提交到智谱AI"
|
||||
android:textSize="12sp" />
|
||||
<EditText
|
||||
android:id="@+id/inputEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="580dp"
|
||||
android:layout_below="@id/linearLayout1"
|
||||
android:layout_weight="0.5"
|
||||
android:background="@drawable/edittext_border"
|
||||
android:hint="输入文字"
|
||||
android:inputType="textMultiLine"
|
||||
android:minLines="3" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/submitToSparkAIButton"
|
||||
android:layout_width="113dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="提交到星火AI"
|
||||
android:textSize="12sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<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="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:textSize="12sp"
|
||||
android:text="提交到笔记服务器" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/statusTextView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp"
|
||||
android:background="@android:color/holo_blue_dark"
|
||||
android:textColor="@android:color/white"
|
||||
android:background="@android:color/holo_blue_dark" />
|
||||
android:textSize="12sp" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -9,4 +9,5 @@
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
<color name="foreground_color">#eFeFeF</color> <!-- 示例前景色(白色) -->
|
||||
<color name="background_color">#333333</color> <!-- 示例背景色(深灰色) -->
|
||||
<color name="gray_light">#CCCCCC</color>
|
||||
</resources>
|
||||
BIN
img_v3_02ev_5bc2f67b-a75b-4041-aee4-a1b630cc43dg.jpg
Normal file
BIN
img_v3_02ev_5bc2f67b-a75b-4041-aee4-a1b630cc43dg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
Reference in New Issue
Block a user