User Profile & Activity

Ryan Herman Member
Page
of 3
Posted: January 20, 2015 1:07 AM

Have you seen anything like this for iOS?

Posted: January 7, 2015 8:42 PM

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_width="match_parent"

        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_gravity="center_horizontal|top"

        android:layout_marginTop="35dp"

        android:background="@drawable/camera" />

    <TextView

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:textAppearance="?android:attr/textAppearanceMedium"

        android:text="Upload a banner"

        android:id="@+id/textView2"

        android:layout_gravity="center_horizontal|top"

        android:layout_marginTop="90dp"

        android:textColor="#ffffffff" />

    <LinearLayout

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:layout_marginTop="120dp"

        android:layout_marginLeft="10dp"

        android:layout_marginRight="10dp"

        android:orientation="vertical">

        <EditText

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:id="@+id/nameofcroud"

            android:hint="Name of Croud"

            android:height="50dp" />

        <EditText

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:id="@+id/description"

            android:hint="Quick description"

            android:height="50dp" />

        <EditText

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:id="@+id/tags"

            android:hint="Tag this Croud"

            android:height="50dp" />

        <Spinner

            android:layout_width="fill_parent"

            android:layout_height="wrap_content"

            android:id="@+id/CroudWhoJoin"

            android:spinnerMode="dialog"

            android:entries="@array/who_post_array"

            android:prompt="@string/who_prompt_string"

            android:text="Who can post?" />

        <Spinner

            android:layout_width="fill_parent"

            android:layout_height="wrap_content"

            android:id="@+id/CroudWhoPost"

            android:spinnerMode="dialog"

            android:entries="@array/who_join_array"

            android:prompt="@string/who_join_string"

            android:text="Who can join?" />

    </LinearLayout>

    <Button

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:text="Done"

        android:id="@+id/DoneButton"

        android:layout_gravity="left|bottom"

        android:layout_marginBottom="20dp"

        android:background="#2596ce"

        android:textColor="#ffffffff"

        android:layout_marginRight="10dp"

        android:layout_marginLeft="10dp" />

    <Button

        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:background="#2596ce"

        android:textColor="#ffffffff"

        android:singleLine="false"

        android:layout_marginRight="20dp" />

</FrameLayout>

Posted: January 6, 2015 11:58 PM

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.

Posted: December 18, 2014 12:32 AM

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?

Posted: December 8, 2014 7:45 PM

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;

 


Posted: December 2, 2014 2:35 AM

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.

Posted: October 15, 2014 7:57 PM

Well its still crashing in iOS when I have ImageMemberPath unset...  So this needs to be fixed.

Posted: October 14, 2014 7:49 PM

Nevermind, it was a fluke that it started scrolling.  It doesn't scroll anymore.

Posted: October 14, 2014 7:01 PM

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.

Posted: October 14, 2014 4:06 AM
iOS crashes with this:  If I uncomment the //ImageMemberPath = "Image", then it doesn't crash but two images are displayed...
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
    }
}

 

All times are GMT -5. The time now is 8:02 AM.
Previous Next