iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I'm having multiple problems with Android Text Fields. Sometimes they can't be selected, then I clean the build and re-run and it works. Other times I can put data to them but if I open up the Camera Media Select option and come back it again prevents me from selecting them.
I tried to reproduce the reported problem in my end by installing app of Crosslight MvvmSamples project on Android device (Nexus 4 running on Android version 4.4.4) but my efforts were not successful -- everything worked smoothly and the Text Fields was accessed without any issues.
I am willing to asisst you further but in order to do so I would need you to elaborate on your specific scenario and possibly give me a step-by-step guide (or simple sample) that I can use to observe the problematic behavior.
Following information should helps to identify what may cause the problem.
I'm using the latest Crosslight 3 on Nexus 6 and Android Emulators running 4.4. I'm 99% it has to do with my bindings and the NextInputFocus.
#region Template Instruction /* To use this template you need to add the binding definition for your view. * * To learn more how to use this template, see http://developer.intersoftpt.com/display/crosslight/Using+Crosslight+Item+Templates */ #endregion using Intersoft.Crosslight; namespace Incroud.BindingProviders { public class CreateCroudBindingProvider : BindingProvider { #region Constructors public CreateCroudBindingProvider() { AddBinding("DoneButton", BindableProperties.CommandProperty, "DoneCommand"); AddBinding("CancelButton", BindableProperties.CommandProperty, "CancelCommand"); AddBinding("selectBanner", BindableProperties.CommandProperty, "SelectCommand"); AddBinding("selectBanner", BindableProperties.NextInputFocusProperty, "nameofcroud"); AddBinding("SelectedBackground", BindableProperties.ImageProperty, "SelectedBackground"); AddBinding("nameofcroud", BindableProperties.TextProperty, "CroudName", BindingMode.TwoWay); AddBinding("nameofcroud", BindableProperties.HideKeyboardOnReturnProperty, true, true); AddBinding("nameofcroud", BindableProperties.NextInputFocusProperty, "description", true); AddBinding("description", BindableProperties.TextProperty, "CroudDescription", BindingMode.TwoWay); AddBinding("description", BindableProperties.HideKeyboardOnReturnProperty, true, true); AddBinding("description", BindableProperties.NextInputFocusProperty, "tags", true); AddBinding("tags", BindableProperties.TextProperty, "CroudTags", BindingMode.TwoWay); AddBinding("tags", BindableProperties.HideKeyboardOnReturnProperty, true, true); AddBinding("tags", BindableProperties.NextInputFocusProperty, "CroudWhoJoin", true); } #endregion } }
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minWidth="300dp"
android:minHeight="450dp">
<ImageView
android:layout_height="120dp"
android:id="@+id/SelectedBackground"
android:layout_gravity="left|top"
android:background="#29343a"
android:scaleType="fitXY" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Set up a Croud"
android:id="@+id/textView"
android:layout_gravity="center_horizontal|top"
android:textColor="#ffffffff" />
<Button
android:layout_width="80dp"
android:layout_height="61dp"
android:id="@+id/selectBanner"
android:layout_marginTop="35dp"
android:background="@drawable/camera" />
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Upload a banner"
android:id="@+id/textView2"
android:layout_marginTop="90dp"
<LinearLayout
android:layout_marginTop="120dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:orientation="vertical">
<EditText
android:id="@+id/nameofcroud"
android:hint="Name of Croud"
android:height="50dp" />
android:id="@+id/description"
android:hint="Quick description"
android:id="@+id/tags"
android:hint="Tag this Croud"
<Spinner
android:layout_width="fill_parent"
android:id="@+id/CroudWhoJoin"
android:spinnerMode="dialog"
android:entries="@array/who_post_array"
android:prompt="@string/who_prompt_string"
android:text="Who can post?" />
android:id="@+id/CroudWhoPost"
android:entries="@array/who_join_array"
android:prompt="@string/who_join_string"
android:text="Who can join?" />
</LinearLayout>
android:text="Done"
android:id="@+id/DoneButton"
android:layout_gravity="left|bottom"
android:layout_marginBottom="20dp"
android:background="#2596ce"
android:textColor="#ffffffff"
android:layout_marginLeft="10dp" />
style="?android:attr/buttonStyleSmall"
android:layout_width="88dp"
android:layout_height="35dp"
android:text="Cancel"
android:id="@+id/CancelButton"
android:layout_gravity="center|bottom|right"
android:layout_marginBottom="27dp"
android:singleLine="false"
android:layout_marginRight="20dp" />
</FrameLayout>
I created a simple Crosslight project based on the provided Layout and BindingProvider; then deploy the app to Nexus 4 (running Android 4.4.4).
The reported problem is reproducible in my local end. I noticed that the difficulties to select the edit text happen when there are two cursor appearing at the same time.
I have forwarded this problem to Crosslight development team. It is filed under CROS-687. I will keep you updated with any news I heard from the team regarding CROS-687.
Edited on February 5, 2015 2:30 AMReason: provide link to nightly build of Crosslight 3
I'd like to inform you that nightly build of Crosslight which resolves CROS-687 is now available in here. Please have the nightly build evaluated on your end and let me know if the problem still persist.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname