Browse Source

布局文件提交

developer
zhanghui 8 years ago
parent
commit
eefc26e0dc
23 changed files with 779 additions and 23 deletions
  1. +17
    -1
      .idea/misc.xml
  2. +1
    -2
      .idea/modules.xml
  3. +14
    -13
      app/build.gradle
  4. +60
    -0
      app/src/main/res/layout/act_carsmanage.xml
  5. +36
    -0
      app/src/main/res/layout/act_datanaly_s.xml
  6. +8
    -0
      app/src/main/res/layout/act_datanalysis.xml
  7. +22
    -2
      app/src/main/res/layout/act_scanresult.xml
  8. +19
    -0
      app/src/main/res/layout/act_warning.xml
  9. +110
    -0
      app/src/main/res/layout/activity_mine_info.xml
  10. +56
    -0
      app/src/main/res/layout/activity_setting.xml
  11. +25
    -0
      app/src/main/res/layout/calendar_dialog_basic.xml
  12. +11
    -0
      app/src/main/res/layout/content_mine_info.xml
  13. +14
    -0
      app/src/main/res/layout/fragment_chicks.xml
  14. +10
    -0
      app/src/main/res/layout/fragment_feed.xml
  15. +14
    -0
      app/src/main/res/layout/fragment_grosschicken.xml
  16. +8
    -5
      app/src/main/res/layout/fragment_work.xml
  17. +17
    -0
      app/src/main/res/layout/include_tool_bar_white.xml
  18. +18
    -0
      app/src/main/res/layout/item_factry.xml
  19. +254
    -0
      app/src/main/res/layout/item_infos.xml
  20. +43
    -0
      app/src/main/res/layout/item_warning.xml
  21. +1
    -0
      app/src/main/res/values/colors.xml
  22. +14
    -0
      app/src/main/res/values/strings.xml
  23. +7
    -0
      app/src/main/res/values/styles.xml

+ 17
- 1
.idea/misc.xml View File

@ -37,10 +37,26 @@
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8 (1)" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
<component name="masterDetails">
<states>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>

+ 1
- 2
.idea/modules.xml View File

@ -2,10 +2,9 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Ytzh.iml" filepath="$PROJECT_DIR$/Ytzh.iml" />
<module fileurl="file://$PROJECT_DIR$/Ytzh_Android.iml" filepath="$PROJECT_DIR$/Ytzh_Android.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
<module fileurl="file://$PROJECT_DIR$/jsonrpc/jsonrpc.iml" filepath="$PROJECT_DIR$/jsonrpc/jsonrpc.iml" />
<module fileurl="file://$PROJECT_DIR$/ytzh_Android.iml" filepath="$PROJECT_DIR$/ytzh_Android.iml" />
</modules>
</component>
</project>

+ 14
- 13
app/build.gradle View File

@ -27,33 +27,34 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
testCompile 'junit:junit:4.12'
///<
compile 'com.jakewharton:butterknife:8.4.0'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
///<
///< 广
///<
///<
///<
///<
///<
compile project(':jsonrpc')
///<
///<
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.jakewharton:butterknife:8.4.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:support-v4:26.0.0-alpha1'
compile 'com.android.support:design:26.0.0-alpha1'
///< 广
compile 'org.greenrobot:eventbus:3.0.0'
///<
compile 'com.umeng.analytics:analytics:latest.integration'
///<
compile 'pub.devrel:easypermissions:0.2.1'
compile 'com.google.code.gson:gson:2.8.1'
///<
compile 'org.litepal.android:core:1.3.0'
///<
compile 'com.journeyapps:zxing-android-embedded:3.5.0'
compile 'com.google.zxing:core:3.3.0'
///<
compile 'com.youth.banner:banner:1.4.10'
compile project(':jsonrpc')
compile 'com.android.support:cardview-v7:26.0.0-alpha1'
///<
compile 'com.github.lecho:hellocharts-library:1.5.8@aar'
///<
compile 'com.prolificinteractive:material-calendarview:1.4.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
}

