table_layout.xml 3.33 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <!-- 此部分是标题部分 -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#F2F2F2"
        android:orientation="horizontal">

        <!-- 右侧标题的父容器可实现水平滚动 -->
        <com.lijinji.tab.widget.SyncHorizontalScrollView
            android:id="@+id/title_horsv"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:fillViewport="true"
            android:scrollbars="none">

            <LinearLayout
                android:id="@+id/right_title_container"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:gravity="center"
                android:orientation="horizontal">
                <!--<include layout="@layout/table_sales_right_tab"/>-->
            </LinearLayout>
        </com.lijinji.tab.widget.SyncHorizontalScrollView>
    </LinearLayout>

    <!-- 此部分是内容部分 用ScrollView实现上下滚动效果 -->
    <com.lijinji.tab.widget.pullrefresh.AbPullToRefreshView
        android:id="@+id/pulltorefreshview"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <ScrollView
            android:id="@+id/pull_refresh_scroll"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <!-- 左侧内容的父容器 -->
                <com.lijinji.tab.widget.MyListView
                    android:id="@+id/left_container_listview"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:visibility="gone"
                    android:scrollbars="none">
                </com.lijinji.tab.widget.MyListView>

                <!-- 右侧内容的父容器 实现水平滚动 -->
                <com.lijinji.tab.widget.SyncHorizontalScrollView
                    android:id="@+id/content_horsv"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="3"
                    android:fillViewport="true"
                    android:scrollbars="none">
                    <com.lijinji.tab.widget.MyListView
                        android:id="@+id/right_container_listview"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:background="#ffffff"
                        android:scrollbars="none">
                    </com.lijinji.tab.widget.MyListView>
                </com.lijinji.tab.widget.SyncHorizontalScrollView>
            </LinearLayout>
        </ScrollView>
    </com.lijinji.tab.widget.pullrefresh.AbPullToRefreshView>
</LinearLayout>