123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?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:orientation="vertical">
- <android.support.v7.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="?attr/colorPrimary"
- android:minHeight="?attr/actionBarSize"
- android:theme="?attr/actionBarTheme"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <TextView
- android:id="@+id/textView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:text="@string/app_name"
- android:textColor="@android:color/white"
- android:textSize="18sp"
- android:textStyle="bold" />
- <com.joanzapata.iconify.widget.IconTextView
- android:id="@+id/search"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginEnd="16dp"
- android:layout_marginRight="16dp"
- android:text="{fa-search 20sp}"
- android:textColor="@android:color/white" />
- </RelativeLayout>
- </android.support.v7.widget.Toolbar>
- <android.support.v4.widget.SwipeRefreshLayout
- android:id="@+id/mainRefreshLayout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:layout_constraintBottom_toTopOf="@id/view"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/toolbar">
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <cn.bingoogolapple.bgabanner.BGABanner
- android:id="@+id/mainBanner"
- android:layout_width="match_parent"
- android:layout_height="200dp"
- app:banner_pageChangeDuration="1000"
- app:banner_pointAutoPlayAble="true"
- app:banner_pointContainerBackground="@android:color/transparent"
- app:banner_pointDrawable="@drawable/bga_banner_selector_point_hollow"
- app:banner_pointTopBottomMargin="15dp"
- app:banner_tipTextColor="@android:color/black"
- app:banner_tipTextSize="16sp"
- app:banner_transitionEffect="alpha" />
- <com.joanzapata.iconify.widget.IconTextView
- android:id="@+id/notification"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:layout_marginLeft="16dp"
- android:layout_marginTop="16dp"
- android:layout_marginEnd="16dp"
- android:layout_marginRight="16dp"
- android:padding="4dp"
- android:text="{fa-bell} 重要通知:在这里"
- android:textColor="@android:color/black" />
- <RelativeLayout
- android:id="@+id/courseHot"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:layout_marginLeft="16dp"
- android:layout_marginTop="16dp"
- android:layout_marginEnd="16dp"
- android:layout_marginRight="16dp"
- android:padding="8dp">
- <TextView
- android:id="@+id/courseHotTitle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="热门课程推荐"
- android:textColor="@android:color/black"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/courseHotTip"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_alignParentRight="true"
- android:text="+123 more"
- android:textColor="@android:color/black" />
- <android.support.v7.widget.RecyclerView
- android:id="@+id/courseHotView"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/courseHotTitle"
- android:layout_marginTop="8dp" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/courseExcellent"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:layout_marginLeft="16dp"
- android:layout_marginTop="16dp"
- android:layout_marginEnd="16dp"
- android:layout_marginRight="16dp"
- android:padding="8dp">
- <TextView
- android:id="@+id/courseExcellentTitle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="名师课程推荐"
- android:textColor="@android:color/black"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/courseExcellentTip"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_alignParentRight="true"
- android:text="+123 more"
- android:textColor="@android:color/black" />
- <android.support.v7.widget.RecyclerView
- android:id="@+id/courseExcellentView"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/courseExcellentTitle"
- android:layout_marginTop="8dp" />
- </RelativeLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="16dp" />
- </LinearLayout>
- </ScrollView>
- </android.support.v4.widget.SwipeRefreshLayout>
- </LinearLayout>
|