+ 60
- 0
app/src/main/res/layout/act_carsmanage.xml View File

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/include_tool_bar_white"></include>
<include layout="@layout/include_line"></include>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/chicks"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:padding="@dimen/dp_12"
android:text="@string/Chicks"
android:textColor="@color/grey666666"
android:textSize="@dimen/text_size_18"
android:textStyle="bold" />
<TextView
android:id="@+id/GrossChicken"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:padding="@dimen/dp_12"
android:text="@string/GrossChicken"
android:textColor="@color/grey666666"
android:textSize="@dimen/text_size_18"
android:textStyle="bold" />
<TextView
android:id="@+id/feed"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:padding="@dimen/dp_12"
android:text="@string/feed"
android:textColor="@color/grey666666"
android:textSize="@dimen/text_size_18"
android:textStyle="bold" />
</LinearLayout>
<RelativeLayout
android:id="@+id/main_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>

+ 36
- 0
app/src/main/res/layout/act_datanaly_s.xml View File

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/greyf4f4f4"
android:orientation="vertical">
<include layout="@layout/include_tool_bar"></include>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.qhclh.ytzh.ui.MyGridView
android:id="@+id/gv_dataanaly"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:columnWidth="100dp"
android:gravity="center_horizontal"
android:horizontalSpacing="10dp"
android:numColumns="auto_fit"
android:padding="@dimen/dp_10"
android:scrollbars="none"
android:stretchMode="columnWidth"
android:verticalSpacing="15dp"></com.qhclh.ytzh.ui.MyGridView>
</LinearLayout>
</ScrollView>
</LinearLayout>

+ 8
- 0
app/src/main/res/layout/act_datanalysis.xml View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/include_tool_bar"></include>
</LinearLayout>

+ 22
- 2
app/src/main/res/layout/act_scanresult.xml View File

@ -1,8 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@color/greyf4f4f4"
android:orientation="vertical">
<include layout="@layout/include_tool_bar"></include>
<TextView
android:id="@+id/type"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:text="@string/app_name"
android:padding="@dimen/dp_10"
android:textSize="@dimen/text_size_16" />
<ListView
android:id="@+id/lv_infos"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none">
</ListView>
</LinearLayout>

+ 19
- 0
app/src/main/res/layout/act_warning.xml View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/greyf4f4f4"
android:orientation="vertical">
<include layout="@layout/include_tool_bar"></include>
<ListView
android:id="@+id/lv_warning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:scrollbars="none">
</ListView>
</LinearLayout>

+ 110
- 0
app/src/main/res/layout/activity_mine_info.xml View File

@ -0,0 +1,110 @@
<?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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/greyf4f4f4"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardElevation="@dimen/cardview_compat_inset_shadow">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="12dp">
<TextView
android:id="@+id/textView"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:gravity="center_vertical"
android:text="设置头像"
android:textSize="@dimen/text_size_18" />
<com.qhclh.ytzh.utils.widget.XCRoundImageView
android:id="@+id/imageView"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginRight="20dp"
android:src="@mipmap/ic_launcher" />
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@drawable/more_icon"/>
</LinearLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
app:cardElevation="@dimen/cardview_compat_inset_shadow">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/tv_phoneNumber"
android:layout_width="match_parent"
android:layout_height="47dp"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:text="我的手机"
android:drawableRight="@drawable/more_icon"
android:textSize="@dimen/text_size_18" />
<View
android:layout_width="match_parent"
android:layout_height="2px"
android:background="#dbdbdb" />
<TextView
android:id="@+id/tv_sex"
android:layout_width="match_parent"
android:layout_height="47dp"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:drawableRight="@drawable/more_icon"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:text="性别"
android:textSize="@dimen/text_size_18" />
<View
android:layout_width="match_parent"
android:layout_height="2px"
android:background="#dbdbdb" />
<TextView
android:id="@+id/tv_birthday"
android:layout_width="match_parent"
android:layout_height="47dp"
android:drawablePadding="10dp"
android:drawableRight="@drawable/more_icon"
android:gravity="center_vertical"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:text="生日"
android:textSize="@dimen/text_size_18" />
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>

+ 56
- 0
app/src/main/res/layout/activity_setting.xml View File

@ -0,0 +1,56 @@
<?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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/greyf4f4f4"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
app:cardElevation="@dimen/cardview_compat_inset_shadow">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/tv_phoneNumber"
android:layout_width="match_parent"
android:layout_height="47dp"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:text="修改密码"
android:visibility="gone"
android:drawableRight="@drawable/more_icon"
android:textSize="@dimen/text_size_18" />
<View
android:layout_width="match_parent"
android:layout_height="2px"
android:background="#dbdbdb" />
<TextView
android:id="@+id/tv_sex"
android:layout_width="match_parent"
android:layout_height="47dp"
android:drawablePadding="10dp"
android:drawableRight="@drawable/more_icon"
android:gravity="center_vertical"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:text="退出登录"
android:textSize="@dimen/text_size_18" />
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>

