Commit 814d6ab3 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent d8a48f2a
......@@ -97,7 +97,7 @@ object LocalVedioManager {
private fun requestDrama(activity: Activity, data: VedioBean?) {
if (DPSdk.isStartSuccess() && data != null) {
DPSdk.factory().requestDrama(
arrayListOf(data.vedioId.toLong()), object : IDPWidgetFactory.DramaCallback {
arrayListOf(data.thirdId.toLong()), object : IDPWidgetFactory.DramaCallback {
override fun onError(p0: Int, p1: String?) {
ToastUtil.show(activity, "网络错误!")
}
......
......@@ -239,7 +239,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
bannerList.clear()
for (i in 0 until data.list.size) {
val bean = BannerBean()
bean.title = data.list.get(i).title
bean.title = data.list.get(i).topTabsReamrk
bean.imageRes = data.list.get(i).coverImage
bannerList.add(bean)
}
......
......@@ -32,6 +32,15 @@ class MyFragment : BaseFragment(), MyView, View.OnClickListener {
override fun initViewsAndEvents() {
myPresenter.attachView(this)
tv_contact.text = SpanUtils()
.append("如有问题,请直接联系")
.append("在线客服\n")
.setForegroundColor(resources.getColor(R.color.main_mints))
.append("处理速度更快,")
.append("无需联系支付宝")
.setForegroundColor(resources.getColor(R.color.main_mints))
.create()
initListener()
}
......
......@@ -88,6 +88,7 @@ class VideoActivity : BaseActivity(), View.OnClickListener, VideoView,
}
fm_bottom.setOnClickListener(this)
close_iv.setOnClickListener(this)
val recyViewLayoutManager = RecyViewLayoutManager(this, OrientationHelper.VERTICAL)
recy.layoutManager = recyViewLayoutManager
......
......@@ -5,7 +5,7 @@
android:layout_height="match_parent"
android:background="@color/black"
android:orientation="vertical"
tools:context=".video.VideoActivity">r
tools:context=".video.VideoActivity">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recy"
......
......@@ -144,30 +144,33 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginBottom="30dp"
android:text="试看已结束"
android:textColor="@color/white"
android:textSize="16sp" />
<Button
android:id="@+id/unlock"
android:layout_width="280dp"
android:layout_height="40dp"
android:layout_marginBottom="10dp"
android:background="@drawable/shape_red"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:background="@mipmap/bg_detail_top"
android:text="看广告解锁1集"
android:textColor="@color/white" />
<Button
android:id="@+id/vip"
android:layout_width="280dp"
android:layout_height="40dp"
android:background="@drawable/shape_green"
android:text="开通会员"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/bg_detail_bottom"
android:textColor="@color/white" />
</LinearLayout>
</FrameLayout>
<ImageView
android:id="@+id/leave"
android:layout_width="wrap_content"
......@@ -175,8 +178,4 @@
android:layout_marginTop="20dp"
android:padding="10dp"
android:src="@mipmap/ic_arrow_white" />
</FrameLayout>
</FrameLayout>
\ No newline at end of file
......@@ -21,6 +21,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:orientation="horizontal"
android:layout_marginBottom="10dp"
app:layout_constraintBottom_toTopOf="@id/info_tv"
app:layout_constraintLeft_toLeftOf="parent">
......@@ -40,7 +41,8 @@
<TextView
android:id="@+id/info_tv"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
android:layout_marginStart="15dp"
android:ellipsize="end"
android:gravity="center|left"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment