Commit 52cea639 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

fixed album background

parent 844bf393
...@@ -34,6 +34,7 @@ import io.reactivex.Observable ...@@ -34,6 +34,7 @@ import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.android.schedulers.AndroidSchedulers
import jp.wasabeef.glide.transformations.BlurTransformation import jp.wasabeef.glide.transformations.BlurTransformation
import jp.wasabeef.glide.transformations.ColorFilterTransformation import jp.wasabeef.glide.transformations.ColorFilterTransformation
import jp.wasabeef.glide.transformations.CropTransformation
import timber.log.Timber import timber.log.Timber
import java.util.concurrent.TimeUnit import java.util.concurrent.TimeUnit
import javax.inject.Inject import javax.inject.Inject
...@@ -289,9 +290,9 @@ class AlbumsScreenController : ...@@ -289,9 +290,9 @@ class AlbumsScreenController :
private fun loadGlideBlurred(url:String, context: Context, drawable: Target<Drawable>) = private fun loadGlideBlurred(url:String, context: Context, drawable: Target<Drawable>) =
Glide.with(context) Glide.with(context)
.load(url) .load(url)
.centerCrop() .transform(CropTransformation(nestedScrollView.width,nestedScrollView.height)
.transform(BlurTransformation(13, 8)) ,BlurTransformation(8, 1)
.transform(ColorFilterTransformation(0xCC000000.toInt())) ,ColorFilterTransformation(0xCC000000.toInt()))
.into(drawable) .into(drawable)
override fun onAlbumSelected(): Observable<AlbumPreviewModel> override fun onAlbumSelected(): Observable<AlbumPreviewModel>
......
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@color/colorOpacityBackground"> android:background="@color/colorOpacityBackground"
>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_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