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

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

@ -7,7 +7,7 @@ using Android.OS;
namespace HybridAuthSample 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 public class MainActivity : MauiAppCompatActivity
{ {
protected override void OnCreate(Bundle savedInstanceState) protected override void OnCreate(Bundle savedInstanceState)

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

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