初始代码
This commit is contained in:
@@ -0,0 +1,164 @@
|
||||
<?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">
|
||||
|
||||
<data>
|
||||
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
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:background="@color/black">
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.allen.library.shape.ShapeFrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="230dp"
|
||||
app:shapeGradientAngle="top_bottom"
|
||||
app:shapeGradientEndColor="#0C0D0E"
|
||||
app:shapeGradientStartColor="#10504A" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="48dp"
|
||||
android:text="透明地质移动端"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="20sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title_sec"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/title"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:text="郭家湾矿区"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp" />
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/title_sec"
|
||||
android:layout_marginHorizontal="5dp"
|
||||
android:layout_marginTop="8dp"
|
||||
tools:listitem="@layout/item_home_menu_left_right" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="260dp"
|
||||
android:layout_below="@+id/rv_list"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.allen.library.shape.ShapeRelativeLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_weight="1"
|
||||
app:shapeCornersRadius="16dp"
|
||||
app:shapeSolidColor="#17181C">
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/left_pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp"
|
||||
android:layout_below="@+id/home_tab_viewPager2"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:gravity="center">
|
||||
|
||||
<com.zmkg.coaloperation.view.CircleView
|
||||
android:id="@+id/left_oval1"
|
||||
android:layout_width="5dp"
|
||||
android:layout_height="5dp"
|
||||
app:contextColor="#A3FEA6" />
|
||||
|
||||
<com.zmkg.coaloperation.view.CircleView
|
||||
android:id="@+id/left_oval2"
|
||||
android:layout_width="5dp"
|
||||
android:layout_height="5dp"
|
||||
app:contextColor="#80FFFFFF"
|
||||
android:layout_marginHorizontal="5dp" />
|
||||
|
||||
<com.zmkg.coaloperation.view.CircleView
|
||||
android:id="@+id/left_oval3"
|
||||
android:layout_width="5dp"
|
||||
android:layout_height="5dp"
|
||||
app:contextColor="#80FFFFFF" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</com.allen.library.shape.ShapeRelativeLayout>
|
||||
|
||||
<com.allen.library.shape.ShapeRelativeLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_weight="1"
|
||||
app:shapeCornersRadius="16dp"
|
||||
app:shapeSolidColor="#17181C">
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/right_pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp"
|
||||
android:layout_below="@+id/home_tab_viewPager2"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:gravity="center">
|
||||
|
||||
<com.zmkg.coaloperation.view.CircleView
|
||||
android:id="@+id/right_oval1"
|
||||
android:layout_width="5dp"
|
||||
android:layout_height="5dp"
|
||||
app:contextColor="#A3FEA6" />
|
||||
|
||||
<com.zmkg.coaloperation.view.CircleView
|
||||
android:id="@+id/right_oval2"
|
||||
android:layout_width="5dp"
|
||||
android:layout_height="5dp"
|
||||
app:contextColor="#80FFFFFF"
|
||||
android:layout_marginHorizontal="5dp" />
|
||||
|
||||
<com.zmkg.coaloperation.view.CircleView
|
||||
android:id="@+id/right_oval3"
|
||||
android:layout_width="5dp"
|
||||
android:layout_height="5dp"
|
||||
app:contextColor="#80FFFFFF" />
|
||||
</LinearLayout>
|
||||
|
||||
</com.allen.library.shape.ShapeRelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
Reference in New Issue
Block a user