Activity
<LinearLayout 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"
android:orientation="vertical"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp">
<include layout="@layout/main_title"></include>
</LinearLayout>
<com.youth.banner.Banner
android:layout_width="match_parent"
android:layout_height="140dp"
android:id="@+id/main_banner"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textStyle="bold"
android:text="设计师"
android:padding="10dp"
/>
<TextView
android:id="@+id/t_tou"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="上传头像"
android:textSize="18sp"
android:layout_marginLeft="200dp"
android:textStyle="bold"
/>
</LinearLayout>
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="50dp"
android:id="@+id/main_rv_designer"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textStyle="bold"
android:text="列表"
android:padding="10sp"
android:id="@+id/main_tv_liebiao"
/>
<com.jcodecraeer.xrecyclerview.XRecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/main_xrv_liebiao"
/>
</LinearLayout>
activity_show
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<com.jcodecraeer.xrecyclerview.XRecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/show_xrv"
/>
</LinearLayout>
activity_web
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/web_web"
/>
</LinearLayout>
home_desinger
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<com.facebook.drawee.view.SimpleDraweeView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_gravity="center"
android:id="@+id/home_designer_sdv_item"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:textSize="18sp"
android:layout_gravity="center"
android:id="@+id/home_designer_tv_title"
/>
</LinearLayout>
home_new_item
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
>
<com.facebook.drawee.view.SimpleDraweeView
android:layout_width="90dp"
android:layout_height="90dp"
android:id="@+id/home_news_sdv"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textStyle="bold"
android:id="@+id/home_news_tv_title"
android:layout_toRightOf="@id/home_news_sdv"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textStyle="bold"
android:id="@+id/home_news_tv_price"
android:layout_toRightOf="@id/home_news_sdv"
android:layout_alignBottom="@id/home_news_sdv"
/>
</RelativeLayout>
image_layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<ImageView
android:id="@+id/image_chuan"
android:layout_width="90dp"
android:layout_height="90dp" />
</LinearLayout>
main_title_layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="vertical"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="首页"
android:textSize="30sp"
android:textColor="#000"
android:gravity="center"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="2dp"
android:text=""
android:background="#000"
/>
</LinearLayout>