TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anji V
NA
98
29k
entry field unfocused method not working properly in android
Nov 2 2018 1:15 PM
Entry field unfocused method not working properly in android versions oreo and pie using xamarin forms.
I have two entry fields(ent1,ent2) with have unfocused events, both are using for updatable .
android versions oreo and pie
<controls:RoundedEntry x:Name="Entry1" BorderColor="LightGray" Keyboard="Numeric"
ReturnCommandParameter="{Binding EmployeeId}" Unfocused="Entry1_Unfocused"
IsEnabled="{Binding isEntry1Editable}" WidthRequest="30"
VerticalOptions="CenterAndExpand" FontSize="Medium" Text="{Binding Entry1text}">
<controls:RoundedEntry x:Name="Entry2" BorderColor="LightGray" Keyboard="Numeric"
ReturnCommandParameter="{Binding ManagerId}" Unfocused="Entry2_Unfocused"
IsEnabled="{Binding isEntry2Editable}" WidthRequest="30"
VerticalOptions="CenterAndExpand" FontSize="Medium" Text="{Binding Entry2text}">
private void Entry1_Unfocused(object sender, FocusEventArgs e)
{
Entry entry = (Entry)sender;
EmployeeId= Convert.ToInt32(entry.ReturnCommandParameter),
var FirstItemVal = Convert.ToInt64(entry.Text)
UpdateFirstItem(FirstItemVal,EmployeeId);
}
private void Entry2_Unfocused(object sender, FocusEventArgs e)
{
Entry entry = (Entry)sender;
ManagerId= Convert.ToInt32(entry.ReturnCommandParameter),
var SecoendItemVal = Convert.ToInt64(entry.Text)
UpdateFirstItem(SecoendItemVal,ManagerId);
}
when using
android versions
Oreo 8.1 and Pie 9.0 is not working.
Example:-entry1 is disable mode and enter value into the entry2 automatically the focus will hit on entry1 and it is enable mode.
Thhanks in Advance.
Reply
Answers (
0
)
How to make Retrofit execute methods in exact order?
XAMARIN ANDROID C# EXPORT SMS TO CSV