version:2.3

fix:
update:接口优化,更换图标,增加可折叠TextView
This commit is contained in:
2023-01-09 10:01:19 +08:00
parent 39d0f0b597
commit 6540365e9f
17 changed files with 453 additions and 216 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -79,9 +79,7 @@
android:id="@+id/tv_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_16"
android:layout_marginTop="@dimen/dp_16"
android:layout_marginEnd="@dimen/dp_16"
android:layout_margin="@dimen/dp_16"
android:textSize="@dimen/sp_13"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
@@ -89,6 +87,4 @@
app:layout_constraintTop_toBottomOf="@+id/iv_img" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -22,23 +22,30 @@
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_4"
android:layout_marginEnd="@dimen/dp_8"
android:text="中医专家谈寒露养生 “晨饮盐水晚喝蜂蜜”更健康"
android:text=""
android:textColor="@color/black"
android:textSize="@dimen/sp_12"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/iv_img"
app:layout_constraintTop_toTopOf="@+id/iv_img" />
<TextView
<com.uiuios.aios.view.FoldTextView
android:id="@+id/tv_content"
android:layout_width="0dp"
android:layout_height="0dp"
android:text="中医专家谈寒露养生 “晨饮盐水晚喝蜂蜜”更健康"
android:layout_marginTop="@dimen/dp_4"
android:maxLines="4"
android:text=""
android:textSize="@dimen/sp_9"
app:layout_constraintBottom_toTopOf="@+id/tv_read"
app:layout_constraintEnd_toEndOf="@+id/tv_title"
app:layout_constraintStart_toStartOf="@+id/tv_title"
app:layout_constraintTop_toBottomOf="@+id/tv_title" />
app:layout_constraintTop_toBottomOf="@+id/tv_title"
app:showMaxLine="4"
app:showTipAfterExpand="true"
app:tipClickable="true"
app:tipColor="@color/colorPrimary"
app:tipGravity="0" />
<TextView
android:id="@+id/tv_read"
@@ -46,9 +53,9 @@
android:layout_height="wrap_content"
android:background="@drawable/buying_bg"
android:text="阅读全文"
android:layout_marginBottom="@dimen/dp_8"
android:textColor="@color/white"
android:textSize="@dimen/sp_10"
app:layout_constraintBottom_toBottomOf="@+id/iv_img"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/tv_content" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -16,6 +16,17 @@
<attr name="left_bottom_radius" format="dimension" />
</declare-styleable>
<declare-styleable name="FoldTextView">
<attr name="showMaxLine" format="integer" />
<attr name="tipGravity" format="integer" />
<attr name="tipColor" format="reference|color" />
<attr name="tipClickable" format="boolean" />
<attr name="foldText" format="string" />
<attr name="expandText" format="string" />
<attr name="showTipAfterExpand" format="boolean" />
<attr name="isSetParentClick" format="boolean"/>
</declare-styleable>
<string-array name="entryvalues_font_size" translatable="false">
<!-- <item>0.85</item>-->
<item>1.0</item>