Commit 6fac90b6 by 范玉宾

UI WalkThrough part2

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