Commit 01fc66c3 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 47a250d4
......@@ -388,6 +388,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
val mainFirstRecommend =
AppPreferencesManager.get().getBoolean(Constant.MAIN_FIRST_RECOMMEND, false)
if (!mainFirstRecommend) {
// if (mainFirstRecommend) {
AppPreferencesManager.get().put(Constant.MAIN_FIRST_RECOMMEND, true)
Handler(Looper.getMainLooper()).postDelayed({
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!-- 填充的颜色 -->
<solid android:color="#f2575b" />
<!-- 设置按钮的四个角为弧形 -->
<!-- android:radius 弧形的半径 -->
<corners android:radius="10dip" />
</shape>
\ No newline at end of file
......@@ -55,7 +55,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginLeft="14dp"
android:layout_marginLeft="12dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="35dp"
android:drawableLeft="@mipmap/ic_recommend_vedio"
......@@ -95,10 +95,10 @@
<Button
android:id="@+id/btn_recommend_next"
android:layout_width="260dp"
android:layout_width="210dp"
android:layout_height="50dp"
android:layout_centerInParent="true"
android:background="@mipmap/bg_vip_btn"
android:background="@drawable/shape_bg_recommend"
android:text="立即试看"
android:textColor="@color/white"
android:textSize="16sp" />
......
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