This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<com.google.android.material.appbar.AppBarLayout | |
android:id="@+id/AppBarLayout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class ContainerFragment<TViewModel> : MvxFragment<TViewModel> | |
where TViewModel : class, IMvxViewModel | |
{ | |
private Toolbar _toolbar; | |
protected abstract int LayoutResourceId { get; } | |
protected virtual bool HasBackButton => false; | |
public string Title |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class ContainerSplitFragment<TViewModel> : MvxFragment<TViewModel> where TViewModel : class, IMvxViewModel | |
{ | |
protected ContainerSplitFragment() | |
{ | |
/* Required constructor */ | |
} | |
protected ContainerSplitFragment(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer) | |
{ | |
/* Required constructor */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:baselineAligned="false" | |
android:orientation="horizontal" | |
android:divider="?android:dividerVertical" | |
android:showDividers="middle" | |
android:weightSum="3"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.fragment.app.FragmentContainerView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/FragmentContainerView" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Activity] | |
[MvxActivityPresentation] | |
public sealed class ContainerActivity : MvxActivity<ContainerActivity.ContainerViewModel> | |
{ | |
public sealed class ContainerViewModel : MvxNullViewModel | |
{ | |
} | |
public ContainerActivity() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ViewModel : MvxViewModel | |
{ | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
public string Email { get; set; } | |
public override void ViewAppeared() | |
{ | |
base.ViewAppeared(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ViewModel : MvxViewModel | |
{ | |
private string _firstName; | |
private string _lastName; | |
private string _email; | |
public string FirstName | |
{ | |
get => _firstName; | |
set |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringValueCombiner : MvxValueCombiner | |
{ | |
public override Type SourceType(IEnumerable<IMvxSourceStep> steps) | |
{ | |
return typeof(string); | |
} | |
public override bool TryGetValue(IEnumerable<IMvxSourceStep> steps, out object value) | |
{ | |
var sourceSteps = steps as IMvxSourceStep[] ?? steps.ToArray(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Setup : MvxIosSetup<App> | |
{ | |
protected override IMvxIosViewsContainer CreateIosViewsContainer() | |
{ | |
return new ViewsContainer(); | |
} | |
} |
NewerOlder