Apr 12, 2020 Replies: 5 Just another Grid view main features - Support custom layouts - Can handle any number of items - Support Right to left - Adjustable items count per row - Divider size zGridView Author: Karim Ezzat Version: 0.1 zGridview Events: ItemClick (Index As Int, Value As Object) ItemLongClick (Index As Int, Value As Object) PanelRequested (Index As Int) Fields: _rowcount As int _offscreenrows As int _divider As int _righttoleft As boolean _itemsize As int Methods: IsInitialized As boolean Tests whether the object has been initialized. _asview As anywheresoftware.b4a.objects.ConcreteViewWrapper Returns a view object that holds the list. _class_globals As String _clear As String Clear the list _designercreateview (base As anywheresoftware.b4a.objects.PanelWrapper, lbl As anywheresoftware.b4a.objects.LabelWrapper, props As anywheresoftware.b4a.objects.collections.Map) As String _getloadedpanel (Index As int) As anywheresoftware.b4a.objects.PanelWrapper Get Panel by index , returns null if panel not loaded _getvalue (Index As int) As Object _hidescrollbar (Hide As boolean) As String Show or hide scrollbar _initialize (ba As anywheresoftware.b4a.BA, vCallback As Object, vEventName As String) As String _ispanelloaded (Index As int) As boolean _loadpanel (Pnl As anywheresoftware.b4a.objects.PanelWrapper, Index As int) As String Load panel into visible item. _newitem (Value As Object) As String Add empty item then load panel into it. _refreshlist As String _reload As void _removeat (Index As int) As String _setscrollbarcolor (Color As int) As String _setvalue (Index As int, Value As Object) As String _size As int Get List items count Attachments zGridView_lib.zip zGridView_lib.zip 8.2 KB · Views: 662 zGridView_ex.zip zGridView_ex.zip 136.3 KB · Views: 675 Click to expand...
Just another Grid view main features - Support custom layouts - Can handle any number of items - Support Right to left - Adjustable items count per row - Divider size zGridView Author: Karim Ezzat Version: 0.1 zGridview Events: ItemClick (Index As Int, Value As Object) ItemLongClick (Index As Int, Value As Object) PanelRequested (Index As Int) Fields: _rowcount As int _offscreenrows As int _divider As int _righttoleft As boolean _itemsize As int Methods: IsInitialized As boolean Tests whether the object has been initialized. _asview As anywheresoftware.b4a.objects.ConcreteViewWrapper Returns a view object that holds the list. _class_globals As String _clear As String Clear the list _designercreateview (base As anywheresoftware.b4a.objects.PanelWrapper, lbl As anywheresoftware.b4a.objects.LabelWrapper, props As anywheresoftware.b4a.objects.collections.Map) As String _getloadedpanel (Index As int) As anywheresoftware.b4a.objects.PanelWrapper Get Panel by index , returns null if panel not loaded _getvalue (Index As int) As Object _hidescrollbar (Hide As boolean) As String Show or hide scrollbar _initialize (ba As anywheresoftware.b4a.BA, vCallback As Object, vEventName As String) As String _ispanelloaded (Index As int) As boolean _loadpanel (Pnl As anywheresoftware.b4a.objects.PanelWrapper, Index As int) As String Load panel into visible item. _newitem (Value As Object) As String Add empty item then load panel into it. _refreshlist As String _reload As void _removeat (Index As int) As String _setscrollbarcolor (Color As int) As String _setvalue (Index As int, Value As Object) As String _size As int Get List items count
ibs06t Member Licensed User Longtime User Apr 18, 2020 #2 hi how to use DirRootExternal images my code is: LoadBitmapSample(File.DirRootExternal, ml.Get(i) , ZGV.ItemSize,ZGV.ItemSize) show all first images...only Bold : Array File Name List Regards Kumar.S
hi how to use DirRootExternal images my code is: LoadBitmapSample(File.DirRootExternal, ml.Get(i) , ZGV.ItemSize,ZGV.ItemSize) show all first images...only Bold : Array File Name List Regards Kumar.S
KZero Active Member Licensed User Longtime User Apr 19, 2020 #3 ibs06t said: hi how to use DirRootExternal images my code is: LoadBitmapSample(File.DirRootExternal, ml.Get(i) , ZGV.ItemSize,ZGV.ItemSize) show all first images...only Bold : Array File Name List Regards Kumar.S Click to expand... what is (i) in your code you should use Index from B4X: Copy Sub ZGV_PanelRequested(Index As Int) ....... LoadBitmapSample(File.DirRootExternal, ml.Get(Index) , ZGV.ItemSize,ZGV.ItemSize) .......
ibs06t said: hi how to use DirRootExternal images my code is: LoadBitmapSample(File.DirRootExternal, ml.Get(i) , ZGV.ItemSize,ZGV.ItemSize) show all first images...only Bold : Array File Name List Regards Kumar.S Click to expand... what is (i) in your code you should use Index from B4X: Copy Sub ZGV_PanelRequested(Index As Int) ....... LoadBitmapSample(File.DirRootExternal, ml.Get(Index) , ZGV.ItemSize,ZGV.ItemSize) .......
KZero Active Member Licensed User Longtime User Apr 25, 2020 #6 Nkalampika said: how to resize ??? the items Click to expand... items size are automatically calculated depending on how many items per row if you need to resize items height you can use this instead Grid Class - PreoptimizedCLV Grid using Erel sample code based on PreoptimizedCLV -> https://www.b4x.com/android/forum/threads/grid-class-preoptimizedclv.116309/#post-726808 Example applied on F1, Work very nice: The idea of this class is to be able to load in a 3 column Grid (customizable) a long list of url images... www.b4x.com
Nkalampika said: how to resize ??? the items Click to expand... items size are automatically calculated depending on how many items per row if you need to resize items height you can use this instead Grid Class - PreoptimizedCLV Grid using Erel sample code based on PreoptimizedCLV -> https://www.b4x.com/android/forum/threads/grid-class-preoptimizedclv.116309/#post-726808 Example applied on F1, Work very nice: The idea of this class is to be able to load in a 3 column Grid (customizable) a long list of url images... www.b4x.com