mirror of
https://github.com/zoriya/Opus.git
synced 2025-12-06 06:26:15 +00:00
Making queue items readables.
This commit is contained in:
@@ -188,7 +188,7 @@ namespace MusicApp
|
|||||||
Allocation input = Allocation.CreateFromBitmap(rs, blured);
|
Allocation input = Allocation.CreateFromBitmap(rs, blured);
|
||||||
Allocation output = Allocation.CreateTyped(rs, input.Type);
|
Allocation output = Allocation.CreateTyped(rs, input.Type);
|
||||||
ScriptIntrinsicBlur blurrer = ScriptIntrinsicBlur.Create(rs, Element.U8_4(rs));
|
ScriptIntrinsicBlur blurrer = ScriptIntrinsicBlur.Create(rs, Element.U8_4(rs));
|
||||||
blurrer.SetRadius(10);
|
blurrer.SetRadius(13);
|
||||||
blurrer.SetInput(input);
|
blurrer.SetInput(input);
|
||||||
blurrer.ForEach(output);
|
blurrer.ForEach(output);
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ using Android.Content.Res;
|
|||||||
using Android.Graphics;
|
using Android.Graphics;
|
||||||
using Android.Support.Design.Widget;
|
using Android.Support.Design.Widget;
|
||||||
using Android.Support.V7.Widget;
|
using Android.Support.V7.Widget;
|
||||||
|
using Android.Text;
|
||||||
|
using Android.Text.Style;
|
||||||
using Android.Views;
|
using Android.Views;
|
||||||
using Android.Widget;
|
using Android.Widget;
|
||||||
using MusicApp.Resources.values;
|
using MusicApp.Resources.values;
|
||||||
@@ -153,8 +155,12 @@ namespace MusicApp.Resources.Portable_Class
|
|||||||
holder.Artist.SetBackgroundResource(0);
|
holder.Artist.SetBackgroundResource(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
holder.Title.Text = song.Title;
|
SpannableString titleText = new SpannableString(song.Title);
|
||||||
holder.Artist.Text = song.Artist;
|
titleText.SetSpan(new BackgroundColorSpan(Color.ParseColor("#8C000000")), 0, song.Title.Length, SpanTypes.InclusiveInclusive);
|
||||||
|
holder.Title.TextFormatted = titleText;
|
||||||
|
holder.Title.SetMaxLines(2);
|
||||||
|
|
||||||
|
holder.Artist.Visibility = ViewStates.Gone;
|
||||||
|
|
||||||
if (song.AlbumArt == -1 || song.IsYt)
|
if (song.AlbumArt == -1 || song.IsYt)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -53,15 +53,14 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Playing"
|
|
||||||
android:textSize="11dp"
|
android:textSize="11dp"
|
||||||
android:id="@+id/status"
|
android:id="@id/status"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
android:textColor="#f4511e"
|
android:textColor="#f4511e"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:paddingRight="55dp"
|
android:paddingRight="20dp"
|
||||||
android:paddingBottom="15dp" />
|
android:paddingBottom="10dp" />
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@@ -70,7 +69,7 @@
|
|||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:id="@+id/rightButtons">
|
android:id="@+id/rightButtons">
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/youtubeIcon"
|
android:id="@+id/youtubeIcon"Making
|
||||||
android:layout_width="30dp"
|
android:layout_width="30dp"
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
|
|||||||
Reference in New Issue
Block a user