Commit 6fac90b6 by 范玉宾

UI WalkThrough part2

parent 2a3883ed
......@@ -14,7 +14,7 @@ ext {
"m-dynamic" : "0.0.7.73",
"m-article" : "0.0.0.10",
"m-muse" : "0.0.28.54",
"m-muse" : "0.0.28.55",
"m-tests" : "0.0.24.18",
"m-course" : "0.0.43.37",
......@@ -99,7 +99,7 @@ ext {
"m-dynamic" : "0.0.7.73",
"m-article" : "0.0.0.8",
"m-muse" : "0.0.28.54",
"m-muse" : "0.0.28.55",
"m-tests" : "0.0.24.18",
"m-course" : "0.0.43.37",
//-------------- 业务模块 API 层 --------------
......
......@@ -76,6 +76,8 @@
android:layout_height="40dp"
app:tabTextColor="#88FFFFFF"
app:tabSelectedTextColor="#FFFFFF"
app:tabBackground="@color/transparent"
app:tabRippleColor="@color/transparent"
style="@style/MeditationTabLayoutStyle" />
<View
......
......@@ -23,6 +23,9 @@ android {
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
flavorDimensions "versionCode"
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
}
lintOptions {
......@@ -60,6 +63,7 @@ dependencies {
implementation 'com.github.weidongjian:androidWheelView:1.0.0'
implementation 'com.github.feeeei:CircleSeekbar:v1.1.2'
implementation 'com.github.mmin18:realtimeblurview:1.2.1'
// implementation 'jp.wasabeef:blurry:4.0.1'
// solve build problem
// cannot access 'androidx.lifecycle.hasdefaultviewmodelproviderfactory'
......
......@@ -5,34 +5,40 @@ import android.graphics.Color
import android.os.Bundle
import android.os.Handler
import com.blankj.utilcode.util.SPUtils
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
import com.bumptech.glide.request.RequestOptions
import com.ydl.ydlcommon.base.BaseActivity
import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.remind.ToastHelper
import com.yidianling.muse.R
import jp.wasabeef.glide.transformations.BitmapTransformation
import jp.wasabeef.glide.transformations.BlurTransformation
import kotlinx.android.synthetic.main.activity_play_meditation_time_off.*
import kotlinx.android.synthetic.main.activity_play_meditation_time_off.iv_close
class MeditationTimeOffActivity : BaseActivity() {
private lateinit var mBGImageUrl:String
override fun onCreate(savedInstanceState: Bundle?) {
StatusBarUtils.setTransparentForImageView(this, null)
StatusBarUtils.statusBarLightMode(this)
super.onCreate(savedInstanceState)
mBGImageUrl = intent?.getStringExtra("BG_IMAGE_URL")?:""
initView()
}
private fun initView() {
// Handler().postDelayed({
// Blurry.with(this)
// .radius(25)
// .sampling(1)
// .color(Color.parseColor("#FF173F5D"))
// .async()
// .capture(iv_bg)
// .into(iv_bg)
// },300)
val options = RequestOptions.bitmapTransform(BlurTransformation(25,1))
Glide.with(this)
.load(mBGImageUrl)
.transition(DrawableTransitionOptions.withCrossFade())
.apply(options)
.into(iv_bg)
iv_close?.setOnClickListener { finish() }
......@@ -99,7 +105,7 @@ class MeditationTimeOffActivity : BaseActivity() {
}
override fun initDataAndEvent() {
StatusBarUtils.setWindowStatusBarColor(this, R.color.platform_main_theme)
StatusBarUtils.setTransparent(this)
}
override fun layoutResId(): Int {
......
......@@ -451,10 +451,9 @@ class PlayMeditationActivity : BaseActivity() {
mBuried ?: "",
""
)
startActivityForResult(
Intent(this, MeditationTimeOffActivity::class.java),
request_code
)
val intent = Intent(this, MeditationTimeOffActivity::class.java)
intent.putExtra("BG_IMAGE_URL",mMediaCoverUrl)
startActivityForResult(intent, request_code)
}
ll_pure_music_time_off.setOnClickListener {
......@@ -466,10 +465,9 @@ class PlayMeditationActivity : BaseActivity() {
mBuried ?: "",
""
)
startActivityForResult(
Intent(this, MeditationTimeOffActivity::class.java),
request_code
)
val intent = Intent(this, MeditationTimeOffActivity::class.java)
intent.putExtra("BG_IMAGE_URL",mMediaCoverUrl)
startActivityForResult(intent, request_code)
}
exo_play.setOnClickListener {
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="4dp" />
<corners android:radius="12dp" />
<solid android:color="#99000000" />
......
......@@ -2,7 +2,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="4dp"/>
<corners android:radius="12dp"/>
<solid android:color="#33E0E0E0"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#282E3F" />
<solid android:color="#FFFFFF" />
<corners
android:topLeftRadius="@dimen/platform_dp_20"
android:topRightRadius="@dimen/platform_dp_20" />
......
......@@ -9,17 +9,17 @@
android:background="#B3000000">
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#CC282E3F" />
<ImageView
android:id="@+id/iv_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#CC282E3F" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
......
......@@ -3,13 +3,19 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#B3000000"
android:id="@+id/root_layout">
<ImageView
android:id="@+id/iv_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FF173F5D"/>
android:scaleType="centerCrop"/>
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#CC282E3F" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
......
......@@ -97,4 +97,10 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<com.github.mmin18.widget.RealtimeBlurView
android:layout_width="match_parent"
android:layout_height="56dp"
app:realtimeBlurRadius="10dp"
app:realtimeOverlayColor="#880000"/>
</FrameLayout>
\ No newline at end of file
......@@ -43,4 +43,8 @@
</style>
</resources>
\ No newline at end of file
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