Explorar el Código

Merge branch 'developer' of https://gitlab.com/Arisono/SkWeiChat-Baidu into feature

# Conflicts:
#	WeiChat/version.properties
Bitliker hace 7 años
padre
commit
b216641111
Se han modificado 26 ficheros con 660 adiciones y 239 borrados
  1. 1 0
      WeiChat/src/main/res/drawable/selector_me_menu_item_bg.xml
  2. 2 0
      WeiChat/src/main/res/layout/activity_booking_detail.xml
  3. 14 10
      WeiChat/src/main/res/layout/activity_data_form_field.xml
  4. 12 9
      WeiChat/src/main/res/layout/grid_item_simpletext.xml
  5. 1 0
      WeiChat/src/main/res/layout/item_pop_employee.xml
  6. 0 2
      WeiChat/src/main/res/layout/pop_crm_list.xml
  7. 5 5
      WeiChat/version.properties
  8. 35 51
      app_core/common/src/main/java/com/common/system/SystemUtil.java
  9. 4 12
      app_core/common/src/main/java/com/core/base/BaseActivity.java
  10. 19 1
      app_core/common/src/main/java/com/core/widget/view/selectcalendar/bean/Data.java
  11. 14 10
      app_core/common/src/main/res/layout/activity_data_form_field.xml
  12. 12 10
      app_core/common/src/main/res/layout/grid_item_simpletext.xml
  13. 1 0
      app_core/common/src/main/res/layout/item_pop_employee.xml
  14. 1 1
      app_core/common/src/main/res/layout/pop_crm_list.xml
  15. 2 0
      app_modular/appbooking/src/main/res/layout/activity_bbooking_detail.xml
  16. 12 12
      app_modular/appcontact/src/main/java/com/uas/appcontact/ui/activity/CompanyContactsActivity.java
  17. 1 0
      app_modular/appme/src/main/AndroidManifest.xml
  18. 3 18
      app_modular/appme/src/main/java/com/uas/appme/settings/activity/FontSizeActivity.java
  19. 9 5
      app_modular/appme/src/main/java/com/uas/appme/widget/SetTextSizeView.java
  20. 366 15
      app_modular/appme/src/main/res/layout/activity_font_size.xml
  21. 1 1
      app_modular/appme/src/main/res/values-en/strings.xml
  22. 1 0
      app_modular/appme/src/main/res/values/strings.xml
  23. 10 8
      app_modular/apputils/src/main/res/layout/activity_simple_web.xml
  24. 51 1
      app_modular/appworks/src/main/java/com/uas/appworks/OA/erp/activity/form/DataFormDetailActivity.java
  25. 17 16
      app_modular/appworks/src/main/java/com/uas/appworks/OA/erp/adapter/StickyGridAdapter.java
  26. 66 52
      app_modular/appworks/src/main/res/layout/activity_public_inquiry_quote.xml

+ 1 - 0
WeiChat/src/main/res/drawable/selector_me_menu_item_bg.xml

@@ -2,5 +2,6 @@
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
     <item android:drawable="@color/me_menu_item_press" android:state_pressed="true"/>
     <item android:drawable="@color/me_menu_item_press" android:state_selected="true"/>
+    <item android:drawable="@color/me_menu_item_normal" android:state_focused="false"/>
     <item android:drawable="@color/me_menu_item_normal"/>
 </selector>

+ 2 - 0
WeiChat/src/main/res/layout/activity_booking_detail.xml

@@ -128,6 +128,8 @@
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         android:layout_marginLeft="10dp"
+                        android:drawablePadding="3dp"
+                        android:drawableRight="@drawable/navigation"
                         android:text="*****************"
                         android:textColor="@color/black" />
                 </LinearLayout>

+ 14 - 10
WeiChat/src/main/res/layout/activity_data_form_field.xml

@@ -1,8 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:tools="http://schemas.android.com/tools"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent">
+                xmlns:tools="http://schemas.android.com/tools"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:background="@color/white">
 
     <ScrollView
         android:layout_width="match_parent"
@@ -45,17 +46,18 @@
                 android:id="@+id/asset_grid"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
-                android:clipToPadding="false"
-                android:paddingLeft="10dp"
-                android:paddingRight="10dp"
+                android:paddingBottom="20dp"
                 android:background="#faf9f9"
+                android:clipToPadding="false"
                 android:columnWidth="90dip"
                 android:horizontalSpacing="15dip"
-                android:verticalSpacing="10dip"
                 android:listSelector="@color/light_grey"
                 android:numColumns="auto_fit"
+                android:paddingLeft="10dp"
+                android:paddingRight="10dp"
                 android:scrollbars="none"
-                 />
+                android:verticalSpacing="10dip"
+                />
 
             <LinearLayout
                 android:id="@+id/ll_hide"
@@ -85,16 +87,18 @@
                 android:id="@+id/asset_grid_delete"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
+                android:paddingBottom="20dp"
                 android:background="#faf9f9"
                 android:clipToPadding="false"
                 android:columnWidth="90dip"
-                android:paddingLeft="10dp"
-                android:paddingRight="10dp"
                 android:horizontalSpacing="15dip"
                 android:listSelector="@color/light_grey"
                 android:numColumns="auto_fit"
+                android:paddingLeft="10dp"
+                android:paddingRight="10dp"
                 android:scrollbars="none"
                 android:verticalSpacing="10dip" />
+
         </LinearLayout>
     </ScrollView>
 

+ 12 - 9
WeiChat/src/main/res/layout/grid_item_simpletext.xml

@@ -1,20 +1,23 @@
 <?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="wrap_content"
-    android:orientation="vertical">
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+              android:layout_width="match_parent"
+              android:layout_height="wrap_content"
+              android:orientation="vertical">
+
     <TextView
         android:id="@+id/tv_field"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
+        android:layout_height="match_parent"
         android:layout_centerInParent="true"
+        android:background="@drawable/shape_button_fields"
+        android:ellipsize="end"
         android:gravity="center"
-        android:textSize="13sp"
+        android:maxLines="2"
         android:minWidth="90dp"
         android:paddingBottom="8dp"
         android:paddingLeft="15dp"
         android:paddingRight="15dp"
         android:paddingTop="8dp"
