Browse Source

2024-09-29 修改

修改:
1. 部分UI逻辑修改
zhaiy 5 months ago
parent
commit
7266b70d91
44 changed files with 211 additions and 133 deletions
  1. 3 2
      .idea/misc.xml
  2. 3 1
      app/src/main/res/layout/activity_add_airplane_ticket.xml
  3. 3 2
      app/src/main/res/layout/activity_add_daily_payment.xml
  4. 3 1
      app/src/main/res/layout/activity_add_guide_resource.xml
  5. 3 1
      app/src/main/res/layout/activity_add_insurance_payment.xml
  6. 3 1
      app/src/main/res/layout/activity_add_invite_payment.xml
  7. 3 1
      app/src/main/res/layout/activity_add_new_customer.xml
  8. 3 1
      app/src/main/res/layout/activity_add_official_visits.xml
  9. 3 1
      app/src/main/res/layout/activity_add_visa_payment.xml
  10. 71 67
      app/src/main/res/layout/fragment_customer_filter.xml
  11. 3 1
      app/src/main/res/layout/fragment_group_info_base.xml
  12. 3 1
      app/src/main/res/layout/fragment_group_info_require.xml
  13. 5 2
      app/src/main/res/layout/fragment_group_invite_payment_list.xml
  14. 3 1
      app/src/main/res/layout/fragment_hotel_predetermine_base.xml
  15. 2 1
      app/src/main/res/layout/fragment_hotel_predetermine_payment.xml
  16. 3 1
      app/src/main/res/layout/fragment_sales_revenue_total.xml
  17. 3 3
      app/src/main/res/layout/fragment_workspace.xml
  18. 2 1
      app/src/main/res/layout/header_ground_convey_payment_detail.xml
  19. 2 1
      app/src/main/res/layout/item_airplane_three_code_list.xml
  20. 6 3
      app/src/main/res/layout/item_commission_confirm_list.xml
  21. 4 2
      app/src/main/res/layout/item_ground_convey_info.xml
  22. 2 1
      app/src/main/res/layout/item_ground_convey_table.xml
  23. 4 2
      app/src/main/res/layout/item_group_airplane_ticket.xml
  24. 4 2
      app/src/main/res/layout/item_group_customer_list.xml
  25. 4 2
      app/src/main/res/layout/item_group_info_list.xml
  26. 4 2
      app/src/main/res/layout/item_group_invite_payment.xml
  27. 4 2
      app/src/main/res/layout/item_guide_and_car_list.xml
  28. 4 2
      app/src/main/res/layout/item_hotel_list.xml
  29. 4 2
      app/src/main/res/layout/item_hotel_predetermine_list.xml
  30. 4 2
      app/src/main/res/layout/item_insurance_list.xml
  31. 4 2
      app/src/main/res/layout/item_invite_data.xml
  32. 4 2
      app/src/main/res/layout/item_material_history.xml
  33. 4 2
      app/src/main/res/layout/item_message_list.xml
  34. 4 2
      app/src/main/res/layout/item_official_visits_list.xml
  35. 2 1
      app/src/main/res/layout/item_related_invitee_group_list.xml
  36. 2 1
      app/src/main/res/layout/item_simple_group_info.xml
  37. 4 2
      app/src/main/res/layout/item_visa_payment.xml
  38. 4 2
      app/src/main/res/layout/item_visit_history_list.xml
  39. 2 1
      app/src/main/res/layout/layout_scroll_edit_text.xml
  40. 4 2
      app/src/main/res/layout/layout_title.xml
  41. 2 1
      app/src/main/res/layout/popup_add_daily_payment.xml
  42. 2 1
      app/src/main/res/layout/popup_message_detail.xml
  43. 3 2
      app/src/main/res/xml/network_security_config.xml
  44. 2 0
      settings.gradle

+ 3 - 2
.idea/misc.xml

@@ -1,8 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="EntryPointsManager">
-    <list size="1">
-      <item index="0" class="java.lang.String" itemvalue="org.greenrobot.eventbus.Subscribe" />
+    <list size="2">
+      <item index="0" class="java.lang.String" itemvalue="com.bin.david.form.annotation.SmartColumn" />
+      <item index="1" class="java.lang.String" itemvalue="org.greenrobot.eventbus.Subscribe" />
     </list>
   </component>
   <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">

+ 3 - 1
app/src/main/res/layout/activity_add_airplane_ticket.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <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="match_parent"
     android:background="@color/white"
@@ -690,7 +691,8 @@
                 android:layout_marginTop="@dimen/common_padding"
                 android:layout_marginBottom="@dimen/common_padding"
                 android:baselineAligned="false"
