更改了界面和布局,使得界面更加好看
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()
|
findViewById<EditText>(R.id.inputEditText).text.toString()
|
||||||
val buttonText = tab.text.toString()
|
val buttonText = tab.text.toString()
|
||||||
inputEditText.setText("#$buttonText\n\n$currentText")
|
inputEditText.setText("#$buttonText\n\n$currentText")
|
||||||
|
|
||||||
statusText.text = "标签已增加"
|
statusText.text = "标签已增加"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
<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" />
|
<solid android:color="@android:color/transparent" />
|
||||||
|
<stroke
|
||||||
|
android:width="2dp"
|
||||||
|
android:color="@color/foreground_color" />
|
||||||
|
<corners android:radius="8dp" />
|
||||||
</shape>
|
</shape>
|
||||||
@@ -5,80 +5,117 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="16dp">
|
android:padding="16dp">
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:orientation="horizontal"
|
|
||||||
android:weightSum="100">
|
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/linearLayout1"
|
||||||
android:layout_height="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_weight="90"
|
android:layout_height="55dp"
|
||||||
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
||||||
android:text="flomo - ai 标签版本"
|
|
||||||
android:textSize="24sp" />
|
|
||||||
|
|
||||||
<Button
|
<LinearLayout
|
||||||
android:id="@+id/configButton"
|
android:layout_width="0dp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_weight="90"
|
||||||
android:text="配置"
|
android:orientation="vertical"
|
||||||
android:layout_gravity="end"
|
android:weightSum="90">
|
||||||
android:alpha="0.5" />
|
|
||||||
|
|
||||||
</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
|
<TextView
|
||||||
android:id="@+id/inputEditText"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_weight="40"
|
||||||
android:hint="输入文字"
|
android:gravity="center_vertical"
|
||||||
android:inputType="textMultiLine"
|
android:text="把内容提交到 AI,选择合适的标签"
|
||||||
android:minLines="3"
|
android:textSize="9sp" />
|
||||||
android:layout_weight="0.5"
|
</LinearLayout>
|
||||||
android:background="@drawable/edittext_border" />
|
|
||||||
|
|
||||||
|
<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
|
</LinearLayout>
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:weightSum="100">
|
|
||||||
|
|
||||||
<Button
|
<EditText
|
||||||
android:id="@+id/submitToZhiPuAIButton"
|
android:id="@+id/inputEditText"
|
||||||
android:layout_width="113dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="580dp"
|
||||||
android:text="提交到智谱AI"
|
android:layout_below="@id/linearLayout1"
|
||||||
android:textSize="12sp" />
|
android:layout_weight="0.5"
|
||||||
|
android:background="@drawable/edittext_border"
|
||||||
|
android:hint="输入文字"
|
||||||
|
android:inputType="textMultiLine"
|
||||||
|
android:minLines="3" />
|
||||||
|
|
||||||
<Button
|
</RelativeLayout>
|
||||||
android:id="@+id/submitToSparkAIButton"
|
|
||||||
android:layout_width="113dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="提交到星火AI"
|
|
||||||
android:textSize="12sp" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<com.google.android.material.tabs.TabLayout
|
<com.google.android.material.tabs.TabLayout
|
||||||
android:id="@+id/tabLayout"
|
android:id="@+id/tabLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
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
|
<Button
|
||||||
android:id="@+id/submitToServerButton"
|
android:id="@+id/submitToServerButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="2"
|
||||||
|
android:textSize="12sp"
|
||||||
android:text="提交到笔记服务器" />
|
android:text="提交到笔记服务器" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/statusTextView"
|
android:id="@+id/statusTextView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="12sp"
|
android:background="@android:color/holo_blue_dark"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:background="@android:color/holo_blue_dark" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -9,4 +9,5 @@
|
|||||||
<color name="white">#FFFFFFFF</color>
|
<color name="white">#FFFFFFFF</color>
|
||||||
<color name="foreground_color">#eFeFeF</color> <!-- 示例前景色(白色) -->
|
<color name="foreground_color">#eFeFeF</color> <!-- 示例前景色(白色) -->
|
||||||
<color name="background_color">#333333</color> <!-- 示例背景色(深灰色) -->
|
<color name="background_color">#333333</color> <!-- 示例背景色(深灰色) -->
|
||||||
|
<color name="gray_light">#CCCCCC</color>
|
||||||
</resources>
|
</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