opt ui:
1. 头像大小及边框 2. toast白天模式背景色
1
.idea/gradle.xml
generated
@@ -74,6 +74,7 @@
|
|||||||
</set>
|
</set>
|
||||||
</option>
|
</option>
|
||||||
<option name="resolveModulePerSourceSet" value="false" />
|
<option name="resolveModulePerSourceSet" value="false" />
|
||||||
|
<option name="useQualifiedModuleNames" value="true" />
|
||||||
</GradleProjectSettings>
|
</GradleProjectSettings>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@@ -966,15 +966,15 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
|||||||
mMsgContainer.setVisibility(View.GONE);
|
mMsgContainer.setVisibility(View.GONE);
|
||||||
|
|
||||||
|
|
||||||
String enthusiasmIndex = "一般的字加粗的字一般的字";
|
// String enthusiasmIndex = "一般的字加粗的字一般的字";
|
||||||
SpannableString spannableStringUnSelectCountStr = new SpannableString(enthusiasmIndex);
|
// SpannableString spannableStringUnSelectCountStr = new SpannableString(enthusiasmIndex);
|
||||||
ForegroundColorSpan foregroundColorSpanUnSelectCount = new ForegroundColorSpan(Color.RED);
|
// ForegroundColorSpan foregroundColorSpanUnSelectCount = new ForegroundColorSpan(Color.RED);
|
||||||
spannableStringUnSelectCountStr.setSpan(foregroundColorSpanUnSelectCount, 4, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
// spannableStringUnSelectCountStr.setSpan(foregroundColorSpanUnSelectCount, 4, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
||||||
|
//
|
||||||
TipToast.tip(spannableStringUnSelectCountStr.toString());
|
// TipToast.tip(spannableStringUnSelectCountStr.toString());
|
||||||
// TipDrawable drawable =
|
TipDrawable drawable =
|
||||||
// new TipDrawable(getResources().getDrawable(R.drawable.model_ext_default_user_head));
|
new TipDrawable(getResources().getDrawable(R.drawable.model_ext_default_user_head));
|
||||||
// TipToast.tip("分享成功",drawable);
|
TipToast.tip("分享成功",drawable);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
@@ -69,14 +69,24 @@
|
|||||||
tools:text="···" />
|
tools:text="···" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivUserHeadBoard"
|
||||||
|
android:layout_width="@dimen/module_ext_user_avator_board_size"
|
||||||
|
android:layout_height="@dimen/module_ext_user_avator_board_size"
|
||||||
|
android:background="@drawable/model_ext_default_user_head_board"
|
||||||
|
android:layout_marginRight="@dimen/module_common_shadow_width_pos"
|
||||||
|
android:layout_marginTop="@dimen/module_common_shadow_width_pos"
|
||||||
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/ivUserHeadImg"
|
android:id="@+id/ivUserHeadImg"
|
||||||
android:layout_width="@dimen/module_ext_user_avator_size"
|
android:layout_width="@dimen/module_ext_user_avator_size"
|
||||||
android:layout_height="@dimen/module_ext_user_avator_size"
|
android:layout_height="@dimen/module_ext_user_avator_size"
|
||||||
android:layout_marginRight="@dimen/module_common_shadow_width_pos"
|
|
||||||
android:layout_marginTop="@dimen/module_common_shadow_width_pos"
|
|
||||||
android:src="@drawable/model_ext_default_user_head"
|
android:src="@drawable/model_ext_default_user_head"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
tools:visibility="visible"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintLeft_toLeftOf="@id/ivUserHeadBoard"
|
||||||
tools:visibility="visible" />
|
app:layout_constraintTop_toTopOf="@id/ivUserHeadBoard"
|
||||||
|
app:layout_constraintRight_toRightOf="@id/ivUserHeadBoard"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/ivUserHeadBoard"/>
|
||||||
</merge>
|
</merge>
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<dimen name="module_ext_msg_counter_margin">26px</dimen>
|
<dimen name="module_ext_msg_counter_margin">26px</dimen>
|
||||||
<dimen name="module_ext_user_avator_size">66px</dimen>
|
<dimen name="module_ext_user_avator_size">56px</dimen>
|
||||||
|
<dimen name="module_ext_user_avator_board_size">80px</dimen>
|
||||||
<dimen name="module_ext_layout_padding">10px</dimen>
|
<dimen name="module_ext_layout_padding">10px</dimen>
|
||||||
<dimen name="module_ext_layout_paddingRight">2px</dimen>
|
<dimen name="module_ext_layout_paddingRight">2px</dimen>
|
||||||
<dimen name="module_ext_layout_paddingBottom">2px</dimen>
|
<dimen name="module_ext_layout_paddingBottom">2px</dimen>
|
||||||
|
|||||||
@@ -147,7 +147,8 @@
|
|||||||
|
|
||||||
<dimen name="module_ext_top_over_navi_height">40px</dimen>
|
<dimen name="module_ext_top_over_navi_height">40px</dimen>
|
||||||
<dimen name="module_ext_msg_counter_margin">45px</dimen>
|
<dimen name="module_ext_msg_counter_margin">45px</dimen>
|
||||||
<dimen name="module_ext_user_avator_size">120px</dimen>
|
<dimen name="module_ext_user_avator_size">100px</dimen>
|
||||||
|
<dimen name="module_ext_user_avator_board_size">134px</dimen>
|
||||||
<dimen name="module_ext_layout_padding">30px</dimen>
|
<dimen name="module_ext_layout_padding">30px</dimen>
|
||||||
<dimen name="module_ext_layout_paddingRight">20px</dimen>
|
<dimen name="module_ext_layout_paddingRight">20px</dimen>
|
||||||
<dimen name="module_ext_layout_paddingBottom">20px</dimen>
|
<dimen name="module_ext_layout_paddingBottom">20px</dimen>
|
||||||
|
|||||||
@@ -150,7 +150,8 @@
|
|||||||
<dimen name="module_ext_notice_margin_start">10px</dimen>
|
<dimen name="module_ext_notice_margin_start">10px</dimen>
|
||||||
<dimen name="module_ext_weather_margin_start">10px</dimen>
|
<dimen name="module_ext_weather_margin_start">10px</dimen>
|
||||||
<dimen name="module_ext_msg_counter_margin">45px</dimen>
|
<dimen name="module_ext_msg_counter_margin">45px</dimen>
|
||||||
<dimen name="module_ext_user_avator_size">120px</dimen>
|
<dimen name="module_ext_user_avator_size">100px</dimen>
|
||||||
|
<dimen name="module_ext_user_avator_board_size">134px</dimen>
|
||||||
<dimen name="module_ext_layout_padding">30px</dimen>
|
<dimen name="module_ext_layout_padding">30px</dimen>
|
||||||
<dimen name="module_ext_layout_paddingRight">20px</dimen>
|
<dimen name="module_ext_layout_paddingRight">20px</dimen>
|
||||||
<dimen name="module_ext_layout_paddingBottom">20px</dimen>
|
<dimen name="module_ext_layout_paddingBottom">20px</dimen>
|
||||||
|
|||||||
@@ -158,7 +158,8 @@
|
|||||||
<dimen name="module_ext_top_over_navi_height">19px</dimen>
|
<dimen name="module_ext_top_over_navi_height">19px</dimen>
|
||||||
<dimen name="module_ext_weather_margin_start">0px</dimen>
|
<dimen name="module_ext_weather_margin_start">0px</dimen>
|
||||||
<dimen name="module_ext_msg_counter_margin">26px</dimen>
|
<dimen name="module_ext_msg_counter_margin">26px</dimen>
|
||||||
<dimen name="module_ext_user_avator_size">66px</dimen>
|
<dimen name="module_ext_user_avator_size">56px</dimen>
|
||||||
|
<dimen name="module_ext_user_avator_board_size">80px</dimen>
|
||||||
<dimen name="module_ext_layout_padding">10px</dimen>
|
<dimen name="module_ext_layout_padding">10px</dimen>
|
||||||
<dimen name="module_ext_layout_paddingRight">2px</dimen>
|
<dimen name="module_ext_layout_paddingRight">2px</dimen>
|
||||||
<dimen name="module_ext_layout_paddingBottom">2px</dimen>
|
<dimen name="module_ext_layout_paddingBottom">2px</dimen>
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
<?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">
|
||||||
<corners android:radius="90dp" />
|
<corners android:radius="90dp" />
|
||||||
<gradient
|
<solid android:color="#d8000000" />
|
||||||
android:angle="180"
|
|
||||||
android:endColor="#E5F5F5F5"
|
|
||||||
android:startColor="#FFFFFFFF" />
|
|
||||||
</shape>
|
</shape>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="modules_commons_toast_text_color_light">#FF333333</color>
|
<color name="modules_commons_toast_text_color_light">#fff</color>
|
||||||
<color name="module_commons_dlg_bkg_light">#66000000</color>
|
<color name="module_commons_dlg_bkg_light">#66000000</color>
|
||||||
<color name="module_commons_wm_dialog_text_textColor_light">#333333</color>
|
<color name="module_commons_wm_dialog_text_textColor_light">#333333</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 5.8 KiB |