mirror of
https://github.com/zoriya/Opus.git
synced 2026-06-02 14:15:11 +00:00
Adding prototype for a sync error menu.
This commit is contained in:
@@ -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);
|
||||
|
||||
Generated
+389
-377
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user