+ 25
- 0
app/src/main/res/layout/calendar_dialog_basic.xml View File

@ -0,0 +1,25 @@
<?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:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent"
>
<com.prolificinteractive.materialcalendarview.MaterialCalendarView
android:id="@+id/calendarView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<!--<TextView-->
<!--android:id="@+id/textView"-->
<!--android:layout_margin="16dp"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_gravity="center"-->
<!--android:textAppearance="?android:attr/textAppearanceLarge"-->
<!--/>-->
</LinearLayout>

+ 11
- 0
app/src/main/res/layout/content_mine_info.xml View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.qhclh.ytzh.me.MineInfoActivity"
tools:showIn="@layout/activity_mine_info">
</android.support.constraint.ConstraintLayout>

+ 14
- 0
app/src/main/res/layout/fragment_chicks.xml View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/greyf4f4f4"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/lv_infos_chicks"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none">
</ListView>
</LinearLayout>

+ 10
- 0
app/src/main/res/layout/fragment_feed.xml View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:text="@string/feed"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>

+ 14
- 0
app/src/main/res/layout/fragment_grosschicken.xml View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/greyf4f4f4"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/lv_infos_grosschicken"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none">
</ListView>
</LinearLayout>

+ 8
- 5
app/src/main/res/layout/fragment_work.xml View File

@ -13,9 +13,9 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dp_10"
android:layout_marginLeft="@dimen/dp_12"
android:layout_marginTop="@dimen/dp_10"
android:layout_marginBottom="@dimen/dp_10"
android:drawableLeft="@drawable/shape_grey"
android:drawablePadding="@dimen/dp_10"
android:text="@string/functions"
@ -26,9 +26,9 @@
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="horizontal"
android:paddingBottom="@dimen/dp_15"
android:paddingLeft="@dimen/dp_10"
android:paddingRight="@dimen/dp_10"
android:paddingBottom="@dimen/dp_15"
android:paddingTop="@dimen/dp_15">
<!-- 种禽-->
<LinearLayout
@ -98,6 +98,7 @@
<LinearLayout
android:id="@+id/work_tablepoultry"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
@ -106,13 +107,15 @@
<ImageView
android:layout_width="50dp"
android:layout_height="50dp" />
android:layout_height="50dp"
android:src="@drawable/rouqin_3x" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_3"
android:textSize="@dimen/text_size_16" />
android:layout_marginTop="@dimen/dp_5"
android:text="@string/work_tablepoultry"
android:textSize="@dimen/text_size_14" />
</LinearLayout>


+ 17
- 0
app/src/main/res/layout/include_tool_bar_white.xml View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- toolbar-->
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar1"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/white"
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
android:elevation="@dimen/dp_2"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light">
<TextView
android:id="@+id/tv_toolbar_title1"
style="@style/TextView_18_black_2828281"
android:layout_gravity="center"/>
</android.support.v7.widget.Toolbar>

+ 18
- 0
app/src/main/res/layout/item_factry.xml View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<CheckBox
android:id="@+id/factry_name"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/btn_check"
android:button="@null"
android:gravity="center_horizontal"
android:padding="@dimen/dp_3"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20" />
</LinearLayout>

+ 254
- 0
app/src/main/res/layout/item_infos.xml View File

