This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Added repro sample * Fixed SwipeViewItem size * Fix the issue
- Loading branch information
1 parent
8fc193d
commit ee7a5a6
Showing
5 changed files
with
263 additions
and
27 deletions.
There are no files selected for viewing
85 changes: 85 additions & 0 deletions
85
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue12582.xaml
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,85 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<local:TestContentPage xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:d="http://xamarin.com/schemas/2014/forms/design" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="using:Xamarin.Forms.Controls" | ||
mc:Ignorable="d" | ||
Title="Test 12582" | ||
x:Class="Xamarin.Forms.Controls.Issues.Issue12582"> | ||
<Grid | ||
RowSpacing="0"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<Label | ||
Padding="12" | ||
BackgroundColor="Black" | ||
TextColor="White" | ||
Text="If can scroll the ScrollView inside the SwipeView, the test has passed."/> | ||
<SwipeView | ||
Grid.Row="1" | ||
BackgroundColor="Transparent"> | ||
<SwipeView.TopItems> | ||
<SwipeItems | ||
Mode="Execute" | ||
SwipeBehaviorOnInvoked="Close"> | ||
<SwipeItemView | ||
HeightRequest="100"> | ||
<Grid | ||
BackgroundColor="LawnGreen"> | ||
<Label | ||
Text="Refresh" | ||
FontSize="Large" | ||
HorizontalOptions="Center" | ||
VerticalOptions="Center"/> | ||
</Grid> | ||
</SwipeItemView> | ||
</SwipeItems> | ||
</SwipeView.TopItems> | ||
<SwipeView.Content> | ||
<Grid | ||
RowSpacing="0" | ||
BackgroundColor="White"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="10*"/> | ||
<RowDefinition Height="60*"/> | ||
<RowDefinition Height="30*"/> | ||
</Grid.RowDefinitions> | ||
<!--HEADER--> | ||
<StackLayout | ||
Grid.Row="0" Padding="20" BackgroundColor="Red"> | ||
<Label | ||
Text="HEADER" | ||
HorizontalOptions="Center"/> | ||
</StackLayout> | ||
<!--BODY--> | ||
<ScrollView Grid.Row="1" BackgroundColor="Blue"> | ||
<StackLayout Spacing="20" Padding="15"> | ||
<Label Text="Dummy Text: 1" FontSize="Medium" Padding="12"/> | ||
<Label Text="Dummy Text: 2" FontSize="Medium" Padding="12"/> | ||
<Label Text="Dummy Text: 3" FontSize="Medium" Padding="12"/> | ||
<Label Text="Dummy Text: 4" FontSize="Medium" Padding="12"/> | ||
<Label Text="Dummy Text: 5" FontSize="Medium" Padding="12"/> | ||
<Label Text="Dummy Text: 6" FontSize="Medium" Padding="12"/> | ||
<Label Text="Dummy Text: 7" FontSize="Medium" Padding="12"/> | ||
<Label Text="Dummy Text: 8" FontSize="Medium" Padding="12"/> | ||
<Label Text="Dummy Text: 9" FontSize="Medium" Padding="12"/> | ||
<Label Text="Dummy Text: 10" FontSize="Medium" Padding="12"/> | ||
<Label Text="Dummy Text: 11" FontSize="Medium" Padding="12"/> | ||
<Label Text="Dummy Text: 12" FontSize="Medium" Padding="12"/> | ||
</StackLayout> | ||
</ScrollView> | ||
<!--FOOTER--> | ||
<StackLayout | ||
Grid.Row="2" Padding="20" BackgroundColor="Red"> | ||
<Label | ||
Text="FOOTER" | ||
HorizontalOptions="Center"/> | ||
</StackLayout> | ||
</Grid> | ||
</SwipeView.Content> | ||
</SwipeView> | ||
</Grid> | ||
</local:TestContentPage> |
30 changes: 30 additions & 0 deletions
30
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue12582.xaml.cs
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 @@ | ||
using Xamarin.Forms.CustomAttributes; | ||
using Xamarin.Forms.Internals; | ||
|
||
#if UITEST | ||
using Xamarin.UITest; | ||
using NUnit.Framework; | ||
using Xamarin.Forms.Core.UITests; | ||
#endif | ||
|
||
namespace Xamarin.Forms.Controls.Issues | ||
{ | ||
[Preserve(AllMembers = true)] | ||
[Issue(IssueTracker.Github, 12582, | ||
"[Bug] ScrollView inside SwipeView", | ||
PlatformAffected.Android)] | ||
public partial class Issue12582 : TestContentPage | ||
{ | ||
public Issue12582() | ||
{ | ||
#if APP | ||
InitializeComponent(); | ||
#endif | ||
} | ||
|
||
protected override void Init() | ||
{ | ||
|
||
} | ||
} | ||
} |
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
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