123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463 |
- <?xml version="1.0" encoding="utf-8"?>
- <layout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <data>
- <variable
- name="viewModel"
- type="com.sjkj.appthreefloor_tsgz.fragment.MainViewModel" />
- </data>
- <!-- <androidx.core.widget.NestedScrollView-->
- <!-- android:layout_width="match_parent"-->
- <!-- android:layout_height="match_parent"-->
- <!-- android:orientation="vertical"-->
- <!-- android:overScrollMode="never"-->
- <!-- android:scrollbars="none">-->
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#ECEDF4"
- android:orientation="vertical">
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="490dp">
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="320dp">
- <ImageView
- android:id="@+id/iv_banner"
- android:layout_width="match_parent"
- android:layout_height="320dp"
- android:layout_marginBottom="10dp"
- android:adjustViewBounds="true"
- android:background="@drawable/icon_bg"
- android:scaleType="fitXY" />
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom"
- android:background="@drawable/icon_hu" />
- </FrameLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom"
- android:layout_marginLeft="15dp"
- android:layout_marginRight="15dp"
- android:background="@drawable/round_corner_top_letf_right"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:orientation="horizontal"
- android:padding="12dp">
- <LinearLayout
- android:id="@+id/ll_camera"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center_horizontal"
- android:orientation="vertical">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/icon_camera"
- android:padding="10dp">
- </ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="8dp"
- android:gravity="center"
- android:text="摄像头"
- android:textColor="@color/color_black_text"
- android:textSize="14dp" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/ll_sensor"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center_horizontal"
- android:orientation="vertical">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/icon_sensor"
- android:padding="10dp">
- </ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="8dp"
- android:gravity="center"
- android:text="传感器"
- android:textColor="@color/color_black_text"
- android:textSize="14dp" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/ll_water_intake"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center_horizontal"
- android:orientation="vertical">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/icon_intake"
- android:padding="10dp">
- </ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="8dp"
- android:gravity="center"
- android:text="取水口"
- android:textColor="@color/color_black_text"
- android:textSize="14dp" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/ll_water_crane"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center_horizontal"
- android:orientation="vertical">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/icon_water_crane"
- android:padding="10dp">
- </ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="8dp"
- android:gravity="center"
- android:text="水鹤"
- android:textColor="@color/color_black_text"
- android:textSize="14dp" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:orientation="horizontal"
- android:padding="12dp">
- <LinearLayout
- android:id="@+id/ll_water_source"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center_horizontal"
- android:orientation="vertical">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/icon_water_source"
- android:padding="10dp">
- </ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="8dp"
- android:gravity="center"
- android:text="水源"
- android:textColor="@color/color_black_text"
- android:textSize="14dp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center_horizontal"
- android:orientation="vertical">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/icon_zanding01"
- android:padding="10dp">
- </ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="8dp"
- android:gravity="center"
- android:text="标题"
- android:textColor="@color/color_black_text"
- android:textSize="14dp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center_horizontal"
- android:orientation="vertical">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/icon_zanding02"
- android:padding="10dp">
- </ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="8dp"
- android:gravity="center"
- android:text="标题"
- android:textColor="@color/color_black_text"
- android:textSize="14dp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center_horizontal"
- android:orientation="vertical">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/icon_more"
- android:padding="10dp">
- </ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="8dp"
- android:gravity="center"
- android:text="更多"
- android:textColor="@color/color_black_text"
- android:textSize="14dp" />
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- </FrameLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="70dp"
- android:layout_marginLeft="15dp"
- android:layout_marginTop="10dp"
- android:layout_marginRight="15dp"
- android:background="@drawable/icon_noticebg">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginLeft="20dp"
- android:background="@drawable/icon_notice">
- </ImageView>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginLeft="15dp"
- android:layout_marginTop="15dp"
- android:layout_marginRight="30dp"
- android:layout_marginBottom="15dp"
- android:orientation="vertical">
- <TextView
- android:id="@+id/tv_one"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:ellipsize="end"
- android:gravity="center_vertical"
- android:singleLine="true"
- android:textColor="@color/color_notice" />
- <TextView
- android:id="@+id/tv_two"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:ellipsize="end"
- android:gravity="center_vertical"
- android:singleLine="true"
- android:textColor="@color/color_notice" />
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- <com.youth.banner.Banner
- android:id="@+id/banner"
- android:layout_width="match_parent"
- android:layout_height="120dp"
- android:layout_marginLeft="15dp"
- android:layout_marginTop="15dp"
- android:layout_marginRight="15dp"
- app:banner_indicator_normal_color="@color/divider"
- app:banner_indicator_selected_color="@color/white"
- app:banner_radius="5dp" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="center_vertical"
- android:layout_marginTop="15dp">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:layout_marginLeft="15dp"
- android:layout_toLeftOf="@+id/tv_all"
- android:drawableLeft="@drawable/icon_title"
- android:drawablePadding="10dp"
- android:text="更多应用"
- android:textColor="@color/black"
- android:textSize="18dp" />
- <TextView
- android:id="@+id/tv_all"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="15dp"
- android:drawableRight="@drawable/icon_arrow_right"
- android:text="全部"
- android:textColor="@color/text_gray3"
- android:textSize="14dp" />
- </RelativeLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="45dp"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="220dp"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:background="@drawable/icon_zanding03">
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="220dp"
- android:layout_marginRight="15dp"
- android:layout_weight="1"
- android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_marginBottom="10dp"
- android:layout_weight="1"
- android:background="@drawable/icon_zanding04" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:background="@drawable/icon_zanding05" />
- </LinearLayout>
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="80dp"/>
- </LinearLayout>
- </ScrollView>
- <!-- </androidx.core.widget.NestedScrollView>-->
- </layout>
|