From 0121730a8a0db62b6042a4dc0f7a01998d2161d6 Mon Sep 17 00:00:00 2001 From: YGRXZYGR <1513065229@qq.com> Date: Tue, 18 Jun 2024 21:53:36 +0800 Subject: [PATCH] 1 --- .../com/hnucm/c202201020328/ButtonSpan.java | 3 - .../com/hnucm/c202201020328/ToolActivity.java | 5 +- src/main/res/drawable/dotted_line.xml | 8 + src/main/res/layout/activity_tool.xml | 150 +++++++++++++++++- src/main/res/values/colors.xml | 2 +- 5 files changed, 161 insertions(+), 7 deletions(-) create mode 100644 src/main/res/drawable/dotted_line.xml diff --git a/src/main/java/com/hnucm/c202201020328/ButtonSpan.java b/src/main/java/com/hnucm/c202201020328/ButtonSpan.java index f3d291b..a2aa2a0 100644 --- a/src/main/java/com/hnucm/c202201020328/ButtonSpan.java +++ b/src/main/java/com/hnucm/c202201020328/ButtonSpan.java @@ -6,9 +6,6 @@ import android.text.TextPaint; import android.text.style.ClickableSpan; import android.view.View; -/** - * Created by juan on 2018/06/26. - */ public class ButtonSpan extends ClickableSpan { View.OnClickListener onClickListener; diff --git a/src/main/java/com/hnucm/c202201020328/ToolActivity.java b/src/main/java/com/hnucm/c202201020328/ToolActivity.java index 47c1701..a868f2c 100644 --- a/src/main/java/com/hnucm/c202201020328/ToolActivity.java +++ b/src/main/java/com/hnucm/c202201020328/ToolActivity.java @@ -61,6 +61,9 @@ public class ToolActivity extends AppCompatActivity { ImageView imageView10=findViewById(R.id.imageView22); String url10="http://106.53.194.250:30089/i/2024/06/13/666aeef2b073b.png"; Glide.with(this).load(url10).into(imageView10); + ImageView imageView23=findViewById(R.id.imageView23); + String url11="http://106.53.194.250:30089/i/2024/06/18/66717233e069e.png"; + Glide.with(this).load(url11).into(imageView23); constraintLayout.setOnClickListener(new View.OnClickListener() { @Override @@ -88,7 +91,7 @@ public class ToolActivity extends AppCompatActivity { mContentExpandTextView.initWidth(getWindowManager().getDefaultDisplay().getWidth()); // 设置最大行数 mContentExpandTextView.setMaxLines(2); - String content = "中国共产党是中国工人阶级的先锋队,同时是中国人民和中华民族的先锋队,是中国特色社会主义事业的领导核心,代表中国先进生产力的发展要求,代表中国先进文化的前进方向,代表中国最广大人民的根本利益。党的最高理想和最终目标是实现共产主义。"; + String content = "我做了一个梦,一个很好玩的梦,我要记录下它。阳光灿烂,一直奔跑,一直跑一直跑一直跑一直跑一直跑一直跑一直跑一直跑。还在跑还在跑还在跑还在跑还在跑还在跑还在跑"; mContentExpandTextView.setCloseText(content); } } \ No newline at end of file diff --git a/src/main/res/drawable/dotted_line.xml b/src/main/res/drawable/dotted_line.xml new file mode 100644 index 0000000..77dd1cf --- /dev/null +++ b/src/main/res/drawable/dotted_line.xml @@ -0,0 +1,8 @@ + + + + diff --git a/src/main/res/layout/activity_tool.xml b/src/main/res/layout/activity_tool.xml index d005d19..f4ffb5a 100644 --- a/src/main/res/layout/activity_tool.xml +++ b/src/main/res/layout/activity_tool.xml @@ -511,16 +511,162 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/textView49"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #FF000000 #FFFFFFFF - #000000 + #1BA4F9 \ No newline at end of file