-                android:orientation="horizontal">
+                android:orientation="horizontal"
+                tools:ignore="TooManyViews">
 
                 <TextView
                     android:layout_width="wrap_content"

+ 3 - 2
app/src/main/res/layout/activity_add_daily_payment.xml

@@ -251,7 +251,8 @@
             android:layout_marginStart="25dp"
             android:layout_marginTop="@dimen/common_padding"
             android:layout_marginEnd="25dp"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:layout_width="0dp"
@@ -333,7 +334,7 @@
                 <com.pan_american.android.util.CommitButton
                     android:id="@+id/commit"
                     android:layout_width="match_parent"
-                    android:layout_height="match_parent"/>
+                    android:layout_height="match_parent" />
 
             </LinearLayout>
 

+ 3 - 1
app/src/main/res/layout/activity_add_guide_resource.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <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="match_parent"
     android:background="@color/white"
@@ -678,7 +679,8 @@
                         android:background="@drawable/style_radio_button"
                         android:buttonTint="@color/title_background_color"
                         android:text="@string/score_B"
-                        android:textColor="@color/text_color"/>
+                        android:textColor="@color/text_color"
+                        tools:ignore="TooManyViews" />
 
                     <RadioButton
                         android:id="@+id/cooperation_c"

+ 3 - 1
app/src/main/res/layout/activity_add_insurance_payment.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <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="match_parent"
     android:background="@color/white"
@@ -673,7 +674,8 @@
                         android:inputType="phone"
                         android:singleLine="true"
                         android:textColorHint="@color/hint_text_color"
-                        android:textSize="@dimen/text_size_medium" />
+                        android:textSize="@dimen/text_size_medium"
+                        tools:ignore="TooManyViews" />
                 </LinearLayout>
 
                 <View

+ 3 - 1
app/src/main/res/layout/activity_add_invite_payment.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <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="match_parent"
     android:background="@color/white"
@@ -693,7 +694,8 @@
                         android:layout_height="wrap_content"
                         android:layout_gravity="center"
                         android:text="@string/unit"
-                        android:textSize="@dimen/text_size_medium" />
+                        android:textSize="@dimen/text_size_medium"
+                        tools:ignore="TooManyViews" />
 
                     <TextView
                         android:id="@+id/official_activity_unit"

+ 3 - 1
app/src/main/res/layout/activity_add_new_customer.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <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="match_parent"
     android:background="@color/white"
@@ -719,7 +720,8 @@
                     android:layout_height="wrap_content"
                     android:layout_gravity="center"
                     android:text="@string/finished_visit_group_number"
-                    android:textSize="@dimen/text_size_medium" />
+                    android:textSize="@dimen/text_size_medium"
+                    tools:ignore="TooManyViews" />
 
                 <EditText
                     android:id="@+id/customer_finished"

+ 3 - 1
app/src/main/res/layout/activity_add_official_visits.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
     android:id="@+id/main"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
@@ -689,7 +690,8 @@
                     android:layout_height="wrap_content"
                     android:layout_gravity="center"
                     android:text="@string/translator"
-                    android:textSize="@dimen/text_size_medium" />
+                    android:textSize="@dimen/text_size_medium"
+                    tools:ignore="TooManyViews" />
 
                 <EditText
                     android:id="@+id/translator"

+ 3 - 1
app/src/main/res/layout/activity_add_visa_payment.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <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="match_parent"
     android:background="@color/white"
@@ -677,7 +678,8 @@
                         android:layout_height="wrap_content"
                         android:layout_gravity="center"
                         android:text="@string/unit"
-                        android:textSize="@dimen/text_size_medium" />
+                        android:textSize="@dimen/text_size_medium"
+                        tools:ignore="TooManyViews" />
 
                     <TextView
                         android:id="@+id/sum_unit"

+ 71 - 67
app/src/main/res/layout/fragment_customer_filter.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:background="@color/white"
@@ -7,79 +8,73 @@
     android:orientation="vertical">
 
     <LinearLayout
+        android:id="@+id/switches"
         android:layout_width="match_parent"
         android:layout_height="0dp"
-        android:layout_weight="1"
         android:baselineAligned="false"
-        android:orientation="horizontal">
+        android:orientation="horizontal"
+        app:layout_constraintBottom_toTopOf="@id/line"
+        app:layout_constraintTop_toTopOf="parent">
 
-        <LinearLayout
-            android:id="@+id/sift_menu_page"
+        <RadioGroup
+            android:id="@+id/sift_menu"
             android:layout_width="0dp"
             android:layout_height="match_parent"
             android:layout_weight="1"
             android:background="@color/background_color"