@ -0,0 +1,254 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="@string/carname"
android:textSize="@dimen/text_size_18"
android:textColor="@color/grey888888"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/infos_carname"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20"
android:text="@string/addrs"
android:layout_marginLeft="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="@string/driver"
android:textSize="@dimen/text_size_18"
android:textColor="@color/grey888888"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/infos_driver"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20"
android:text="@string/addrs"
android:layout_marginLeft="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="@string/phone"
android:textSize="@dimen/text_size_18"
android:textColor="@color/grey888888"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/infos_phone"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20"
android:text="@string/addrs"
android:layout_marginLeft="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="@string/batch"
android:textSize="@dimen/text_size_18"
android:textColor="@color/grey888888"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/infos_batch"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20"
android:text="@string/addrs"
android:layout_marginLeft="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="@string/addrs"
android:textSize="@dimen/text_size_18"
android:textColor="@color/grey888888"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/infos_addrs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_5"
android:text="@string/addrs"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="@string/time"
android:textSize="@dimen/text_size_18"
android:textColor="@color/grey888888"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/infos_time"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20"
android:text="@string/addrs"
android:layout_marginLeft="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="@string/number"
android:textSize="@dimen/text_size_18"
android:textColor="@color/grey888888"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/infos_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_5"
android:text="@string/addrs"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="@string/immune"
android:textSize="@dimen/text_size_18"
android:textColor="@color/grey888888"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/infos_immune"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20"
android:text="@string/addrs"
android:layout_marginLeft="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="@string/Uniformity"
android:textSize="@dimen/text_size_18"
android:textColor="@color/grey888888"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/infos_uniformity"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20"
android:text="@string/addrs"
android:layout_marginLeft="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="@string/startime"
android:textSize="@dimen/text_size_18"
android:textColor="@color/grey888888"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/infos_startime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_5"
android:text="@string/addrs"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="@string/endtime"
android:textSize="@dimen/text_size_18"
android:textColor="@color/grey888888"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/infos_endtime"
android:textColor="@color/black303030"
android:textSize="@dimen/text_size_20"
android:text="@string/addrs"
android:layout_marginLeft="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>

+ 43
- 0
app/src/main/res/layout/item_warning.xml View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<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/warning_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:padding="@dimen/dp_5"
android:textColor="@color/grey888888"
android:textSize="@dimen/text_size_16" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingBottom="@dimen/dp_12"
android:paddingLeft="@dimen/dp_12">
<ImageView
android:id="@+id/warning_pic"
android:layout_width="@dimen/dp_60"
android:layout_height="@dimen/dp_60"
android:background="@drawable/shape_bg"
android:padding="@dimen/dp_2"
android:scaleType="fitXY" />
<TextView
android:id="@+id/warning_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_5"
android:layout_marginRight="@dimen/dp_30"
android:background="@drawable/qipao"
android:padding="@dimen/dp_10"
android:textColor="@color/black303030" />
</LinearLayout>
</LinearLayout>

+ 1
- 0
app/src/main/res/values/colors.xml View File

@ -29,6 +29,7 @@
<color name="black303030">#303030</color>
<color name="redd92828">#d92828</color>
<color name="transp">#00000000</color>
<color name="green02aa3e">#02aa3e</color>
</resources>

+ 14
- 0
app/src/main/res/values/strings.xml View File

@ -10,6 +10,7 @@
<string name="work_breedingpoultry">种禽</string>
<string name="work_carsmanager">车辆管理</string>
<string name="work_scan">扫一扫</string>
<string name="work_tablepoultry">肉禽</string>
<string name="functions">功能区</string>
<string name="date">日期:</string>
<string name="supplier">供货商:</string>
@ -17,7 +18,20 @@
<string name="driver">司机:</string>
<string name="driver1">司机</string>
<string name="number">数量:</string>
<string name="carname">车牌号:</string>
<string name="phone">联系方式:</string>
<string name="batch">批次:</string>
<string name="addrs">厂址:</string>
<string name="time">时间:</string>
<string name="immune">免疫:</string>
<string name="Uniformity">均匀度:</string>
<string name="startime">起始时间:</string>
<string name="endtime">到达时间:</string>
<string name="permission_camera">请给予应用打开摄像头权限</string>
<string name="permission_phonestate">请给予应用获取手机状态权限</string>
<string name="title_activity_mine_info">MineInfoActivity</string>
<string name="Chicks">鸡苗</string>
<string name="GrossChicken">毛鸡</string>
<string name="feed">饲料</string>
</resources>

+ 7
- 0
app/src/main/res/values/styles.xml View File

@ -31,6 +31,13 @@
<item name="android:textSize">@dimen/text_size_20</item>
</style>
<style name="TextView_18_black_2828281">
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:textColor">@color/black303030</item>
<item name="android:textSize">@dimen/text_size_20</item>
</style>
<style name="TabLayout">
<item name="android:paddingTop">@dimen/tab_layout_padding</item>
<item name="android:paddingBottom">@dimen/dp_3</item>


Loading…
Cancel
Save