Переглянути джерело

1.修改Android Apex Mobile地图背景色。

Pen Li 8 роки тому
батько
коміт
493858ca5b

+ 6 - 0
Apex Mobile/app/src/main/java/com/usai/apex/mainframe/TrackingListFragment.java

@@ -6,6 +6,7 @@ import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.content.IntentFilter;
+import android.graphics.Color;
 import android.os.Bundle;
 import android.support.annotation.Nullable;
 import android.support.v4.app.Fragment;
@@ -587,6 +588,7 @@ TrackingListSearchResult searchresult	= new TrackingListSearchResult();
 
         LinearLayout linearLayout = new LinearLayout(context);
         linearLayout.setOrientation(LinearLayout.VERTICAL);
+        linearLayout.setBackgroundColor(Color.parseColor("#EFEFF4"));
 
         if (this instanceof RecentFragment) {
 
@@ -598,6 +600,8 @@ TrackingListSearchResult searchresult	= new TrackingListSearchResult();
 
             linearLayout.addView(shipMap,mapLayoutParams);
 
+            mShipMap.setBackgroundColor(Color.parseColor("#EFEFF4"));
+
             configureMap(mShipMap);
         }
 
@@ -627,6 +631,8 @@ TrackingListSearchResult searchresult	= new TrackingListSearchResult();
         mPullRefreshListView = lv;
         lv.setId(android.R.id.list);
         lv.setDrawSelectorOnTop(false);
+        lv.setBackgroundColor(Color.parseColor("#EFEFF4"));
+
 
         swipeRefreshLayout.addView(lv, new FrameLayout.LayoutParams(
                 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));

+ 4 - 1
Apex Mobile/app/src/main/res/layout/detail_fragment.xml

@@ -1,13 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
-    android:layout_height="wrap_content" >
+    android:layout_height="wrap_content"
+                android:background="#EFEFF4"
+    >
 
     <LinearLayout
         android:id="@+id/detail_linear"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:orientation="vertical"
+        android:background="#EFEFF4"
         >
 
         <!--<com.usai.apex.ShipMap.ShipMap-->

+ 2 - 1
Apex Mobile/app/src/main/res/layout/detail_fragment_withmap.xml

@@ -2,7 +2,7 @@
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
-                android:background="#FFF5F5F5"
+                android:background="#EFEFF4"
     >
 
     <LinearLayout
@@ -10,6 +10,7 @@
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:orientation="vertical"
+        android:background="#EFEFF4"
         >
 
         <com.usai.apex.ShipMap.ShipMap

+ 2 - 1
Apex Mobile/app/src/main/res/layout/ship_google_map.xml

@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                 android:layout_width="match_parent"
-                android:layout_height="match_parent">
+                android:layout_height="match_parent"
+    android:background="#EFEFF4">
 
     <!--<com.google.android.gms.maps.MapView-->
         <!--android:id="@+id/ship_google_map"-->

+ 1 - 0
Apex Mobile/app/src/main/res/layout/tracking_list_cell.xml

@@ -4,6 +4,7 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
+              android:background="#EFEFF4"
     android:orientation="vertical">
 
     <android.support.constraint.ConstraintLayout