-        android:background="@drawable/shape_button_fields"
-        android:text="字段名字:你好" />
-</RelativeLayout>
+        android:text="字段名字:你好"
+        android:textSize="13sp" />
+</LinearLayout>

+ 1 - 0
WeiChat/src/main/res/layout/item_pop_employee.xml

@@ -2,6 +2,7 @@
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
+    android:background="@drawable/selector_me_menu_item_bg"
     android:paddingBottom="10dp">
 
     <View

+ 0 - 2
WeiChat/src/main/res/layout/pop_crm_list.xml

@@ -2,9 +2,7 @@
 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent"
-    app:cardElevation="@dimen/paddingMin"
     android:layout_height="match_parent">
-
         <ListView
             android:id="@+id/mList"
             android:layout_width="match_parent"

+ 5 - 5
WeiChat/version.properties

@@ -1,5 +1,5 @@
-#Tue Jul 31 14:03:53 CST 2018
-debugName=519
-versionName=641
-debugCode=519
-versionCode=182
+#Wed Aug 01 09:18:08 CST 2018
+debugName=526
+versionName=637
+debugCode=526
+versionCode=178

+ 35 - 51
app_core/common/src/main/java/com/common/system/SystemUtil.java

@@ -9,6 +9,7 @@ import android.content.Context;
 import android.content.Intent;
 import android.content.pm.PackageInfo;
 import android.content.pm.PackageManager;
+import android.graphics.drawable.BitmapDrawable;
 import android.net.ConnectivityManager;
 import android.net.NetworkInfo;
 import android.net.Uri;
@@ -338,59 +339,40 @@ public class SystemUtil {
             ToastUtil.showToast(mContext, R.string.phone_number_format_error);
             return;
         }
-
-        final PopupWindow window = new PopupWindow(mContext);
-        View view = LayoutInflater.from(mContext).inflate(R.layout.item_select_alert_pop, null);
-        window.setContentView(view);
-        window.setBackgroundDrawable(mContext.getResources().getDrawable(R.drawable.pop_round_bg));
-        DisplayUtil.backgroundAlpha(mContext, 0.4f);
-        window.setTouchable(true);
-        setPopupWindowHW((Activity) mContext, window);
-        window.setOutsideTouchable(false);
-        window.setFocusable(true);
-        TextView title_tv = (TextView) view.findViewById(R.id.title_tv);
-        TextView message_tv = (TextView) view.findViewById(R.id.message_tv);
-        TextView sure_tv = (TextView) view.findViewById(R.id.sure_tv);
-        title_tv.setText(mContext.getString(R.string.dialog_confim_phone));
-        message_tv.setText(mContext.getString(R.string.dialog_phone) + phone);
-        sure_tv.setText(R.string.dialog_phone_action);
-
-        window.setOnDismissListener(new PopupWindow.OnDismissListener() {
-            @Override
-            public void onDismiss() {
-                DisplayUtil.backgroundAlpha(mContext, 1f);
-            }
-        });
-        view.findViewById(R.id.goto_tv).setOnClickListener(new View.OnClickListener() {
-            @Override
-            public void onClick(View v) {
-                window.dismiss();
-            }
-        });
-        sure_tv.setOnClickListener(new View.OnClickListener() {
-            @Override
-            public void onClick(View v) {
-                mContext.requestPermission(Manifest.permission.CALL_PHONE, new Runnable() {
+        MaterialDialog dialog = new MaterialDialog.Builder(mContext).title(R.string.dialog_confim_phone).content(mContext.getString(R.string.dialog_phone) + phone)
+                .positiveText(R.string.dialog_phone_action).negativeText(R.string.common_cancel).autoDismiss(false).callback(new MaterialDialog.ButtonCallback() {
                     @Override
-                    public void run() {
-                        // 用intent启动拨打电话
-                        Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phone));
-                        if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
-                            //预防万一
-                            return;
-                        }
-                        mContext.startActivity(intent);
+                    public void onPositive(MaterialDialog dialog) {
+                        mContext.requestPermission(Manifest.permission.CALL_PHONE, new Runnable() {
+                            @Override
+                            public void run() {
+                                // 用intent启动拨打电话
+                                Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phone));
+                                if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
+                                    //预防万一
+                                    return;
+                                }
+                                mContext.startActivity(intent);
+                            }
+                        }, new Runnable() {
+                            @Override
+                            public void run() {
+                                ToastUtil.showToast(mContext, R.string.not_system_permission);
+                            }
+                        });
+                        dialog.dismiss();
                     }
-                }, new Runnable() {
+
                     @Override
-                    public void run() {
-                        ToastUtil.showToast(mContext, R.string.not_system_permission);
+                    public void onNegative(MaterialDialog dialog) {
+                        super.onNegative(dialog);
+                        dialog.dismiss();
                     }
-                });
-                window.dismiss();
-            }
-        });
-        window.showAtLocation(view, Gravity.CENTER, 0, 0);
+                }).build();
+
+        dialog.show();
+
+
     }
 
     @Deprecated
@@ -403,8 +385,8 @@ public class SystemUtil {
                 final PopupWindow window = new PopupWindow(mContext);
                 View view = LayoutInflater.from(mContext).inflate(R.layout.item_select_alert_pop, null);
                 window.setContentView(view);
-                window.setBackgroundDrawable(mContext.getResources().getDrawable(R.drawable.pop_round_bg));
-                DisplayUtil.backgroundAlpha(mContext, 0.4f);
+                window.setBackgroundDrawable(new BitmapDrawable());
+                DisplayUtil.backgroundAlpha(mContext, 0.5f);
                 window.setTouchable(true);
                 setPopupWindowHW((Activity) mContext, window);
                 window.setOutsideTouchable(false);
@@ -446,6 +428,8 @@ public class SystemUtil {
             }
         }
     }
