Commit e53c5138 by 王佳洋

1,UI修改

2,音频在壳中初始化
parent cc15c960
...@@ -16,6 +16,9 @@ import com.umeng.socialize.PlatformConfig; ...@@ -16,6 +16,9 @@ import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareAPI; import com.umeng.socialize.UMShareAPI;
import com.ydl.component.route.PlatformTempCommonRouteImpl; import com.ydl.component.route.PlatformTempCommonRouteImpl;
import com.ydl.confide.BuildConfig; import com.ydl.confide.BuildConfig;
import com.ydl.media.audio.AudioPlayer;
import com.ydl.media.audio.manager.MediaSessionManager;
import com.ydl.media.audio.manager.NotifyManager;
import com.ydl.ydl_image.manager.YDLImageCacheManager; import com.ydl.ydl_image.manager.YDLImageCacheManager;
import com.ydl.ydlcommon.base.BaseApp; import com.ydl.ydlcommon.base.BaseApp;
import com.ydl.ydlcommon.router.YdlCommonRouterManager; import com.ydl.ydlcommon.router.YdlCommonRouterManager;
...@@ -26,6 +29,7 @@ import com.yidianling.common.tools.ToastUtil; ...@@ -26,6 +29,7 @@ import com.yidianling.common.tools.ToastUtil;
import com.yidianling.consultant.preview.TestImageLoader; import com.yidianling.consultant.preview.TestImageLoader;
import com.yidianling.consultant.preview.ZoomMediaLoader; import com.yidianling.consultant.preview.ZoomMediaLoader;
import com.yidianling.course.lifeCallback.CoursePlayLifecycle; import com.yidianling.course.lifeCallback.CoursePlayLifecycle;
import com.yidianling.course.widget.AudioPlayView;
/** /**
...@@ -46,6 +50,9 @@ public class ComponentTestApp extends BaseApp { ...@@ -46,6 +50,9 @@ public class ComponentTestApp extends BaseApp {
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
mComponentTestAppContext = this; mComponentTestAppContext = this;
AudioPlayer.Companion.get().init(this);
NotifyManager.Companion.get().init(this);
MediaSessionManager.Companion.get().init(this);
LogUtil.debug = BuildConfig.DEBUG; LogUtil.debug = BuildConfig.DEBUG;
com.ydl.ydlcommon.utils.LogUtil.debug = BuildConfig.DEBUG; com.ydl.ydlcommon.utils.LogUtil.debug = BuildConfig.DEBUG;
......
...@@ -83,7 +83,7 @@ class CourseListDialog : BaseDialogFragment() { ...@@ -83,7 +83,7 @@ class CourseListDialog : BaseDialogFragment() {
} }
} }
} }
tv_audition.visibility = if (bean.isDemo) View.VISIBLE else View.GONE // 试听标签 iv_audition.visibility = if (bean.isDemo) View.VISIBLE else View.GONE // 试听标签
tv_title.text = bean.title tv_title.text = bean.title
setOnClickListener { setOnClickListener {
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:color="@color/color_EB892C" android:width="1dp"/>
<corners android:radius="4dp"/>
</shape>
\ No newline at end of file
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="32dp" android:layout_marginStart="32dp"
android:textStyle="bold"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:layout_marginEnd="32dp" android:layout_marginEnd="32dp"
android:ellipsize="end" android:ellipsize="end"
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<ImageView <ImageView
android:id="@+id/iv_rewind" android:id="@+id/iv_rewind"
android:layout_width="25dp" android:layout_width="30dp"
android:layout_height="25dp" android:layout_height="30dp"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
android:src="@drawable/course_rewind_15"/> android:src="@drawable/course_rewind_15"/>
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
android:id="@+id/iv_fast_forward" android:id="@+id/iv_fast_forward"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
android:layout_width="25dp" android:layout_width="30dp"
android:layout_height="25dp" android:layout_height="30dp"
android:src="@drawable/course_fast_forward_15"/> android:src="@drawable/course_fast_forward_15"/>
<SeekBar <SeekBar
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
android:id="@+id/tv_title" android:id="@+id/tv_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="16dp" android:layout_marginStart="20dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:text="播放列表" android:text="播放列表"
android:textColor="@color/color_1C1F28" android:textColor="@color/color_1C1F28"
......
...@@ -9,34 +9,28 @@ ...@@ -9,34 +9,28 @@
android:id="@+id/tv_title" android:id="@+id/tv_title"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="30dp" android:layout_marginStart="20dp"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:paddingTop="1dp" android:paddingTop="1dp"
android:textColor="@color/color_242424" android:textColor="@color/color_242424"
android:textSize="14sp" android:textSize="14sp"
android:layout_marginEnd="12dp" android:layout_marginEnd="8dp"
app:layout_goneMarginEnd="80dp" app:layout_goneMarginEnd="80dp"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/tv_audition" app:layout_constraintEnd_toStartOf="@id/iv_audition"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:text="孩子是厌学情绪,还是厌学症?孩子是厌学情绪,还是厌学症?" /> tools:text="孩子是厌学情绪,还是厌学症?孩子是厌学情绪,还是厌学症?" />
<TextView <ImageView
android:id="@+id/tv_audition" android:id="@+id/iv_audition"
android:layout_width="wrap_content" android:layout_width="32dp"
android:layout_height="wrap_content" android:layout_height="16dp"
android:background="@drawable/bg_stroke_eb892c" android:src="@drawable/course_audition"
android:paddingStart="8dp"
android:paddingTop="1dp"
android:paddingEnd="8dp"
android:paddingBottom="1dp"
android:visibility="gone" android:visibility="gone"
android:text="试听" tools:visibility="visible"
android:textColor="@color/color_EB892C"
android:layout_marginEnd="69dp" android:layout_marginEnd="69dp"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/> app:layout_constraintBottom_toBottomOf="parent"/>
...@@ -57,8 +51,8 @@ ...@@ -57,8 +51,8 @@
<ImageView <ImageView
android:id="@+id/iv_play" android:id="@+id/iv_play"
android:layout_width="24dp" android:layout_width="28dp"
android:layout_height="24dp" android:layout_height="28dp"
android:layout_marginEnd="18dp" android:layout_marginEnd="18dp"
tools:src="@drawable/course_play_orange" tools:src="@drawable/course_play_orange"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
......
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