-            android:gravity="center_horizontal"
+            android:gravity="top"
             android:orientation="vertical">
 
-            <RadioGroup
-                android:id="@+id/sift_menu"
+            <RadioButton
+                android:id="@+id/business_sift"
                 android:layout_width="match_parent"
-                android:layout_height="wrap_content"
+                android:layout_height="50dp"
+                android:background="@drawable/style_radio_button"
+                android:button="@null"
+                android:checked="true"
                 android:gravity="center"
-                android:orientation="vertical">
-
-                <RadioButton
-                    android:id="@+id/business_sift"
-                    android:layout_width="match_parent"
-                    android:layout_height="50dp"
-                    android:background="@drawable/style_radio_button"
-                    android:button="@null"
-                    android:checked="true"
-                    android:gravity="center"
-                    android:text="@string/business_sift" />
-
-                <RadioButton
-                    android:id="@+id/customer_level"
-                    android:layout_width="match_parent"
-                    android:layout_height="50dp"
-                    android:layout_marginTop="@dimen/common_padding"
-                    android:background="@drawable/style_radio_button"
-                    android:button="@null"
-                    android:gravity="center"
-                    android:text="@string/customer_level" />
-
-                <RadioButton
-                    android:id="@+id/customer_classification"
-                    android:layout_width="match_parent"
-                    android:layout_height="50dp"
-                    android:layout_marginTop="@dimen/common_padding"
-                    android:background="@drawable/style_radio_button"
-                    android:button="@null"
-                    android:gravity="center"
-                    android:text="@string/customer_classification" />
-
-                <RadioButton
-                    android:id="@+id/director"
-                    android:layout_width="match_parent"
-                    android:layout_height="50dp"
-                    android:layout_marginTop="@dimen/common_padding"
-                    android:background="@drawable/style_radio_button"
-                    android:button="@null"
-                    android:gravity="center"
-                    android:text="@string/director" />
-
-                <RadioButton
-                    android:id="@+id/province"
-                    android:layout_width="match_parent"
-                    android:layout_height="50dp"
-                    android:layout_marginTop="@dimen/common_padding"
-                    android:background="@drawable/style_radio_button"
-                    android:button="@null"
-                    android:gravity="center"
-                    android:text="@string/province" />
-            </RadioGroup>
-        </LinearLayout>
+                android:text="@string/business_sift" />
+
+            <RadioButton
+                android:id="@+id/customer_level"
+                android:layout_width="match_parent"
+                android:layout_height="50dp"
+                android:layout_marginTop="@dimen/common_padding"
+                android:background="@drawable/style_radio_button"
+                android:button="@null"
+                android:gravity="center"
+                android:text="@string/customer_level" />
+
+            <RadioButton
+                android:id="@+id/customer_classification"
+                android:layout_width="match_parent"
+                android:layout_height="50dp"
+                android:layout_marginTop="@dimen/common_padding"
+                android:background="@drawable/style_radio_button"
+                android:button="@null"
+                android:gravity="center"
+                android:text="@string/customer_classification" />
+
+            <RadioButton
+                android:id="@+id/director"
+                android:layout_width="match_parent"
+                android:layout_height="50dp"
+                android:layout_marginTop="@dimen/common_padding"
+                android:background="@drawable/style_radio_button"
+                android:button="@null"
+                android:gravity="center"
+                android:text="@string/director" />
+
+            <RadioButton
+                android:id="@+id/province"
+                android:layout_width="match_parent"
+                android:layout_height="50dp"
+                android:layout_marginTop="@dimen/common_padding"
+                android:background="@drawable/style_radio_button"
+                android:button="@null"
+                android:gravity="center"
+                android:text="@string/province" />
+        </RadioGroup>
 
         <LinearLayout
             android:id="@+id/business_sift_page"
@@ -262,15 +257,21 @@
     </LinearLayout>
 
     <View
+        android:id="@+id/line"
         android:layout_width="match_parent"
         android:layout_height="@dimen/line"
-        android:layout_marginBottom="@dimen/common_padding"
-        android:background="@color/line_color" />
+        android:background="@color/line_color"
+        app:layout_constraintBottom_toTopOf="@id/buttons"
+        app:layout_constraintTop_toBottomOf="@id/switches"
+        android:layout_marginBottom="@dimen/common_padding"/>
 
     <LinearLayout
+        android:id="@+id/buttons"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:orientation="horizontal">
+        android:orientation="horizontal"
+        app:layout_constraintBottom_toTopOf="@id/count"
+        app:layout_constraintTop_toBottomOf="@id/line">
 
         <TextView
             android:id="@+id/reset"