+    
+    
 
     public static void setPopupWindowHW(Activity ct, PopupWindow window) {
         window.getContentView().measure(0, 0);

+ 4 - 12
app_core/common/src/main/java/com/core/base/BaseActivity.java

@@ -100,7 +100,7 @@ public abstract class BaseActivity extends ActionBackActivity {
         //重启之后恢复到之前的语言
         switchLanguage(PreferenceUtils.getString(this, "language", "rCN"));
       
-        initFontScale(CommonUtil.getSharedPreferencesInt(MyApplication.getInstance(),"font_scale",0));
+        initFontScale(CommonUtil.getSharedPreferencesInt(MyApplication.getInstance(),"app_font_scale",0));
         // SystemUtil.setSystemBarTint(this);
 
     }
@@ -225,21 +225,13 @@ public abstract class BaseActivity extends ActionBackActivity {
             case 0:
                 configuration.fontScale = 1;
                 break;
-            case 2:
-                configuration.fontScale = 1.15f;
-                break;
-            case 3:
+            case 1:
                 configuration.fontScale = 1.2f;
                 break;
-            case 4:
-                configuration.fontScale =1.25f;
-                break;
-            case 5:
+            case 2:
                 configuration.fontScale = 1.3f;
                 break;
-            case 6:
-                configuration.fontScale =1.35f;
-                break;
+   
         }
         //0.85 小, 1 标准大小, 1.15 大,1.3 超大 ,1.45 特大 
         DisplayMetrics metrics = new DisplayMetrics();

+ 19 - 1
app_core/common/src/main/java/com/core/widget/view/selectcalendar/bean/Data.java

@@ -15,6 +15,7 @@ public class Data implements Parcelable {
     private int groupId;//组ID---控件需要用到
     private String group;//组名----多组的情况
     private boolean isSelected;
+    private boolean isForm;//是否是主表
     private int detno;//编号
     private String readonly;//是否只读
     private String allowblank;//是否允许为空
@@ -28,6 +29,7 @@ public class Data implements Parcelable {
     private String displayValue;//下拉字段隐藏的值
     private String field;//字段名
     private String formStoreKey;//formstore key 上传需要用到的key
+    private String gridCaller;//从表caller
     private int fdid;
     private boolean isEditing = true;//是否正在编辑
     private String maxlength;//最大长度
@@ -67,6 +69,14 @@ public class Data implements Parcelable {
         this.isSelected = isSelected;
     }
 
+    public boolean isForm() {
+        return isForm;
+    }
+
+    public void setForm(boolean form) {
+        isForm = form;
+    }
+
     public String getType() {
         return type;
     }
@@ -108,7 +118,7 @@ public class Data implements Parcelable {
     }
 
     public String getName() {
-        return name==null?"":name;
+        return name == null ? "" : name;
     }
 
     public void setName(String name) {
@@ -147,6 +157,14 @@ public class Data implements Parcelable {
         this.formStoreKey = formStoreKey;
     }
 
+    public String getGridCaller() {
+        return gridCaller;
+    }
+
+    public void setGridCaller(String gridCaller) {
+        this.gridCaller = gridCaller;
+    }
+
     public int getFdid() {
         return fdid;
     }

+ 14 - 10
app_core/common/src/main/res/layout/activity_data_form_field.xml

@@ -1,8 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:tools="http://schemas.android.com/tools"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent">
+                xmlns:tools="http://schemas.android.com/tools"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:background="@color/white">
 
     <ScrollView
         android:layout_width="match_parent"
@@ -45,17 +46,18 @@
                 android:id="@+id/asset_grid"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
-                android:clipToPadding="false"
-                android:paddingLeft="10dp"
-                android:paddingRight="10dp"
+                android:paddingBottom="20dp"
                 android:background="#faf9f9"
+                android:clipToPadding="false"
                 android:columnWidth="90dip"
                 android:horizontalSpacing="15dip"
-                android:verticalSpacing="10dip"
                 android:listSelector="@color/light_grey"
                 android:numColumns="auto_fit"
+                android:paddingLeft="10dp"
+                android:paddingRight="10dp"
                 android:scrollbars="none"
-                 />
+                android:verticalSpacing="10dip"
+                />
 
             <LinearLayout
                 android:id="@+id/ll_hide"
@@ -85,16 +87,18 @@
                 android:id="@+id/asset_grid_delete"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
+                android:paddingBottom="20dp"
                 android:background="#faf9f9"
                 android:clipToPadding="false"
                 android:columnWidth="90dip"
-                android:paddingLeft="10dp"
-                android:paddingRight="10dp"
                 android:horizontalSpacing="15dip"
                 android:listSelector="@color/light_grey"
                 android:numColumns="auto_fit"
+                android:paddingLeft="10dp"
+                android:paddingRight="10dp"
                 android:scrollbars="none"
                 android:verticalSpacing="10dip" />
+
         </LinearLayout>
     </ScrollView>
 

+ 12 - 10
app_core/common/src/main/res/layout/grid_item_simpletext.xml

@@ -1,22 +1,24 @@
 <?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="wrap_content"
-    android:orientation="vertical">
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+              android:layout_width="match_parent"
+              android:layout_height="wrap_content"
+              android:minHeight="?android:attr/listPreferredItemHeight"
+              android:orientation="vertical">
+
     <TextView
         android:id="@+id/tv_field"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_centerInParent="true"
-        android:gravity="center"
-        android:singleLine="true"
-        android:ellipsize="end"
         android:background="@drawable/shape_button_fields"
-        android:textSize="13sp"
+        android:ellipsize="end"
+        android:gravity="center"
+        android:maxLines="2"
         android:minWidth="90dp"
         android:paddingBottom="8dp"
         android:paddingLeft="15dp"
         android:paddingRight="15dp"
         android:paddingTop="8dp"
-        android:text="字段名字:你好" />
-</RelativeLayout>
+        android:text="字段名字:你好"
+        android:textSize="13sp" />
+</LinearLayout>

+ 1 - 0
app_core/common/src/main/res/layout/item_pop_employee.xml

@@ -2,6 +2,7 @@
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
+    android:background="@color/white"
     android:paddingBottom="10dp">
 
     <View

+ 1 - 1
app_core/common/src/main/res/layout/pop_crm_list.xml

@@ -12,7 +12,7 @@
         <ListView
             android:id="@+id/mList"
             style="@style/ListViewBasic"
-         
+         android:background="@color/white"
             android:layout_height="wrap_content"
             android:dividerHeight="0dp">
         </ListView>

+ 2 - 0
app_modular/appbooking/src/main/res/layout/activity_bbooking_detail.xml

@@ -158,6 +158,8 @@
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         android:layout_marginLeft="10dp"
+                        android:drawablePadding="3dp"
+                        android:drawableRight="@drawable/navigation"
                         android:text="*****************"
                         android:textColor="@color/black" />
                 </LinearLayout>

+ 12 - 12
app_modular/appcontact/src/main/java/com/uas/appcontact/ui/activity/CompanyContactsActivity.java

@@ -947,15 +947,15 @@ public class CompanyContactsActivity extends BaseActivity {
         popupWindow.setFocusable(true);
         // 设置允许在外点击消失
         popupWindow.setOutsideTouchable(false);
-        popupWindow.setOnDismissListener(new PopupWindow.OnDismissListener() {
-            @Override
-            public void onDismiss() {
-                DisplayUtil.backgroundAlpha(ct, 1f);
-                //显示
-                mRefreshLayout.getLayout().setVisibility(View.VISIBLE);
-            }
-        });
-        DisplayUtil.backgroundAlpha(this, 1f);
+//        popupWindow.setOnDismissListener(new PopupWindow.OnDismissListener() {
+//            @Override
+//            public void onDismiss() {
+//                DisplayUtil.backgroundAlpha(ct, 1f);
+//                //显示
+//                mRefreshLayout.getLayout().setVisibility(View.VISIBLE);
+//            }
+//        });
+//        DisplayUtil.backgroundAlpha(this, 1f);
         // 这个是为了点击“返回Back”也能使其消失,并且并不会影响你的背景
         popupWindow.setBackgroundDrawable(new BitmapDrawable());
         popupWindow.setHeight(ViewGroup.LayoutParams.WRAP_CONTENT);
@@ -1252,13 +1252,13 @@ public class CompanyContactsActivity extends BaseActivity {
         @Override
         public View getView(final int position, View convertView, ViewGroup parent) {
             convertView = super.getView(position, convertView, parent);
-            ImageView phone_img = (ImageView) convertView.findViewById(R.id.phone_img);
-            ImageView header_img = (ImageView) convertView.findViewById(R.id.header_img);
+            ImageView phone_img =  convertView.findViewById(R.id.phone_img);
+            ImageView header_img =  convertView.findViewById(R.id.header_img);
             final Map<String, Object> mMap = (Map<String, Object>) getItem(position);
             phone_img.setOnClickListener(new View.OnClickListener() {
                 @Override
                 public void onClick(View v) {
-                    SystemUtil.phoneAction(mContext, mMap.get("item_phone").toString());
+                    SystemUtil.phoneAction(CompanyContactsActivity.this, mMap.get("item_phone").toString());
                     LogUtil.i("企业架构界面 拨打电话"+JSON.toJSONString(mMap));
                 }
             });

+ 1 - 0
app_modular/appme/src/main/AndroidManifest.xml

@@ -120,6 +120,7 @@
 
         <activity android:name=".settings.activity.SystemAdminActivity" />
         <activity android:name=".settings.activity.FontSizeActivity"
+
             android:launchMode="singleTask">
 
             <intent-filter>

+ 3 - 18
app_modular/appme/src/main/java/com/uas/appme/settings/activity/FontSizeActivity.java

@@ -19,14 +19,15 @@ public class FontSizeActivity extends SupportToolBarActivity {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_font_size);
         LogUtil.d(TAG,"onCreate()");
+        setTitle(getString(R.string.app_font_size_setting));
         isClickSeek=getIntent().getBooleanExtra("isClickSeek",false);
         seek_font=findViewById(R.id.seek_font);
-        seek_font.setDefaultPosition(CommonUtil.getSharedPreferencesInt(MyApplication.getInstance(),"font_scale",0));
+        seek_font.setDefaultPosition(CommonUtil.getSharedPreferencesInt(MyApplication.getInstance(),"app_font_scale",0));
         seek_font.setOnPointResultListener(new SetTextSizeView.OnPointResultListener() {
             @Override
             public void onPointResult(int position) {
                 isClickSeek=true;
-                CommonUtil.setSharedPreferences(FontSizeActivity.this, "font_scale", position);
+                CommonUtil.setSharedPreferences(FontSizeActivity.this, "app_font_scale", position);
                 switch (position) {
                     case 0:
                         initFontScale(position);
@@ -40,22 +41,6 @@ public class FontSizeActivity extends SupportToolBarActivity {
                         initFontScale(position);
                         switchSettingAction();
                         break;
-                    case 3:
-                        initFontScale(position);
-                        switchSettingAction();
-                        break;
-                    case 4:
-                        initFontScale(position);
-                        switchSettingAction();
-                        break;
-                    case 5:
-                        initFontScale(position);
-                        switchSettingAction();
-                        break;
-                    case 6:
-                        initFontScale(position);
-                        switchSettingAction();
-                        break;
 
                 }
             }

+ 9 - 5
app_modular/appme/src/main/java/com/uas/appme/widget/SetTextSizeView.java

@@ -23,13 +23,13 @@ import java.util.List;
 public class SetTextSizeView extends View {
     private int defaultLineColor = Color.rgb(33, 33, 33);
     private int defaultLineWidth;
-    private int defaultMax = 5;
+    private int defaultMax = 2;
     private int defaultCircleColor = Color.WHITE;
     private int defaultCircleRadius;
     private int defaultPosition = 1;
 
     // 一共有多少格
-    private int max = 5;
+    private int max = 2;
     // 线条颜色
     private int lineColor;
     // 线条粗细
@@ -65,6 +65,7 @@ public class SetTextSizeView extends View {
         super(context, attrs);
         init(context, attrs);
     }
+    
 
     private void init(Context context, AttributeSet attrs) {
         // initDefault
@@ -94,8 +95,10 @@ public class SetTextSizeView extends View {
         mCirclePaint.setStyle(Paint.Style.FILL);
         // 设置阴影效果
         setLayerType(LAYER_TYPE_SOFTWARE, null);
-        mCirclePaint.setShadowLayer(15, 0, 0, Color.rgb(33, 33, 33));
+        mCirclePaint.setShadowLayer(12, 0, 0, Color.rgb(33, 33, 33));
     }
+    
+    
 
     private void initCustomAttr(int attr, TypedArray typedArray) {
         if (attr == R.styleable.SetTextSizeView_lineColor) {
@@ -119,10 +122,11 @@ public class SetTextSizeView extends View {
         circleY = height / 2;
         lineHeight = height / 6;
         // 横线宽度是总宽度-2个圆的半径
-        itemWidth = (w - 2 * circleRadius) / max;
+        itemWidth = (w - 4 * circleRadius) / max;
+        
         // 把可点击点保存起来
         for (int i = 0; i <= max; i++) {
-            points.add(new Point(circleRadius + i * itemWidth, height / 2));
+            points.add(new Point(2*circleRadius + i * itemWidth, height / 2));
         }
     }
 

+ 366 - 15
app_modular/appme/src/main/res/layout/activity_font_size.xml

@@ -1,22 +1,373 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:orientation="vertical"
-    tools:context="com.uas.appme.settings.activity.FontSizeActivity">
+    android:layout_height="match_parent">
+ <ScrollView
+     android:layout_width="match_parent"
+     android:layout_height="wrap_content"
+     android:layout_alignParentTop="true"
+     android:layout_marginBottom="@dimen/dp_10"
+     android:layout_above="@+id/rl_bottom">
+     <LinearLayout
+         android:id="@+id/ll_text_size"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:background="@color/lightgray"
+         android:orientation="vertical"
+         tools:context="com.uas.appme.settings.activity.FontSizeActivity">
 
+         <LinearLayout
+             android:layout_width="match_parent"
+             android:layout_height="wrap_content"
+             android:layout_gravity="center_vertical"
+             android:background="@color/white"
+             android:gravity="center_vertical"
+             android:orientation="horizontal">
 
-    <com.uas.appme.widget.SetTextSizeView
-        android:id="@+id/seek_font"
+             <ImageView
+                 android:layout_width="@dimen/dp_40"
+                 android:layout_height="@dimen/dp_40"
+                 android:layout_margin="@dimen/dp_10"
+                 android:src="@drawable/icon_yuyue3" />
+
+             <TextView
+                 android:layout_width="wrap_content"
+                 android:layout_height="wrap_content"
+                 android:text="xx的项目申请"
+                 android:textColor="@color/black"
+                 android:textSize="@dimen/sp_16" />
+
+         </LinearLayout>
+         <!--<view style="@style/app_line_horizontal_05p"
+             android:layout_marginLeft="@dimen/dp_10"
+             android:layout_marginRight="@dimen/dp_10"></view>-->
+         <LinearLayout
+             android:layout_width="match_parent"
+             android:layout_height="wrap_content"
+             android:background="@color/white"
+             android:orientation="vertical">
+
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:orientation="horizontal"
+                 android:paddingBottom="3dp"
+                 android:paddingLeft="@dimen/dp_10"
+                 android:paddingTop="3dp">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:text="项目类型" />
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:layout_marginLeft="20dp"
+                     android:text="2017091239"
+                     android:textColor="@color/black" />
+             </LinearLayout>
+
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:orientation="horizontal"
+                 android:paddingBottom="3dp"
+                 android:paddingLeft="@dimen/dp_10"
+                 android:paddingTop="3dp">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:text="项目编号" />
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:layout_marginLeft="20dp"
+                     android:text="WE1293012"
+                     android:textColor="@color/black" />
+             </LinearLayout>
+
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:orientation="horizontal"
+                 android:paddingBottom="3dp"
+                 android:paddingLeft="@dimen/dp_10"
+                 android:paddingTop="3dp">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:text="客户名称" />
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:layout_marginLeft="20dp"
+                     android:text="深圳市智手环科技有限公司"
+                     android:textColor="@color/black" />
+             </LinearLayout>
+
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:orientation="horizontal"
+                 android:paddingBottom="3dp"
+                 android:paddingLeft="@dimen/dp_10"
+                 android:paddingTop="3dp">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:text="客户编号" />
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:layout_marginLeft="20dp"
+                     android:text="29534234"
+                     android:textColor="@color/black" />
+             </LinearLayout>
+
+         </LinearLayout>
+
+         <LinearLayout
+             android:layout_width="match_parent"
+             android:layout_height="wrap_content"
+             android:layout_marginTop="@dimen/dp_10"
+             android:background="@color/white"
+             android:orientation="vertical">
+
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:background="@color/white"
+                 android:orientation="horizontal">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:paddingBottom="3dp"
+                     android:paddingLeft="@dimen/dp_10"
+                     android:paddingTop="3dp"
+                     android:text="单据序号1"
+                     android:textColor="#00A4EE" />
+
+             </LinearLayout>
+             <!--<view style="@style/app_line_horizontal_05p"
+                 android:layout_marginLeft="@dimen/dp_10"
+                 android:layout_marginRight="@dimen/dp_10"></view>-->
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:orientation="horizontal"
+                 android:paddingBottom="3dp"
+                 android:paddingLeft="@dimen/dp_10"
+                 android:paddingTop="3dp">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:text="预测单号" />
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:layout_marginLeft="20dp"
+                     android:text="20170729534234"
+                     android:textColor="@color/black" />
+             </LinearLayout>
+
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:orientation="horizontal"
+                 android:paddingBottom="3dp"
+                 android:paddingLeft="@dimen/dp_10"
+                 android:paddingTop="3dp">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:text="预测序号" />
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:layout_marginLeft="20dp"
+                     android:text="34534234"
+                     android:textColor="@color/black" />
+             </LinearLayout>
+
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:orientation="horizontal"
+                 android:paddingBottom="3dp"
+                 android:paddingLeft="@dimen/dp_10"
+                 android:paddingTop="3dp">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:text="物料编号" />
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:layout_marginLeft="20dp"
+                     android:text="29534234"
+                     android:textColor="@color/black" />
+             </LinearLayout>
+         </LinearLayout>
+         <!--    <view style="@style/app_line_horizontal_05p"
+                 android:layout_marginLeft="@dimen/dp_10"
+                 android:layout_marginRight="@dimen/dp_10"></view>-->
+         <LinearLayout
+             android:layout_width="match_parent"
+             android:layout_height="wrap_content"
+             android:background="@color/white"
+             android:orientation="vertical">
+
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:orientation="horizontal"
+                 android:padding="3dp">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:layout_marginLeft="3dp"
+                     android:text="单据序号1"
+                     android:textColor="#00A4EE" />
+
+             </LinearLayout>
+
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:orientation="horizontal"
+                 android:paddingBottom="3dp"
+                 android:paddingLeft="@dimen/dp_10"
+                 android:paddingTop="3dp">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:text="预测单号" />
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:layout_marginLeft="20dp"
+                     android:text="20170729534234"
+                     android:textColor="@color/black" />
+             </LinearLayout>
+
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:orientation="horizontal"
+                 android:paddingBottom="3dp"
+                 android:paddingLeft="@dimen/dp_10"
+                 android:paddingTop="3dp">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:text="预测序号" />
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:layout_marginLeft="20dp"
+                     android:text="34534234"
+                     android:textColor="@color/black" />
+             </LinearLayout>
+
+             <LinearLayout
+                 android:layout_width="match_parent"
+                 android:layout_height="wrap_content"
+                 android:orientation="horizontal"
+                 android:paddingBottom="3dp"
+                 android:paddingLeft="@dimen/dp_10"
+                 android:paddingTop="3dp">
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:text="物料编号" />
+
+                 <TextView
+                     android:layout_width="wrap_content"
+                     android:layout_height="wrap_content"
+                     android:layout_marginLeft="20dp"
+                     android:text="29534234"
+                     android:textColor="@color/black" />
+             </LinearLayout>
+         </LinearLayout>
+
+
+     </LinearLayout>
+ </ScrollView>
+<RelativeLayout
+    android:id="@+id/rl_bottom"
+    android:layout_width="match_parent"
+    android:layout_height="45dp"
+    android:layout_marginTop="20dp"
+    android:layout_above="@+id/seek_font_ll"
+    android:background="@android:color/white">
+    <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:textSize="14dp"
+        android:layout_alignParentBottom="true"
+        android:textColor="@color/black"
+        android:layout_marginLeft="15dp"
+        android:text="小"/>
+    <TextView
+        android:id="@+id/tv_middle"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:textColor="@color/black"
+        android:textSize="18dp"
+        android:layout_alignParentBottom="true"
+        android:layout_centerHorizontal="true"
+        android:text="中"/>
+    <TextView
+        android:layout_width="wrap_content"
+        android:textColor="@color/black"
+        android:layout_height="wrap_content"
+        android:layout_alignParentRight="true"
+        android:layout_alignParentBottom="true"
+        android:layout_marginRight="15dp"
+        android:textSize="26dp"
+        android:text="大"/>
+</RelativeLayout>
+    <LinearLayout
+        android:id="@+id/seek_font_ll"
         android:layout_width="match_parent"
-        app:totalCount="6"
-        android:background="@android:color/white"
-        android:layout_marginTop="30dp"
-        app:lineColor="@android:color/black"
-        app:circleColor="@android:color/white"
-        app:circleRadius="12dp"
-        app:SetTextlineWidth="0.1dp"
-        android:layout_height="35dp" />
-</LinearLayout>
+        android:layout_height="wrap_content"
+        android:background="@color/white"
+        android:layout_alignParentBottom="true"
+        android:orientation="horizontal">
+        <com.uas.appme.widget.SetTextSizeView
+            android:id="@+id/seek_font"
+            android:layout_width="match_parent"
+            android:layout_height="50dp"
+            android:layout_marginBottom="15dp"
+            android:background="@android:color/white"
+            app:SetTextlineWidth="0.1dp"
+            app:circleColor="@android:color/white"
+            app:circleRadius="12dp"
+            app:lineColor="@android:color/black"
+            app:totalCount="2" />  
+    </LinearLayout>
+ 
+</RelativeLayout>
+

+ 1 - 1
app_modular/appme/src/main/res/values-en/strings.xml

@@ -1866,7 +1866,7 @@
     <string name="input_name">请输入姓名</string>
 
     <string name="rest_date">休息时间</string>
-
+    <string name="app_font_size_setting">字体大小设置</string>
 
 
 </resources>

+ 1 - 0
app_modular/appme/src/main/res/values/strings.xml

@@ -1866,6 +1866,7 @@
     <string name="input_name">请输入姓名</string>
 
     <string name="rest_date">休息时间</string>
+    <string name="app_font_size_setting">字体大小设置</string>
 
 
 </resources>

+ 10 - 8
app_modular/apputils/src/main/res/layout/activity_simple_web.xml

@@ -1,14 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:app="http://schemas.android.com/apk/res-auto"
-    xmlns:tools="http://schemas.android.com/tools"
-    android:id="@+id/rl_root"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    tools:context="com.modular.apputils.activity.SimpleWebActivity">
+<RelativeLayout android:id="@+id/rl_root"
+                xmlns:android="http://schemas.android.com/apk/res/android"
+                xmlns:app="http://schemas.android.com/apk/res-auto"
+                xmlns:tools="http://schemas.android.com/tools"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                tools:context="com.modular.apputils.activity.SimpleWebActivity">
+
     <com.tencent.smtt.sdk.WebView
         android:id="@+id/mSimpleWebView"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:background="@color/linen" />
+        android:background="@color/linen"
+        android:layerType="software" />
 </RelativeLayout>

+ 51 - 1
app_modular/appworks/src/main/java/com/uas/appworks/OA/erp/activity/form/DataFormDetailActivity.java

@@ -189,6 +189,17 @@ public class DataFormDetailActivity extends BaseActivity implements View.OnClick
                                 data.setMaxlength(String.valueOf(items.getIntValue("fd_maxlength")));
                                 data.setFdid(items.getIntValue("fd_id"));
                                 data.setValue(items.getString("fd_value"));
+
+                                String dg_findfunctionname = items.getString("dg_findfunctionname");
+                                if (!TextUtils.isEmpty(dg_findfunctionname)) {
+                                    try {
+                                        String[] split = dg_findfunctionname.split("\\|");
+                                        data.setGridCaller(split[0]);
+                                        data.setFormStoreKey(split[1]);
+                                    } catch (Exception e) {
+
+                                    }
+                                }
                                 //TODO
                                 String fd_defaultvalue = JSONUtil.getText(items, "fd_defaultvalue");
                                 if (TextUtils.isEmpty(data.getValue()) && !TextUtils.isEmpty(fd_defaultvalue)) {
@@ -305,6 +316,17 @@ public class DataFormDetailActivity extends BaseActivity implements View.OnClick
                                         data.setFdid(items.getIntValue("gd_id"));
                                         data.setValue(items.getString("dg_value"));
 
+                                        String dg_findfunctionname = items.getString("dg_findfunctionname");
+                                        if (!TextUtils.isEmpty(dg_findfunctionname)) {
+                                            try {
+                                                String[] split = dg_findfunctionname.split("\\|");
+                                                data.setGridCaller(split[0]);
+                                                data.setFormStoreKey(split[1]);
+                                            } catch (Exception e) {
+
+                                            }
+                                        }
+
                                         if (!TextUtils.isEmpty(data.getType()) && data.getType().equals("D")) {
                                             data.setValue(DateFormatUtil.getStrDate4Date(new Date(), "yyyy-MM-dd HH:mm:ss"));
                                         }
@@ -408,6 +430,17 @@ public class DataFormDetailActivity extends BaseActivity implements View.OnClick
                                     data.setAllowblank(items.getString("dg_logictype"));
                                     data.setReadonly(items.getString("dg_editable"));
 
+                                    String dg_findfunctionname = items.getString("dg_findfunctionname");
+                                    if (!TextUtils.isEmpty(dg_findfunctionname)) {
+                                        try {
+                                            String[] split = dg_findfunctionname.split("\\|");
+                                            data.setGridCaller(split[0]);
+                                            data.setFormStoreKey(split[1]);
+                                        } catch (Exception e) {
+
+                                        }
+                                    }
+
                                     data.setValue(items.getString("dg_value"));
                                     if (d_startDate.equals(items.getString("dg_field"))) {
                                         if (StringUtil.isEmpty(items.getString("dg_value"))) {
@@ -902,6 +935,11 @@ public class DataFormDetailActivity extends BaseActivity implements View.OnClick
             for (int i = 0; i < mdata.size(); i++) {
                 groupIndex.add(index);
                 Data gData = new Data();
+                if (i == 0) {
+                    gData.setForm(true);
+                } else {
+                    gData.setForm(false);
+                }
                 gData.setGroup(mdata.get(i).getName());
                 gData.setGroupId(mdata.get(i).getId());
                 int size = mdata.get(i).getDatas().size();
@@ -1016,6 +1054,11 @@ public class DataFormDetailActivity extends BaseActivity implements View.OnClick
             for (int i = 0; i < mdata.size(); i++) {
                 groupIndex.add(index);
                 Data gData = new Data();
+                if (i == 0) {
+                    gData.setForm(true);
+                } else {
+                    gData.setForm(false);
+                }
                 gData.setGroup(mdata.get(i).getName());
                 gData.setGroupId(mdata.get(i).getId());
                 int size = mdata.get(i).getDatas().size();
@@ -1100,8 +1143,8 @@ public class DataFormDetailActivity extends BaseActivity implements View.OnClick
                         //缓存问题
                         // model= (ViewModel) convertView.getTag();
                     }
-
                     final Data data = (Data) getItem(position);
+                    
                     HashMap<String, Object> results = isLastItem(position);
                     final Integer categoryIndex = (Integer) results.get("categoryIndex");
                     model.text.setText(data.getName());
@@ -1182,9 +1225,16 @@ public class DataFormDetailActivity extends BaseActivity implements View.OnClick
                             if (data.getType().equals("SF")
                                     || data.getType().equals("DF")) {
                                 LogUtil.d(TAG, "GroupId:" + data.getGroupId());
+                                String gridCaller = "";
+                                if (data.isForm()) {
+                                    gridCaller = "";
+                                } else {
+                                    gridCaller = data.getGridCaller();
+                                }
                                 startActivityForResult(new Intent(ct, SelectNetAcitivty.class)
                                                 .putExtra("fieldKey", data.getField())
                                                 .putExtra("caller", caller)
+                                                .putExtra("gCaller", gridCaller)
                                                 .putExtra("isDevice", false)
                                                 .putExtra("device", data.getName().equals("设备编号"))
                                                 .putExtra("isForm", true)

+ 17 - 16
app_modular/appworks/src/main/java/com/uas/appworks/OA/erp/adapter/StickyGridAdapter.java

@@ -10,8 +10,8 @@ import android.widget.TextView;
 
 import com.common.data.StringUtil;
 import com.core.app.R;
-import com.tonicartos.widget.stickygridheaders.StickyGridHeadersSimpleAdapter;
 import com.core.widget.view.selectcalendar.bean.Data;
+import com.tonicartos.widget.stickygridheaders.StickyGridHeadersSimpleAdapter;
 
 import java.util.List;
 
@@ -26,32 +26,33 @@ public class StickyGridAdapter extends BaseAdapter implements
     private LayoutInflater mInflater;
     private GridView mGridView;
 
-    public StickyGridAdapter(Context context, List<Data> hasHeaderIdList, GridView mGridView  ) {
+    public StickyGridAdapter(Context context, List<Data> hasHeaderIdList, GridView mGridView) {
         mInflater = LayoutInflater.from(context);
         this.mGridView = mGridView;
         this.hasHeaderIdList = hasHeaderIdList;
     }
-    
+
     @Override
     public long getHeaderId(int i) {
         return hasHeaderIdList.get(i).getGroupId();
     }
-    
+
     @Override
     public View getView(int position, View convertView, ViewGroup parent) {
         ViewHolder mViewHolder;
         if (convertView == null) {
             mViewHolder = new ViewHolder();
             convertView = mInflater.inflate(R.layout.grid_item_simpletext, parent, false);
-            mViewHolder.mfield= (TextView) convertView.findViewById(R.id.tv_field);
+            mViewHolder.mfield = (TextView) convertView.findViewById(R.id.tv_field);
             convertView.setTag(mViewHolder);
-            
+
         } else {
             mViewHolder = (ViewHolder) convertView.getTag();
         }
-        if (hasHeaderIdList.get(position).isSelected()){
+
+        if (hasHeaderIdList.get(position).isSelected()) {
             mViewHolder.mfield.setSelected(true);
-        }else{
+        } else {
             mViewHolder.mfield.setSelected(false);
         }
         mViewHolder.mfield.setText(hasHeaderIdList.get(position).getName());
@@ -65,21 +66,21 @@ public class StickyGridAdapter extends BaseAdapter implements
         if (convertView == null) {
             mHeaderHolder = new HeaderViewHolder();
             convertView = mInflater.inflate(R.layout.grid_item_header, parent, false);
-            mHeaderHolder.mTextView= (TextView) convertView.findViewById(R.id.tv_name);
-            mHeaderHolder.mDesc=(TextView)convertView.findViewById(R.id.tv_desc);
+            mHeaderHolder.mTextView = (TextView) convertView.findViewById(R.id.tv_name);
+            mHeaderHolder.mDesc = (TextView) convertView.findViewById(R.id.tv_desc);
             convertView.setTag(mHeaderHolder);
-            
+
         } else {
             mHeaderHolder = (HeaderViewHolder) convertView.getTag();
         }
-        if (StringUtil.isEmpty(hasHeaderIdList.get(i).getGroup())){
+        if (StringUtil.isEmpty(hasHeaderIdList.get(i).getGroup())) {
             mHeaderHolder.mTextView.setText("基本资料");
             mHeaderHolder.mDesc.setVisibility(View.GONE);
-        }else{
+        } else {
             mHeaderHolder.mTextView.setText(hasHeaderIdList.get(i).getGroup());
             mHeaderHolder.mDesc.setVisibility(View.GONE);
         }
-        
+
         return convertView;
     }
 
@@ -100,10 +101,10 @@ public class StickyGridAdapter extends BaseAdapter implements
     }
 
 
-   
-
     public static class ViewHolder {
         public TextView mfield;
+
+
     }
 
     public static class HeaderViewHolder {

+ 66 - 52
app_modular/appworks/src/main/res/layout/activity_public_inquiry_quote.xml

@@ -1,60 +1,67 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
+<android.support.v4.widget.NestedScrollView
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/white"
-    android:focusable="true"
-    android:focusableInTouchMode="true"
-    android:orientation="vertical">
+    android:background="@color/white">
 
-    <android.support.v7.widget.RecyclerView
-        android:id="@+id/public_inquiry_quote_data_rv"
+    <LinearLayout
+        xmlns:android="http://schemas.android.com/apk/res/android"
+        xmlns:tools="http://schemas.android.com/tools"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:cacheColorHint="#00000000"
-        android:overScrollMode="never"
-        android:scrollbars="none" />
+        android:background="@color/white"
+        android:focusable="true"
+        android:focusableInTouchMode="true"
+        android:orientation="vertical">
 
-    <RadioGroup
-        android:id="@+id/public_inquiry_quote_tab_rg"
-        android:layout_width="match_parent"
-        android:layout_height="42dp"
-        android:orientation="horizontal">
-
-        <RadioButton
-            android:id="@+id/public_inquiry_quote_current_rb"
-            android:layout_width="0dp"
-            android:layout_height="match_parent"
-            android:layout_weight="1"
-            android:background="@drawable/selector_public_inquiry_quote_bg"
-            android:button="@null"
-            android:checked="true"
-            android:gravity="center"
-            android:text="@string/quote_current_model"
-            android:textColor="@color/color_public_inquiry_quote"
-            android:textSize="14sp"
-            />
-
-        <RadioButton
-            android:id="@+id/public_inquiry_quote_replace_rb"
-            android:layout_width="0dp"
-            android:layout_height="match_parent"
-            android:layout_weight="1"
-            android:background="@drawable/selector_public_inquiry_quote_bg"
-            android:button="@null"
-            android:gravity="center"
-            android:text="@string/quote_replace_model"
-            android:textColor="@color/color_public_inquiry_quote"
-            android:textSize="14sp"
-            />
-    </RadioGroup>
-
-    <android.support.v4.widget.NestedScrollView
-        android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        android:background="#f2f3f7">
+        <android.support.v7.widget.RecyclerView
+            android:id="@+id/public_inquiry_quote_data_rv"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:cacheColorHint="#00000000"
+            android:overScrollMode="never"
+            android:scrollbars="none" />
+
+        <RadioGroup
+            android:id="@+id/public_inquiry_quote_tab_rg"
+            android:layout_width="match_parent"
+            android:layout_height="42dp"
+            android:orientation="horizontal">
+
+            <RadioButton
+                android:id="@+id/public_inquiry_quote_current_rb"
+                android:layout_width="0dp"
+                android:layout_height="match_parent"
+                android:layout_weight="1"
+                android:background="@drawable/selector_public_inquiry_quote_bg"
+                android:button="@null"
+                android:checked="true"
+                android:gravity="center"
+                android:text="@string/quote_current_model"
+                android:textColor="@color/color_public_inquiry_quote"
+                android:textSize="14sp"
+                />
+
+            <RadioButton
+                android:id="@+id/public_inquiry_quote_replace_rb"
+                android:layout_width="0dp"
+                android:layout_height="match_parent"
+                android:layout_weight="1"
+                android:background="@drawable/selector_public_inquiry_quote_bg"
+                android:button="@null"
+                android:gravity="center"
+                android:text="@string/quote_replace_model"
+                android:textColor="@color/color_public_inquiry_quote"
+                android:textSize="14sp"
+                />
+        </RadioGroup>
+
+        <!--<android.support.v4.widget.NestedScrollView-->
+        <!--android:layout_width="match_parent"-->
+        <!--android:layout_height="match_parent"-->
+        <!--android:background="#f2f3f7">-->
 
         <FrameLayout
             android:layout_width="match_parent"
@@ -164,7 +171,10 @@
                     android:id="@+id/public_inquiry_quote_current_quote_btn"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
-                    android:layout_margin="16dp"
+                    android:layout_marginBottom="42dp"
+                    android:layout_marginLeft="16dp"
+                    android:layout_marginRight="16dp"
+                    android:layout_marginTop="16dp"
                     android:background="@drawable/bg_bule_btn"
                     android:padding="8dp"
                     android:text="@string/str_quote_price"
@@ -277,7 +287,10 @@
                     android:id="@+id/public_inquiry_quote_replace_quote_btn"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
-                    android:layout_margin="16dp"
+                    android:layout_marginBottom="42dp"
+                    android:layout_marginLeft="16dp"
+                    android:layout_marginRight="16dp"
+                    android:layout_marginTop="16dp"
                     android:background="@drawable/bg_bule_btn"
                     android:padding="8dp"
                     android:text="@string/str_quote_price"
@@ -286,5 +299,6 @@
                     android:visibility="gone" />
             </LinearLayout>
         </FrameLayout>
-    </android.support.v4.widget.NestedScrollView>
-</LinearLayout>
+        <!--</android.support.v4.widget.NestedScrollView>-->
+    </LinearLayout>
+</android.support.v4.widget.NestedScrollView>