Commit 32edb132 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 11b52bac
...@@ -42,7 +42,7 @@ public interface CpdService { ...@@ -42,7 +42,7 @@ public interface CpdService {
* @return * @return
*/ */
@GET @GET
Observable<Object> cmtImp(@Url String url); Observable<JsonObject> cmtImp(@Url String url);
class Factory { class Factory {
......
...@@ -274,15 +274,15 @@ class FriendsFragment(private var isResume: Boolean = false) : BaseFragment(), F ...@@ -274,15 +274,15 @@ class FriendsFragment(private var isResume: Boolean = false) : BaseFragment(), F
.create() .create()
tv_yesterday_bonus.text = SpanUtils() tv_yesterday_bonus.text = SpanUtils()
.append(data.contribution_yesterday.toString()).setForegroundColor(resources.getColor(R.color.color_FF7C00)) .append(String.format("%.2f", data.contribution_yesterday)).setForegroundColor(resources.getColor(R.color.color_FF7C00))
.create() .create()
tv_today_bonus.text = SpanUtils() tv_today_bonus.text = SpanUtils()
.append(data.contribution_today.toString()).setForegroundColor(resources.getColor(R.color.color_E72C2B)) .append(String.format("%.2f", data.contribution_today)).setForegroundColor(resources.getColor(R.color.color_E72C2B))
.create() .create()
tv_bonus_money.text = SpanUtils() tv_bonus_money.text = SpanUtils()
.append(data.cash.toString()).setForegroundColor(resources.getColor(R.color.color_E72C2B)) .append(String.format("%.2f", data.cash)).setForegroundColor(resources.getColor(R.color.color_E72C2B))
.append("元").setFontSize(BubbleUtils.dp2px(14)).setForegroundColor(resources.getColor(R.color.color_E72C2B)) .append("元").setFontSize(BubbleUtils.dp2px(14)).setForegroundColor(resources.getColor(R.color.color_E72C2B))
.create() .create()
......
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
android:gravity="center" android:gravity="center"
android:paddingEnd="10dp" android:paddingEnd="10dp"
android:text="@string/dot" android:text="@string/dot"
android:textSize="22sp" android:textSize="18sp"
app:layout_constraintBottom_toTopOf="@id/tv_today_bonus" app:layout_constraintBottom_toTopOf="@id/tv_today_bonus"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="1" app:layout_constraintHorizontal_weight="1"
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
android:gravity="center" android:gravity="center"
android:paddingEnd="10dp" android:paddingEnd="10dp"
android:text="@string/dot" android:text="@string/dot"
android:textSize="22sp" android:textSize="18sp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="1" app:layout_constraintHorizontal_weight="1"
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
android:layout_marginStart="6dp" android:layout_marginStart="6dp"
android:layout_marginTop="40dp" android:layout_marginTop="40dp"
android:text="@string/dot" android:text="@string/dot"
android:textSize="22sp" /> android:textSize="18sp" />
<Button <Button
android:id="@+id/btn_get_bonus" android:id="@+id/btn_get_bonus"
......
...@@ -4,5 +4,5 @@ ...@@ -4,5 +4,5 @@
# Location of the SDK. This is only used by Gradle. # Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the # For customization when using a Version Control System, please read the
# header note. # header note.
#Mon Mar 08 19:40:55 CST 2021 #Wed Mar 10 10:02:25 CST 2021
sdk.dir=/Users/Hello/Library/Android/sdk sdk.dir=/Users/mcg/Library/Android/sdk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment