Browse Source

no message

master
lh 8 years ago
parent
commit
f13ff30299
2 changed files with 72 additions and 56 deletions
  1. +24
    -16
      app/src/main/res/layout/fragment_index_fumudai.xml
  2. +48
    -40
      app/src/main/res/layout/fragment_index_shangpin.xml

+ 24
- 16
app/src/main/res/layout/fragment_index_fumudai.xml View File

@ -1,22 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/greyf4f4f4"
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/fumudai_banner"
android:layout_width="match_parent"
android:layout_height="160dp"
android:scaleType="fitXY" />
android:layout_height="match_parent"
android:background="@color/greyf4f4f4"
android:orientation="vertical">
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_fuwudai"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:scrollbars="none">
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/fumudai_banner"
android:layout_width="match_parent"
android:layout_height="160dp"
android:scaleType="fitXY" />
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_fuwudai"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:scrollbars="none">
</android.support.v7.widget.RecyclerView>
</android.support.v7.widget.RecyclerView>
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>

+ 48
- 40
app/src/main/res/layout/fragment_index_shangpin.xml View File

@ -1,57 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/greyf4f4f4"
android:orientation="vertical">
<ImageView
android:id="@+id/shangpin_banner"
android:layout_width="match_parent"
android:layout_height="160dp"
android:scaleType="fitXY" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/shangpin_zonglan"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:textSize="@dimen/text_size_14" />
<TextView
android:id="@+id/shangpin_zongcunlan"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:textSize="@dimen/text_size_14" />
<ImageView
android:id="@+id/shangpin_banner"
android:layout_width="match_parent"
android:layout_height="160dp"
android:scaleType="fitXY" />
<TextView
android:id="@+id/shangpin_zongkonglan"
android:layout_width="0dp"
android:layout_weight="1"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="@dimen/text_size_14" />
android:orientation="horizontal">
<TextView
android:id="@+id/shangpin_zonglan"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="@dimen/text_size_14" />
<TextView
android:id="@+id/shangpin_zongcunlan"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="@dimen/text_size_14" />
<TextView
android:id="@+id/shangpin_zongzhishu"
android:layout_width="0dp"
android:layout_weight="2"
<TextView
android:id="@+id/shangpin_zongkonglan"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="@dimen/text_size_14" />
<TextView
android:id="@+id/shangpin_zongzhishu"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:textSize="@dimen/text_size_14" />
</LinearLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_shangpinpianqu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="@dimen/text_size_14" />
</LinearLayout>
android:background="@color/white"
android:scrollbars="none">
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_shangpinpianqu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:scrollbars="none">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
</android.support.v7.widget.RecyclerView>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>

Loading…
Cancel
Save