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
Have you seen anything like this for iOS?
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 noticed this has to be an activity. Is there anyway to get this to work with the slide out drawer in Crosslight that only accepts fragments? When I try to use it as a fragment I get a binary error on the inflation.
The textbox I use never gets an actual focus it is a placeholder that I use to set the value in native. What other way can you think of to grab the data out of the textbox?
This only helps one case, but what if I need to modify the image nativaley after it is set?
Like do the following:
UserImage.Layer.MasksToBounds = true; UserImage.Layer.CornerRadius = UserImage.Frame.Height/2;
I noticed BLUR View was added but how do I do Translucent Views? I have my modal coming up and its blurred but I need it transparent. Everytime I pop up the modal, it comes up as transparent, then the view with clear goes black. When the view closes it reloads the entire back view.
If I have the Blur View set, it doesn't reload the entire back view which is what I need but without a blur effect.
Well its still crashing in iOS when I have ImageMemberPath unset... So this needs to be fixed.
Nevermind, it was a fluke that it started scrolling. It doesn't scroll anymore.
I got it all working on iOS on another view but I noticed another problem. I'm loading the images via async await via the loadservice.LoadImageAsync. The Table populates but it doesn't scroll I think because it doesn't get the count correctly because of the await? I only speculate this because I see the foot load while the images are downloading...
FIXED - I added another Item to the list and now it scrolls properly! So it had to do with the the cells being very large and the table not realizing it so the footer wasn't showing.
using Intersoft.Crosslight; namespace IncroudRadio.BindingProviders { public class NavigationBindingProvider : BindingProvider { #region Constructors public NavigationBindingProvider() { var itemBinding = new ItemBindingDescription { // DisplayMemberPath = "Title", NavigateMemberPath = "Target", //ImageMemberPath = "Image", }; AddBinding("TableView", BindableProperties.ItemsSourceProperty, "Items"); AddBinding("TableView", BindableProperties.ItemTemplateBindingProperty, itemBinding, true); AddBinding("TableView", BindableProperties.SelectedItemProperty, "SelectedItem", BindingMode.TwoWay); itemBinding.AddBinding("Title", BindableProperties.TextProperty, "Title"); itemBinding.AddBinding("Image", BindableProperties.ImageSourceProperty, "Image"); } #endregion } }
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