This commit is contained in:
Oleksandr Liakhevych 2022-04-30 21:36:06 +03:00
Родитель d5e108008f
Коммит 8ffe632cbe
3 изменённых файлов: 15 добавлений и 17 удалений

Просмотреть файл

@ -3,23 +3,21 @@
@page "/collectionviewplayground/infinite-scroll"
<ContentPage Title="Infinite scroll">
<StackLayout>
<CollectionView ItemsSource="_intItems"
RemainingItemsThreshold="2"
OnRemainingItemsThresholdReached="LoadItems">
<Header>
<Label Text="Scroll to load more items." />
</Header>
<CollectionView ItemsSource="_intItems"
RemainingItemsThreshold="2"
OnRemainingItemsThresholdReached="LoadItems">
<Header>
<Label Text="Scroll to load more items." />
</Header>
<ItemTemplate>
<Item Value="@context" />
</ItemTemplate>
<ItemTemplate>
<Item Value="@context" />
</ItemTemplate>
<Footer>
<ActivityIndicator IsRunning="_loading" />
</Footer>
</CollectionView>
</StackLayout>
<Footer>
<ActivityIndicator IsRunning="_loading" />
</Footer>
</CollectionView>
</ContentPage>
@code {

Просмотреть файл

@ -7,7 +7,7 @@ using Android.OS;
namespace HybridAuthSample
{
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)]
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, Exported = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)]
public class MainActivity : MauiAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)

Просмотреть файл

@ -10,7 +10,7 @@ namespace Microsoft.MobileBlazorBindings.Authentication
/// <summary>
/// Handles callback for authentication on Android.
/// </summary>
[Activity(NoHistory = true, LaunchMode = LaunchMode.SingleTop)]
[Activity(NoHistory = true, LaunchMode = LaunchMode.SingleTop, Exported = true)]
[IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.CategoryDefault, Intent.CategoryBrowsable }, DataScheme = "app")]
public class WebAuthenticationCallbackActivity : Maui.Authentication.WebAuthenticatorCallbackActivity
{