@@ -302,11 +303,14 @@
     </LinearLayout>
 
     <LinearLayout
+        android:id="@+id/count"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
         android:baselineAligned="false"
-        android:orientation="horizontal">
+        android:orientation="horizontal"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintTop_toBottomOf="@id/buttons">
 
         <LinearLayout
             android:layout_width="0dp"
@@ -352,4 +356,4 @@
                 android:textSize="@dimen/text_size_small" />
         </LinearLayout>
     </LinearLayout>
-</LinearLayout>
+</androidx.constraintlayout.widget.ConstraintLayout>

+ 3 - 1
app/src/main/res/layout/fragment_group_info_base.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <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="match_parent"
     android:background="@color/white"
@@ -690,7 +691,8 @@
                     android:text="@string/reset"
                     android:textColor="@color/white"
                     android:textSize="@dimen/text_size_large"
-                    android:textStyle="bold" />
+                    android:textStyle="bold"
+                    tools:ignore="TooManyViews" />
 
                 <TextView
                     android:id="@+id/next_page"

+ 3 - 1
app/src/main/res/layout/fragment_group_info_require.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <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="match_parent"
     android:background="@color/white"
@@ -9,7 +10,8 @@
         android:layout_width="match_parent"
         android:layout_height="0dp"
         android:layout_weight="1"
-        android:scrollbars="none">
+        android:scrollbars="none"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"

+ 5 - 2
app/src/main/res/layout/fragment_group_invite_payment_list.xml

@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout 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:background="@color/background_color"
@@ -238,13 +239,15 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginStart="@dimen/common_padding"
-            android:layout_marginEnd="@dimen/common_padding">
+            android:layout_marginEnd="@dimen/common_padding"
+            tools:ignore="UselessParent">
 
             <LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginTop="@dimen/common_padding"
-                android:orientation="vertical">
+                android:orientation="vertical"
+                tools:ignore="UselessParent">
 
                 <LinearLayout
                     android:layout_width="match_parent"

+ 3 - 1
app/src/main/res/layout/fragment_hotel_predetermine_base.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <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="match_parent"
     android:background="@color/white"
@@ -9,7 +10,8 @@
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:layout_margin="@dimen/common_padding"
-        android:scrollbars="none">
+        android:scrollbars="none"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"

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

@@ -660,7 +660,8 @@
                 <com.pan_american.android.util.CommitButton
                     android:id="@+id/commit"
                     android:layout_width="match_parent"
-                    android:layout_height="match_parent" />
+                    android:layout_height="match_parent"
+                    tools:ignore="TooManyViews" />
 
             </LinearLayout>
         </LinearLayout>

+ 3 - 1
app/src/main/res/layout/fragment_sales_revenue_total.xml

@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout 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">
 
@@ -8,7 +9,8 @@
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:layout_margin="@dimen/common_padding"
-        android:scrollbars="none">
+        android:scrollbars="none"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"

+ 3 - 3
app/src/main/res/layout/fragment_workspace.xml

@@ -685,7 +685,8 @@
                             android:text="@string/invite_official_payment"
                             android:textColor="@color/text_color"
                             android:textSize="@dimen/text_size_medium"
-                            app:drawableStartCompat="@mipmap/icon_invite_official_payment" />
+                            app:drawableStartCompat="@mipmap/icon_invite_official_payment"
+                            tools:ignore="TooManyViews" />
 
                         <View
                             android:layout_width="match_parent"
@@ -745,8 +746,7 @@
                     android:layout_gravity="center"
                     android:layout_marginStart="25dp"
                     android:layout_marginEnd="25dp"
-                    android:orientation="vertical"
-                    tools:ignore="TooManyViews">
+                    android:orientation="vertical" >
 
                     <TextView
                         android:layout_width="match_parent"

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

@@ -159,7 +159,8 @@
             android:layout_height="wrap_content"
             android:layout_marginStart="@dimen/common_padding"
             android:gravity="end"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <ImageView
                 android:layout_width="@dimen/common_padding_heavy"

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

@@ -13,7 +13,8 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <RelativeLayout
             android:layout_width="match_parent"

+ 6 - 3
app/src/main/res/layout/item_commission_confirm_list.xml

@@ -13,7 +13,8 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <TextView
             android:id="@+id/group_name"
@@ -180,7 +181,8 @@
             <LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:gravity="end">
+                android:gravity="end"
+                tools:ignore="UseCompoundDrawables">
 
                 <TextView
                     android:id="@+id/confirm_status"
@@ -227,7 +229,8 @@
             <LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:gravity="end">
