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
Hello Crosslight Support,
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.
What is the purpose of the activities and fragments? Right now, only the fragments are used.
When I add the back button (ShowActionBarUpButton = true) to the detail fragment and try to navigate back to the grid view with the back button (top left corner), the app crashes!
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.
How can I create a custom view for a grid view item?
A quick fix would be nice.
Thanks,
Thomas
Hi Thomas,
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.
Best Regards,Leo
Hi Tomas,
ShowActionBarUpButton not yet supported in FragmentActivity. If you want to used 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. Thank you for the feedback.
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:
<?xml version="1.0" encoding="utf-8"?><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"> <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" /> <ImageView android:id="@+id/ImageView1" android:layout_width="100dp" android:layout_height="100dp" /> </LinearLayout>
protected override int GridItemLayoutId { get { return Resource.Layout.itemgridlayout; } }
itemBinding.AddBinding("TextLabel", BindableProperties.TextProperty, "Name"); itemBinding.AddBinding("ImageView1", BindableProperties.ImageProperty, "ThumbnailImage");
Leo
Hello Leo,
works almost 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.
Back button and slider in detail view would be nice to have.
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