Adding prototype for a sync error menu.

This commit is contained in:
Tristan Roux
2019-04-28 18:40:40 +02:00
parent e7c629d717
commit 6bbddb43f0
3 changed files with 429 additions and 377 deletions
+7
View File
@@ -69,6 +69,8 @@ namespace Opus.Fragments
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
if(useHeader)
CreateHeader();
if (item.SyncState == SyncState.Error)
CreateSyncBanner();
return view;
}
@@ -108,6 +110,11 @@ namespace Opus.Fragments
Activity.FindViewById(Resource.Id.collapsingToolbar).RequestLayout();
}
//void CreateSyncBanner()
//{
// MainActivity.instance.FindViewById(Resource.Id.banner).Visibility = ViewStates.Visible;
//}
void HeaderPlay(object sender, System.EventArgs e)
{
PlaylistManager.PlayInOrder(item);
+389 -377
View File
File diff suppressed because it is too large Load Diff
+33
View File
@@ -65,6 +65,39 @@
android:visibility="gone" />
</android.support.design.widget.AppBarLayout>
<!--Banner for the sync error in the playlist track menu-->
<!--<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:id="@+id/banner"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/bannerText"
android:paddingHorizontal="10dp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:id="@+id/bannerBtn1" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:id="@+id/bannerBtn2" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#000" />
</LinearLayout>-->
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/contentRefresh"
app:layout_behavior="@string/appbar_scrolling_view_behavior"