Kotlin的Fragment及item的页面

本文介绍了两个Fragment中展示的内容,一个是电影新片上线的RecyclerView,包含影视名称和在线观看按钮;另一个是放映厅与活动信息,包括XBanner轮播图、正在上映和精彩演出的RecyclerView。还展示了电影详情和购票操作的界面。
摘要由CSDN通过智能技术生成
<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"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    tools:context=".view.fragment.FytFragment"
    android:orientation="vertical">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="新片上线"
        android:textSize="20sp"
        android:layout_margin="10dp"
        />
    <androidx.recyclerview.widget.RecyclerView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/recyclerView_jzvd"
        />

</LinearLayout>
<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"
    tools:context=".view.fragment.TjFragment"
    android:orientation="vertical">

    <com.stx.xhb.androidx.XBanner
        android:layout_width="match_parent"
        android:layout_height="200dp"
        android:id="@+id/xBanner_TJ"

        />
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="正在上映"
        android:textSize="20sp"
        android:layout_margin="10dp"
        />
    <androidx.recyclerview.widget.RecyclerView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/recyclerView_ZZSY"
        />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="精彩演出"
        android:textSize="20sp"
        android:layout_margin="10dp"
        />
    <androidx.recyclerview.widget.RecyclerView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/recyclerView_JCYC"
        />

</LinearLayout>
item
  放映厅item
  
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical">

    <com.facebook.drawee.view.SimpleDraweeView
        android:layout_width="match_parent"
        android:layout_height="300dp"
        app:placeholderImage="@mipmap/ic_launcher"
        app:failureImage="@mipmap/ic_launcher"
        android:id="@+id/simpler_fyt"
        />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        >
        <LinearLayout
            android:layout_width="0dp"
            android:layout_weight="3"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            >
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="影视名称"
                android:id="@+id/textView_Name_Fyt"
                android:gravity="center"
                />
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="评分"
                android:id="@+id/textView_Pf_Fyt"
                android:gravity="center"
                android:textColor="#F8A706"
                />
        </LinearLayout>
        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="在线看"
            android:id="@+id/button_ZXK"
            />
    </LinearLayout>


</LinearLayout>

正在上映item

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:gravity="center">
  <com.facebook.drawee.view.SimpleDraweeView
      android:layout_width="100dp"
      android:layout_height="150dp"
      app:placeholderImage="@mipmap/ic_launcher"
      app:failureImage="@mipmap/ic_launcher"
      android:id="@+id/simpler_ZZSY"
      />
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="影视名称"
        android:id="@+id/textView_Name_ZZSY"
        android:gravity="center"
        />
    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="购票"
        android:textSize="20sp"
        android:textColor="#fff"
        android:background="#f00"
        android:id="@+id/button_GP"
        />
</LinearLayout>

精彩演出item

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:gravity="center">
  <com.facebook.drawee.view.SimpleDraweeView
      android:layout_width="100dp"
      android:layout_height="150dp"
      app:placeholderImage="@mipmap/ic_launcher"
      app:failureImage="@mipmap/ic_launcher"
      android:id="@+id/simpler_JCYC"
      />
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="影视名称"
        android:id="@+id/textView_Name_JCYC"
        android:gravity="center"
        />

</LinearLayout>

评论item

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:background="#C9F602"
    >
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="影视名称"
        android:id="@+id/textView_Name_Pl"
        />
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="评论留言"
       android:id="@+id/textView_Ly"
        />
    <androidx.recyclerview.widget.RecyclerView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/recyclerView_Pl2"
        android:layout_marginTop="10dp"
        />


</LinearLayout>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="#04C1F1">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/child_Name"
        />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/child_content"

        android:layout_marginLeft="20dp"
        />

</LinearLayout>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值