a_movie_detail.xml 8.16 KB
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
             xmlns:tools="http://schemas.android.com/tools"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:orientation="vertical"
             android:background="@drawable/ic_general_bg">
    <ImageView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/ic_general_dark"
            android:scaleType="fitXY"
            android:adjustViewBounds="true"
    />
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:tools="http://schemas.android.com/tools"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:padding="46dp"
                  android:orientation="vertical">


        <ScrollView
                android:id="@+id/scrollView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">
            <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">
                <TextView
                        style="@style/GeneralTextViewTheme"
                        android:id="@+id/movieName_tv"
                />
                <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/small_margin"
                        android:orientation="vertical">

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

                        <com.xgimi.gimicinema.view.roundedimageview.RoundedImageView
                                android:id="@+id/moviePoster_iv"
                                android:layout_width="200dp"
                                android:layout_height="270dp"
                                android:scaleType="fitXY"
                                xmlns:makeramen="http://schemas.android.com/apk/res/com.xgimi.gimicinema"
                                makeramen:riv_corner_radius="5dp"
                                android:focusable="false"
                                android:focusableInTouchMode="false"
                                tools:background="@drawable/ic_movie_default"
                                android:text="@string/actor"/>

                        <LinearLayout
                                android:layout_width="0dp"
                                android:layout_height="wrap_content"
                                android:layout_weight="1"
                                android:layout_marginLeft="@dimen/small_margin"
                                android:orientation="vertical">
                            <TextView
                                    android:id="@+id/directorName_tv"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:textSize="@dimen/detail_text_size"
                            />
                            <TextView
                                    android:id="@+id/actorsName_tv"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:layout_marginTop="@dimen/small_margin"
                                    android:textSize="@dimen/detail_text_size"
                            />
                            <TextView
                                    android:id="@+id/type_tv"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:layout_marginTop="@dimen/small_margin"
                                    android:textSize="@dimen/detail_text_size"
                            />
                            <TextView
                                    android:id="@+id/country_tv"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:layout_marginTop="@dimen/small_margin"
                                    android:textSize="@dimen/detail_text_size"
                            />

                            <TextView
                                    android:id="@+id/year_tv"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:layout_marginTop="@dimen/small_margin"
                                    android:textSize="@dimen/detail_text_size"
                            />

                            <TextView
                                    android:id="@+id/score_tv"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:layout_marginTop="@dimen/small_margin"
                                    android:textSize="@dimen/detail_text_size"
                            />
                        </LinearLayout>
                        <LinearLayout
                                android:layout_width="wrap_content"
                                android:layout_height="match_parent"
                                android:orientation="vertical">
                            <Button
                                    android:layout_width="120dp"
                                    android:layout_height="54dp"
                                    android:padding="10dp"
                                    android:background="@drawable/grid_selector"
                                    android:onClick="playMovie"
                                    android:textSize="@dimen/detail_text_size"
                                    android:focusable="true"
                                    android:textColor="@color/general_text_color"
                                    android:text="@string/play"/>
                            <Button android:layout_width="wrap_content"
                                    android:id="@+id/addTo_btn"
                                    android:visibility="gone"
                                    android:layout_height="wrap_content"
                                    android:padding="10dp"
                                    android:background="@drawable/grid_selector"
                                    android:onClick="addToOther"
                                    android:textSize="@dimen/detail_text_size"
                                    android:focusable="true"
                                    android:textColor="@color/general_text_color"
                                    android:text="@string/add_to"/>
                        </LinearLayout>
                    </LinearLayout>
                </LinearLayout>
                <GridView
                        android:id="@+id/serialGv"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:numColumns="5"
                        android:listSelector="@drawable/grid_selector">

                </GridView>
                <TextView
                        android:id="@+id/introduce_tv"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/small_margin"
                        android:gravity="left"
                        android:textSize="@dimen/detail_text_size"
                />

            </LinearLayout>
        </ScrollView>
    </LinearLayout>
</FrameLayout>