瀏覽代碼

调整图标大小

Axion 7 年之前
父節點
當前提交
49dfc8c404

+ 3 - 3
app/src/main/java/com/wiipu/peopleheart/MainActivity.java

@@ -67,15 +67,15 @@ public class MainActivity extends BaseActivity implements RadioGroup.OnCheckedCh
         infoBtn = getView(R.id.tab_main_info);
 
         Drawable homeDrawable = getResources().getDrawable(R.drawable.tab_home);
-        homeDrawable.setBounds(0, 0, CommonUtils.dp2px(40), CommonUtils.dp2px(40));
+        homeDrawable.setBounds(0, 0, CommonUtils.dp2px(29), CommonUtils.dp2px(29));
         homeBtn.setCompoundDrawables(null,homeDrawable,null,null);
 
         Drawable caseDrawble = getResources().getDrawable(R.drawable.tab_case);
-        caseDrawble.setBounds(0, 0, CommonUtils.dp2px(40), CommonUtils.dp2px(40));
+        caseDrawble.setBounds(0, 0, CommonUtils.dp2px(29), CommonUtils.dp2px(29));
         caseBtn.setCompoundDrawables(null, caseDrawble, null, null);
 
         Drawable infoDrawble = getResources().getDrawable(R.drawable.tab_info);
-        infoDrawble.setBounds(0, 0, CommonUtils.dp2px(40), CommonUtils.dp2px(40));
+        infoDrawble.setBounds(0, 0, CommonUtils.dp2px(29), CommonUtils.dp2px(29));
         infoBtn.setCompoundDrawables(null, infoDrawble, null, null);
 
         //主页

+ 4 - 4
app/src/main/res/layout/activity_main.xml

@@ -18,7 +18,7 @@
     <RelativeLayout
         android:id="@+id/rl_main_bottom"
         android:layout_width="match_parent"
-        android:layout_height="@dimen/margin80dp"
+        android:layout_height="@dimen/margin55dp"
         android:background="@color/white"
         android:layout_alignParentBottom="true"
         >
@@ -26,7 +26,6 @@
             android:id="@+id/rg_main_bottom"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
-            android:paddingTop="8dp"
             android:orientation="horizontal">
             <RadioButton
                 android:id="@+id/tab_main_home"
@@ -37,10 +36,9 @@
                 android:button="@null"
                 android:textSize="@dimen/textsize_12"
                 android:drawableTop="@drawable/tab_home"
-                android:drawablePadding="@dimen/margin2dp"
                 android:gravity="center"
                 android:text="@string/tv_main"
-                android:clickable="true"
+                android:paddingTop="@dimen/margin5dp"
                 android:textColor="@drawable/color_text_bottom_tab" />
 
             <RadioButton
@@ -49,6 +47,7 @@
                 android:layout_height="match_parent"
                 android:layout_weight="1"
                 android:button="@null"
+               android:paddingTop="@dimen/margin5dp"
                 android:textSize="@dimen/textsize_12"
                 android:drawableTop="@drawable/tab_case"
                 android:gravity="center"
@@ -61,6 +60,7 @@
                 android:layout_height="match_parent"
                 android:layout_weight="1"
                 android:button="@null"
+                android:paddingTop="@dimen/margin5dp"
                 android:drawableTop="@drawable/tab_info"
                 android:gravity="center"
                 android:textSize="@dimen/textsize_12"

+ 2 - 2
app/src/main/res/layout/fragment_case.xml

@@ -8,12 +8,12 @@
     <RelativeLayout
         android:id="@+id/ll_case"
         android:layout_width="match_parent"
-        android:layout_height="@dimen/margin48dp"
+        android:layout_height="@dimen/margin44dp"
         android:background="@color/blue_black">
 
         <ImageView
             android:id="@+id/iv_back_case"
-            android:layout_width="@dimen/margin50dp"
+            android:layout_width="@dimen/margin44dp"
             android:layout_height="match_parent"
             android:src="@drawable/ic_imagepicker_arrow_left"
             android:layout_alignParentLeft="true"

+ 2 - 2
app/src/main/res/layout/fragment_home_net.xml

@@ -8,12 +8,12 @@
     <RelativeLayout
         android:id="@+id/ll_home_net"
         android:layout_width="match_parent"
-        android:layout_height="@dimen/margin48dp"
+        android:layout_height="@dimen/margin44dp"
         android:background="@color/blue_black">
 
         <ImageView
             android:id="@+id/iv_back_home_net"
-            android:layout_width="@dimen/margin50dp"
+            android:layout_width="@dimen/margin44dp"
             android:layout_height="match_parent"
             android:layout_alignParentLeft="true"
             android:layout_centerInParent="true"

+ 2 - 2
app/src/main/res/layout/fragment_info.xml

@@ -8,12 +8,12 @@
     <RelativeLayout
         android:id="@+id/ll_info"
         android:layout_width="match_parent"
-        android:layout_height="@dimen/margin48dp"
+        android:layout_height="@dimen/margin44dp"
         android:background="@color/blue_black">
 
         <ImageView
             android:id="@+id/iv_back_info"
-            android:layout_width="@dimen/margin50dp"
+            android:layout_width="@dimen/margin44dp"
             android:layout_height="match_parent"
             android:src="@drawable/ic_imagepicker_arrow_left"
             android:layout_alignParentLeft="true"