148 lines
7.0 KiB
XML
148 lines
7.0 KiB
XML
<?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"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
android:id="@+id/swipe_refresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="30dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/head_img"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="fitXY"
|
|
android:src="@drawable/icon_home_head" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="130dp"
|
|
android:orientation="vertical">
|
|
|
|
<com.allen.library.shape.ShapeRelativeLayout
|
|
android:id="@+id/layout_notice"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:layout_marginHorizontal="12dp"
|
|
app:shapeCornersRadius="8dp"
|
|
app:shapeGradientAngle="top_bottom"
|
|
app:shapeGradientEndColor="#F2FFFD"
|
|
app:shapeGradientStartColor="#DCFFFB"
|
|
app:shapeSolidColor="@color/white"
|
|
app:shapeStrokeColor="@color/white"
|
|
app:shapeStrokeWidth="2dp">
|
|
|
|
<ImageView
|
|
android:layout_width="17dp"
|
|
android:layout_height="17dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginLeft="10dp"
|
|
android:background="@drawable/icon_home_xiaolaba" />
|
|
|
|
<com.sunfusheng.marqueeview.MarqueeView
|
|
android:id="@+id/home_marqueeView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginHorizontal="2dp"
|
|
android:layout_marginVertical="2dp"
|
|
android:layout_marginStart="36dp"
|
|
android:layout_marginEnd="5dp"
|
|
app:mvAnimDuration="1000"
|
|
app:mvDirection="bottom_to_top"
|
|
app:mvInterval="3000"
|
|
app:mvSingleLine="true"
|
|
app:mvTextColor="#77849E"
|
|
app:mvTextSize="14sp" />
|
|
|
|
</com.allen.library.shape.ShapeRelativeLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_hi"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="24dp"
|
|
android:layout_marginTop="10dp"
|
|
android:ellipsize="end"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp"
|
|
tools:text="Hi~艾比拜·牙库甫" />
|
|
|
|
<include
|
|
android:id="@+id/layout_item1"
|
|
layout="@layout/home_layout_item1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="6dp"
|
|
android:layout_marginTop="10dp" />
|
|
|
|
<com.youth.banner.Banner
|
|
android:id="@+id/banner1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="65dp"
|
|
android:layout_marginHorizontal="12dp"
|
|
android:layout_marginTop="10dp" />
|
|
|
|
<com.youth.banner.Banner
|
|
android:id="@+id/banner2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:layout_marginHorizontal="12dp"
|
|
android:layout_marginTop="10dp" />
|
|
|
|
<com.youth.banner.Banner
|
|
android:id="@+id/banner3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="120dp"
|
|
android:layout_marginHorizontal="12dp"
|
|
android:layout_marginTop="10dp" />
|
|
|
|
<include
|
|
android:id="@+id/layout_item3"
|
|
layout="@layout/home_layout_item3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="12dp"
|
|
android:layout_marginTop="10dp" />
|
|
|
|
<include
|
|
android:id="@+id/layout_item4"
|
|
layout="@layout/home_layout_item4"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<com.youth.banner.Banner
|
|
android:id="@+id/banner4"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="120dp"
|
|
android:layout_marginHorizontal="12dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
</LinearLayout>
|
|
</layout>
|