﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - Crosslight GridView Sample</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-GridView-Sample/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Crosslight GridView Sample</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-GridView-Sample/</link><pubDate>Mon, 23 Mar 2015 10:33:53 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;&lt;p&gt;Thanks for your suggestion. Please understand that android grid sample is a "feature sample". Different with "reference sample" that will explore crosslight ability, "feature sample" was intended to demonstrate a spesific feature, in this case is android grid fragment feature, in a simple way. Still, I will forward your suggestion to production team so they will note your suggestion as a consideration.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;/p&gt;</description></item><item><title>Crosslight GridView Sample</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-GridView-Sample/</link><pubDate>Fri, 20 Mar 2015 08:26:49 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Leo,&lt;/p&gt;&lt;p&gt;works almost&amp;nbsp;as described. With android:clickable and android:focusable set, the navigation does not work when clicking on a grid item. After removing these attributes it worked.&lt;/p&gt;&lt;p&gt;Back button and slider in detail view would be nice to have.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight GridView Sample</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-GridView-Sample/</link><pubDate>Mon, 16 Mar 2015 07:30:31 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Tomas,&lt;/p&gt;&lt;p&gt;ShowActionBarUpButton not yet supported in FragmentActivity. If you want to used&amp;nbsp;ShowActionBarUpButton, please change the ItemDetail fragment to Activity. I have modified the sample as per thing you have point out. As for slider in the detail view, I will discuss with team to enhance our sample as your suggestion.&amp;nbsp;&lt;span style="font-size: 10pt;"&gt;Thank you for the feedback.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;About custom layout, You could set custom layout by overriding "GridItemLayoutId" to the layout you want. The following are an example to used custome layout:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;Create a new android layout. example:&amp;nbsp;&lt;/span&gt;itemgridlayout with the following content:&lt;br&gt;&lt;pre&gt;&lt;linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="16dp" android:orientation="vertical"&gt;&lt;textview android:text="Text" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/TextLabel" android:lines="1"&gt;&lt;imageview android:src="@android:drawable/ic_menu_gallery" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/imageView"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:padding="4dp"
    android:clickable="true"
    android:focusable="true"&amp;gt;
  &amp;lt;TextView
      android:id="@+id/TextLabel"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="4dp"
      android:gravity="center"
      android:textSize="12sp" /&amp;gt;
  &amp;lt;ImageView
      android:id="@+id/ImageView1"
      android:layout_width="100dp"
      android:layout_height="100dp" /&amp;gt;
&amp;lt;/LinearLayout&amp;gt;
&lt;/imageview&gt;&lt;/textview&gt;&lt;/linearlayout&gt;&lt;/pre&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;On Activity, please override&amp;nbsp;GridItemLayoutId as the following:&lt;br&gt;&lt;pre&gt;protected override int GridItemLayoutId
{
   get
   {
      return Resource.Layout.itemgridlayout;
   }
}&lt;/pre&gt;&lt;br&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;Don't forget to bind each view of your custom layout. example: (note: itemBinding is&amp;nbsp;&lt;/span&gt;ItemBindingDescription&lt;span style="font-size: 10pt;"&gt;)&lt;/span&gt;&lt;br&gt;&lt;pre style="font-size: 10pt;"&gt;itemBinding.AddBinding("TextLabel", BindableProperties.TextProperty, "Name");
itemBinding.AddBinding("ImageView1", BindableProperties.ImageProperty, "ThumbnailImage");&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;That should do it.&lt;div&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 10pt;"&gt;Best Regards,&lt;/span&gt;&lt;p&gt;Leo&lt;/p&gt;&lt;/div&gt;</description></item><item><title>Crosslight GridView Sample</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-GridView-Sample/</link><pubDate>Fri, 13 Mar 2015 12:01:14 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Crosslight Support,&lt;/p&gt;&lt;p&gt;I just had a look at the new gridview sample for Android. The sample looks kind of incomplete to me. In some comments special behaviour for tablet is mentoined, but the sample looks the same on phone and tablet. In the bindings "TableView" is used instead of "GridView". It looks like copy and paste work.&lt;/p&gt;&lt;p&gt;What is the purpose of the activities and fragments? Right now, only the fragments are used.&lt;/p&gt;&lt;p&gt;When I add the back button (ShowActionBarUpButton = true) to the detail&amp;nbsp;fragment and try to navigate back to the grid view with the back&amp;nbsp;button (top left corner), the app crashes!&lt;/p&gt;&lt;p&gt;It would be nice to have a slider in the detail view so that the user can slide through the items. Can you enhance the sample with this.&lt;/p&gt;&lt;p&gt;How can I create a custom view for a grid view item?&lt;/p&gt;&lt;p&gt;A quick fix would be nice.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>