1. 优化小智动画实现
2. 入口按钮添加白天模式的阴影 3. 大而全数据(短链+长链)-> 单独短链 4. 内存优化
|
After Width: | Height: | Size: 668 B |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 668 B |
|
After Width: | Height: | Size: 2.4 KiB |
BIN
modules/mogo-module-extensions/src/main/res/drawable-xhdpi/module_ext_ic_message2.png
Normal file → Executable file
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
@@ -8,11 +8,12 @@
|
||||
android:id="@+id/module_ext_id_weather_container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/module_ext_height"
|
||||
android:background="@drawable/module_ext_drawable_weather_bkg"
|
||||
android:background="@drawable/module_ext_shadow_bkg"
|
||||
android:gravity="center"
|
||||
android:paddingStart="@dimen/module_ext_weather_container_paddingLeft"
|
||||
android:paddingEnd="@dimen/module_ext_weather_container_paddingRight"
|
||||
android:visibility="invisible"
|
||||
android:translationY="@dimen/module_common_shadow_width"
|
||||
app:layout_goneMarginLeft="@dimen/module_ext_notice_margin_start"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@+id/module_ext_id_msg"
|
||||
@@ -37,23 +38,24 @@
|
||||
tools:text="28°" />
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
<RelativeLayout
|
||||
android:id="@+id/module_ext_id_msg"
|
||||
android:layout_width="@dimen/module_ext_height"
|
||||
android:layout_height="@dimen/module_ext_height"
|
||||
android:layout_marginStart="@dimen/module_ext_notice_margin_start"
|
||||
android:translationY="@dimen/module_common_shadow_width"
|
||||
android:layout_marginEnd="@dimen/module_ext_msg_marginRight"
|
||||
android:background="@drawable/module_ext_drawable_msg_container_bkg"
|
||||
android:background="@drawable/module_ext_shadow_bkg"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivUserHeadImg"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/ivUserHeadImg"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/module_ext_id_msg_icon_counter"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/module_ext_ic_message2" />
|
||||
|
||||
@@ -61,23 +63,20 @@
|
||||
android:id="@+id/module_ext_id_msg_counter"
|
||||
android:layout_width="@dimen/module_ext_msg_counter_width"
|
||||
android:layout_height="@dimen/module_ext_msg_counter_height"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="@dimen/module_ext_msg_dot_marginLeft"
|
||||
android:layout_marginBottom="@dimen/module_ext_msg_dot_marginRight"
|
||||
android:background="@drawable/module_ext_drawable_msg_bkg"
|
||||
android:gravity="center"
|
||||
android:layout_alignParentRight="true"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="@dimen/module_ext_msg_counter_textSize"
|
||||
tools:text="···" />
|
||||
</FrameLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivUserHeadImg"
|
||||
android:layout_width="@dimen/module_ext_height"
|
||||
android:layout_height="@dimen/module_ext_height"
|
||||
android:src="@drawable/model_ext_default_user_head"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/module_ext_id_weather_container"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/module_ext_id_weather_container"
|
||||
tools:visibility="gone" />
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:visibility="visible" />
|
||||
</merge>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="module_ext_msg_counter_margin">26px</dimen>
|
||||
</resources>
|
||||
@@ -55,7 +55,7 @@
|
||||
<dimen name="module_entrance_id_button_marginTop">20px</dimen>
|
||||
|
||||
<!-- module_ext_layout_extensions.xml-->
|
||||
<dimen name="module_ext_height">100px</dimen>
|
||||
<dimen name="module_ext_height">120px</dimen>
|
||||
<dimen name="module_ext_paddingRight">60px</dimen>
|
||||
<dimen name="module_ext_paddingLeft">60px</dimen>
|
||||
<dimen name="module_ext_voice_textSize">32px</dimen>
|
||||
@@ -145,4 +145,5 @@
|
||||
<dimen name="module_ext_display_overview_icon_marginTop">20px</dimen>
|
||||
|
||||
<dimen name="module_ext_top_over_navi_height">40px</dimen>
|
||||
<dimen name="module_ext_msg_counter_margin">45px</dimen>
|
||||
</resources>
|
||||
@@ -55,7 +55,7 @@
|
||||
<dimen name="module_entrance_id_button_marginTop">20px</dimen>
|
||||
|
||||
<!-- module_ext_layout_extensions.xml-->
|
||||
<dimen name="module_ext_height">120px</dimen>
|
||||
<dimen name="module_ext_height">140px</dimen>
|
||||
<dimen name="module_ext_paddingRight">60px</dimen>
|
||||
<dimen name="module_ext_paddingLeft">60px</dimen>
|
||||
<dimen name="module_ext_voice_textSize">32px</dimen>
|
||||
@@ -147,4 +147,5 @@
|
||||
<dimen name="module_ext_top_over_navi_height">34px</dimen>
|
||||
<dimen name="module_ext_notice_margin_start">175px</dimen>
|
||||
<dimen name="module_ext_weather_margin_start">30px</dimen>
|
||||
<dimen name="module_ext_msg_counter_margin">45px</dimen>
|
||||
</resources>
|
||||
@@ -56,7 +56,7 @@
|
||||
<dimen name="module_entrance_id_button_marginTop">8px</dimen>
|
||||
|
||||
<!-- module_ext_layout_extensions.xml-->
|
||||
<dimen name="module_ext_height">66px</dimen>
|
||||
<dimen name="module_ext_height">82px</dimen>
|
||||
<dimen name="module_ext_paddingRight">32px</dimen>
|
||||
<dimen name="module_ext_paddingLeft">32px</dimen>
|
||||
|
||||
@@ -152,5 +152,6 @@
|
||||
|
||||
<dimen name="module_ext_top_over_navi_height">19px</dimen>
|
||||
<dimen name="module_ext_weather_margin_start">16px</dimen>
|
||||
<dimen name="module_ext_msg_counter_margin">26px</dimen>
|
||||
|
||||
</resources>
|
||||