Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

when we focus on entry or editor keyboard appears and it is hiding entry in xamarin.forms ios

$
0
0

Hi
when we focus on entry keyboard is hiding entry .for that i have installed Xam.Plugins.Forms.KeyboardOverlap plugin in ios .it was resolved my issue
But because of that another issue is raised i.e i have Listview in the same page with multiple items when keyboard appears first messages going up(means hiding)when we unfocus again they are appearing.

this is my xaml code

 <StackLayout x:Name="ChatStack" IsVisible="False" Padding="5,5,5,5">
        <StackLayout  HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" BackgroundColor="Transparent">
            <ListView x:Name="messageList" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" HasUnevenRows="True" BackgroundColor='Transparent'
               SeparatorVisibility="None" ItemTemplate="{StaticResource MessageTemplateSelector}" ItemTapped ="MessageList_ItemSelected"   GroupDisplayBinding = "{Binding Key,Converter={StaticResource DateConverter}}" 
            IsGroupingEnabled ="True">
                    <ListView.GroupHeaderTemplate>
                        <DataTemplate>
                            <ViewCell>
                                <Frame CornerRadius="10" HasShadow="False"  VerticalOptions="CenterAndExpand"  HorizontalOptions="Center" BackgroundColor="#D1EBF8" Padding="10,10,10,10">
                                <StackLayout>
                                <Label Text="{Binding Key, Converter={StaticResource DateConverter}}"  BackgroundColor="#D1EBF8" 
                               TextColor="#6C808B"  
                               FontSize="Small"  
                               VerticalOptions="CenterAndExpand"  HorizontalOptions="Center" HorizontalTextAlignment="Center"/>
                                </StackLayout>
                                </Frame>

                            </ViewCell>
                        </DataTemplate>
                    </ListView.GroupHeaderTemplate>

                </ListView>


        </StackLayout>
            <StackLayout x:Name="MessageEntry" Orientation="Horizontal" HorizontalOptions="FillAndExpand" Spacing="0" >
                <Frame IsClippedToBounds="True" OutlineColor="Gray" CornerRadius="15" Padding="5,0,4,2" HasShadow="False" HorizontalOptions="FillAndExpand" >

                    <StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="End" Padding="6,0,4,0" HeightRequest="60" Orientation="Horizontal">
                        <local21:MyEditor x:Name="message_entry" TextColor="Black" Placeholder = "Enter your message" PlaceholderColor="Gray" Text="{Binding ChatMessage.Message}"  BackgroundColor ="White"  HeightRequest="35" HorizontalOptions="FillAndExpand" />
                        <Button Image="Wcam.png"  BackgroundColor = "Transparent" BorderRadius="5" CornerRadius="5"  Opacity = "5" WidthRequest ="30" HeightRequest="15" HorizontalOptions="End" Command="{Binding SendImageCommand}" />
                    </StackLayout>
                </Frame>
                <Button Image="Wsend.png"  BackgroundColor = "Transparent"  Opacity = "5" WidthRequest ="40" HeightRequest="60" HorizontalOptions="End" Command="{Binding SendMessageCommand}"/>
            </StackLayout>
        </StackLayout>

can anyone please help me to resolve this.for more details please see below images

thank you


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>