Good afternoon,
i have a SfTextInputLayout inside a SfCard, if i enable the android auto resize if there isn't enough space for the keyboard using the following line:
Xamarin.Forms.Application.Current.On<Xamarin.Forms.PlatformConfiguration.Android>().UseWindowSoftInputModeAdjust(WindowSoftInputModeAdjust.Resize);
the keyboard keeps autoclosing and the user doesn't have the time to write.
My xaml code of the View:
<ScrollView Padding="16">
<StackLayout>
<sfCards:SfCardView SwipeToDismiss="False" Margin="0,20,0,0" HorizontalOptions="Center" WidthRequest="500">
<StackLayout Padding="16">
<Label x:Name="label_SfCardView_NewDatabase_Title"/>
<sfTextInputLayout:SfTextInputLayout x:Name="sfTextInputLayout_SfCardView_NewDatabase_DatabaseName" ContainerType="Outlined" OutlineCornerRadius="5" ReserveSpaceForAssistiveLabels="True" FocusedColor="#007bff" ErrorColor="#dc3545">
<Entry x:Name="entry_SfCardView_NewDatabase_DatabaseName"/>
</sfTextInputLayout:SfTextInputLayout>
<sfTextInputLayout:SfTextInputLayout x:Name="sfTextInputLayout_SfCardView_NewDatabase_DatabasePath" ContainerType="Outlined" OutlineCornerRadius="5" ReserveSpaceForAssistiveLabels="False" FocusedColor="#007bff" ErrorColor="#dc3545" LeadingViewPosition="Inside" IsVisible="False">
<sfTextInputLayout:SfTextInputLayout.LeadingView>
<ImageButton x:Name="imageButton_SfCardView_NewDatabase_BrowseFolder" HeightRequest="20" Aspect="AspectFit" Source="glyphicons_145_folder_open.png" Clicked="ImageButton_SfCardView_NewDatabase_BrowseFolder_Clicked"/>
</sfTextInputLayout:SfTextInputLayout.LeadingView>
<Editor x:Name="editor_SfCardView_NewDatabase_DatabasePath" IsEnabled="False" AutoSize="TextChanges"/>
</sfTextInputLayout:SfTextInputLayout>
<sfButtons:SfButton x:Name="sfButton_SfCardView_NewDatabase_Confirm" Margin="0,16" CornerRadius="5" HeightRequest="40" BackgroundColor="#007bff" Clicked="SfButton_SfCardView_NewDatabase_Confirm_Clicked" Text="Confirm"/>
</StackLayout>
</sfCards:SfCardView>
</StackLayout>
</ScrollView>
is a view inside a Grid in a SfNavigationDrawer inside a SfTabItem:
<sfTabView:SfTabItem.Content>
<sfNavigationDrawer:SfNavigationDrawer x:Name="sfNavigationDrawer_Database" BackgroundColor="White" TouchThreshold="50" DrawerHeaderHeight="50" DrawerFooterHeight="0" Duration="200" Position="Left" Transition="SlideOnTop" EnableSwipeGesture="False">
<sfNavigationDrawer:SfNavigationDrawer.ContentView>
<Grid BackgroundColor="White">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackLayout BackgroundColor="#1aa1d6" Orientation="Horizontal" HeightRequest="50">
<Image StyleId="image_Database_Hamburger" HeightRequest="40" Aspect="AspectFit" HorizontalOptions="Center" VerticalOptions="Center" WidthRequest="40" Source="glyphicons_517_menu_hamburger.png" Margin="10,0,0,0">
<Image.GestureRecognizers>
<TapGestureRecognizer Tapped="Image_Database_Hamburger_Tapped" />
</Image.GestureRecognizers>
</Image>
<Label x:Name="label_Database_ViewCaption" HeightRequest="50" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" FontSize="16" TextColor="White"/>
</StackLayout>
<Grid x:Name="grid_SfNavigationDrawer_Database_Content" Grid.Row="1"></Grid>
</Grid>
</sfNavigationDrawer:SfNavigationDrawer.ContentView>
........................
You can find a video attached.
Thanks in advance
Attachment:
20191118_160808_5aa34b26.7z