fragment_run_race_detail.xml 8.47 KB
<?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">

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <com.sothree.slidinguppanel.SlidingUpPanelLayout xmlns:sothree="http://schemas.android.com/apk/res-auto"
            android:id="@+id/sliding_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="bottom"
            sothree:umanoDragView="@+id/scrollView"
            sothree:umanoFadeColor="@color/black_20"
            sothree:umanoOverlay="true"
            sothree:umanoPanelHeight="181dp"
            sothree:umanoParallaxOffset="400dp"
            sothree:umanoScrollableView="@+id/scrollView"
            sothree:umanoShadowHeight="0dp">

            <!-- MAIN CONTENT -->
            <FrameLayout
                android:id="@+id/fl_root"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <com.baidu.mapapi.map.MapView
                    android:id="@+id/mapView"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"></com.baidu.mapapi.map.MapView>

                <!--地图上面加一层类似于全透明黑色蒙版-->
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:background="#0D000000"
                    android:clickable="false"
                    android:focusable="false"
                    android:focusableInTouchMode="false"></LinearLayout>

                <ImageView
                    android:id="@+id/iv_back"
                    android:layout_width="35dp"
                    android:layout_height="35dp"
                    android:layout_margin="10dp"
                    android:background="@drawable/pedometer_xqy_return" />

                <ImageView
                    android:id="@+id/iv_black_share"
                    android:layout_width="35dp"
                    android:layout_height="35dp"
                    android:layout_gravity="right"
                    android:layout_margin="10dp"
                    android:background="@drawable/icon_pedometer_black_share" />


                <ImageView
                    android:id="@+id/iv_share"
                    android:layout_width="35dp"
                    android:layout_height="35dp"
                    android:layout_gravity="right"
                    android:layout_margin="10dp"
                    android:background="@drawable/pedometer_xqt_share"
                    android:visibility="gone" />
                <!---->


            </FrameLayout>

            <!-- SLIDING LAYOUT -->
            <FrameLayout
                android:id="@+id/dragView"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:clickable="false"
                android:focusable="false">

                <ScrollView
                    android:id="@+id/scrollView"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:paddingTop="40dp"
                    android:scrollbars="none">

                    <LinearLayout
                        android:id="@+id/ll_root"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:orientation="vertical">


                        <!--跑道-->
                        <include
                            android:id="@+id/include_street"
                            layout="@layout/layout_run_detail_street" />
                        <!--成绩-->
                        <include
                            android:id="@+id/include_person_score"
                            layout="@layout/layout_run_detail_person_score"
                            android:visibility="visible" />
                        <!--排行-->
                        <include
                            android:id="@+id/include_rank"
                            layout="@layout/layout_run_detail_rank"
                            android:visibility="visible" />
                        <!---->
                        <View
                            android:layout_width="match_parent"
                            android:layout_height="10dp"
                            android:background="#F4F4F4" />
                        <!--路线介绍-->
                        <include
                            android:id="@+id/include_street_introduce"
                            layout="@layout/layout_run_detail_street_introduce" />
                    </LinearLayout>

                </ScrollView>

            </FrameLayout>
        </com.sothree.slidinguppanel.SlidingUpPanelLayout>
        <!--按钮-->
        <RelativeLayout
            android:id="@+id/rl_scrollView_startBtn"
            android:layout_width="match_parent"
            android:layout_height="40sp"
            android:layout_gravity="bottom"
            android:background="@color/green_round"
            android:tag="1">

            <TextView
                android:id="@+id/tv_run_now"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:tag="0"
                android:text="@string/run_race_btn_sign_up"
                android:textColor="@color/white"
                android:textSize="18sp" />

            <TextView
                android:id="@+id/tv_go_tip"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_centerInParent="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:text="Go!"
                android:textColor="@color/white"
                android:textSize="18sp"
                android:visibility="gone" />

        </RelativeLayout>

        <LinearLayout
            android:id="@+id/fl_top"
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:layout_gravity="top"
            android:background="@color/run_main_bg"
            android:gravity="center_vertical"
            android:visibility="invisible">

            <LinearLayout
                android:id="@+id/ll_top_back"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_gravity="center_vertical"
                android:gravity="center"
                android:padding="8dp">

                <ImageView
                    android:layout_width="11dp"
                    android:layout_height="20dp"
                    android:background="@drawable/pedometer_icon_run_white_back" />
            </LinearLayout>

            <TextView
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_weight="1"
                android:gravity="center"
                android:text="路线详情"
                android:textColor="@color/white"
                android:textSize="18sp" />

            <LinearLayout
                android:id="@+id/ll_top_share"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_gravity="center_vertical"
                android:gravity="center"
                android:paddingRight="10dp">

                <ImageView
                    android:layout_width="20dp"
                    android:layout_height="19dp"
                    android:background="@drawable/icon_pedometer_white_share" />
            </LinearLayout>
        </LinearLayout>

        <com.cnlive.strike.ui.widget.UIEmptyView
            android:id="@+id/empty_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@color/color_fff"
            android:clickable="true"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:visibility="gone" />
    </FrameLayout>
</layout>