-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from muak/fix/headerview
Fix iOS Header/FooterView Recycle
- Loading branch information
Showing
10 changed files
with
115 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="jp.kamusoft.settingsview" android:versionCode="1" android:versionName="1.0"> | ||
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true" android:label="Sample"></application> | ||
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:supportsRtl="true" android:label="Sample"></application> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-sdk android:minSdkVersion="27" android:targetSdkVersion="31" /> | ||
<uses-sdk android:minSdkVersion="27" android:targetSdkVersion="33" /> | ||
</manifest> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace Sample.ViewModels; | ||
|
||
public class ListViewModel: BindableBase | ||
{ | ||
public ObservableCollection<string> ItemsSource { get; set; } | ||
|
||
public ListViewModel() | ||
{ | ||
var list = new List<string> | ||
{ | ||
"Item1","Item2","Item3","Item4","Item5","Item6","Item7","Item8","Item9","Item10", | ||
"Item11","Item12","Item13","Item14","Item15","Item16","Item17","Item18","Item19","Item20", | ||
}; | ||
|
||
ItemsSource = new ObservableCollection<string>(list); | ||
} | ||
} | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:sv="clr-namespace:AiForms.Settings;assembly=SettingsView" | ||
x:Class="Sample.Views.ListPage" | ||
Title="ListPage"> | ||
|
||
<sv:SettingsView ItemsSource="{Binding ItemsSource}"> | ||
<sv:SettingsView.ItemTemplate> | ||
<DataTemplate> | ||
<sv:Section> | ||
<sv:Section.HeaderView> | ||
<Grid> | ||
<!--TODO:Image修正--> | ||
<ImageButton Source="ic_close" | ||
WidthRequest="30" HeightRequest="30" | ||
VerticalOptions="Center" HorizontalOptions="End" | ||
Padding="0" /> | ||
</Grid> | ||
</sv:Section.HeaderView> | ||
|
||
<sv:LabelCell Title="{Binding}" /> | ||
</sv:Section> | ||
</DataTemplate> | ||
</sv:SettingsView.ItemTemplate> | ||
|
||
</sv:SettingsView> | ||
|
||
</ContentPage> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Sample.Views; | ||
|
||
public partial class ListPage : ContentPage | ||
{ | ||
public ListPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
This file contains 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
This file contains 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