+                android:gravity="end"
+                tools:ignore="UseCompoundDrawables">
 
                 <TextView
                     android:id="@+id/deliver_status"

+ 4 - 2
app/src/main/res/layout/item_ground_convey_info.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/group_convey_area"

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

@@ -12,7 +12,8 @@
         android:layout_margin="@dimen/common_padding"
         android:background="@drawable/shape_corner_white"
         android:orientation="vertical"
-        android:visibility="gone">
+        android:visibility="gone"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"

+ 4 - 2
app/src/main/res/layout/item_group_airplane_ticket.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/flight_code"

+ 4 - 2
app/src/main/res/layout/item_group_customer_list.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/customer_name"

+ 4 - 2
app/src/main/res/layout/item_group_info_list.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/group_name"

+ 4 - 2
app/src/main/res/layout/item_group_invite_payment.xml

@@ -13,14 +13,16 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
             android:layout_marginBottom="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/invitee_name"

+ 4 - 2
app/src/main/res/layout/item_guide_and_car_list.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/supplier_name"

+ 4 - 2
app/src/main/res/layout/item_hotel_list.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/hotel_name"

+ 4 - 2
app/src/main/res/layout/item_hotel_predetermine_list.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/hotel_name"

+ 4 - 2
app/src/main/res/layout/item_insurance_list.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/customer_name"

+ 4 - 2
app/src/main/res/layout/item_invite_data.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/unit_name"

+ 4 - 2
app/src/main/res/layout/item_material_history.xml

@@ -13,7 +13,8 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <TextView
             android:id="@+id/material_name"
@@ -143,7 +144,8 @@
             <LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:gravity="end">
+                android:gravity="end"
+                tools:ignore="UseCompoundDrawables">
 
                 <TextView
                     android:id="@+id/verify_status"

+ 4 - 2
app/src/main/res/layout/item_message_list.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/title"

+ 4 - 2
app/src/main/res/layout/item_official_visits_list.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/official_department"

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

@@ -13,7 +13,8 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <TextView
             android:id="@+id/group_name"

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

@@ -13,7 +13,8 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <TextView
             android:id="@+id/group_name"

+ 4 - 2
app/src/main/res/layout/item_visa_payment.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/visa_client"

+ 4 - 2
app/src/main/res/layout/item_visit_history_list.xml

@@ -13,13 +13,15 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/common_padding"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            tools:ignore="UseCompoundDrawables">
 
             <TextView
                 android:id="@+id/client_name"

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

@@ -10,7 +10,8 @@
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:layout_margin="@dimen/common_padding_small"
-        android:scrollbars="none">
+        android:scrollbars="none"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"

+ 4 - 2
app/src/main/res/layout/layout_title.xml

@@ -16,7 +16,8 @@
         <RelativeLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:layout_marginTop="@dimen/title_margin_top">
+            android:layout_marginTop="@dimen/title_margin_top"
+            tools:ignore="UselessParent">
 
             <LinearLayout
                 android:id="@+id/back_button"
@@ -25,7 +26,8 @@
                 android:layout_centerVertical="true"
                 android:layout_marginStart="@dimen/common_padding_large"
                 android:gravity="center"
-                android:orientation="horizontal">
+                android:orientation="horizontal"
+                tools:ignore="UseCompoundDrawables">
 
                 <ImageView
                     android:layout_width="@dimen/common_padding_huge"

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

@@ -15,7 +15,8 @@
         android:layout_marginStart="@dimen/common_padding_heavy"
         android:layout_marginTop="@dimen/common_padding_huge"
         android:layout_marginEnd="@dimen/common_padding_heavy"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <LinearLayout
             android:layout_width="match_parent"

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

@@ -11,7 +11,8 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="@dimen/common_padding_huge"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <TextView
             android:layout_width="match_parent"

+ 3 - 2
app/src/main/res/xml/network_security_config.xml

@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<network-security-config>
-    <base-config cleartextTrafficPermitted="true" />
+<network-security-config xmlns:tools="http://schemas.android.com/tools">
+    <base-config cleartextTrafficPermitted="true"
+        tools:ignore="InsecureBaseConfiguration" />
 </network-security-config>

+ 2 - 0
settings.gradle

@@ -1,6 +1,7 @@
 pluginManagement {
     repositories {
         google()
+        //noinspection JcenterRepositoryObsolete
         jcenter()
         mavenCentral()
         gradlePluginPortal()
@@ -16,6 +17,7 @@ dependencyResolutionManagement {
     repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
     repositories {
         google()
+        //noinspection JcenterRepositoryObsolete
         jcenter()
         mavenCentral()
         maven {url 'https://jitpack.io'}