Prechádzať zdrojové kódy

refactor(更新) :
- 修改首页菜单图标
- 修改道岔状态菜单图标
- 调整首页菜单列表高度为自适应内容

周文健 2 mesiacov pred
rodič
commit
1949c43985

+ 1 - 1
app/src/main/java/com/grkj/iscs_mars/view/activity/HomeActivity.kt

@@ -116,7 +116,7 @@ class HomeActivity : BaseMvpActivity<IHomeView, HomePresenter, ActivityHomeBindi
         mMenuList.add(
             Menu(
                 getString(R.string.switch_status),
-                R.mipmap.menu_icon_device_status
+                R.mipmap.icon_menu_switch
             )
         )
         mMenuList.add(

+ 1 - 0
app/src/main/res/layout/activity_home.xml

@@ -70,6 +70,7 @@
         <androidx.recyclerview.widget.RecyclerView
             android:id="@+id/rv_menu"
             style="@style/CommonRecyclerView"
+            android:layout_height="wrap_content"
             android:layout_above="@id/item_setting"
             android:layout_below="@id/v_divider_title"
             tools:listitem="@layout/item_rv_menu" />

+ 2 - 1
app/src/main/res/layout/item_rv_menu.xml

@@ -9,7 +9,8 @@
     <ImageView
         android:id="@+id/iv_icon"
         android:layout_width="@dimen/item_rv_menu_icon_size"
-        android:layout_height="@dimen/item_rv_menu_icon_size" />
+        android:layout_height="@dimen/item_rv_menu_icon_size"
+        android:tint="@color/color_d7d2d2" />
 
     <TextView
         android:id="@+id/tv_name"

BIN
app/src/main/res/mipmap-xhdpi/icon_menu_switch.png