D davelew1s Active Member Licensed User Longtime User May 9, 2013 #121 Get text I am using this customlistview with some alterations it does almost everything I want....but one problem I can't solve is How to get the the text from all the lbl's so I can save it as a csv. I initially load a csv file but need to save it after user input,I've read all the posts in this thread but none help. Any suggestions? Thanks Dave.
Get text I am using this customlistview with some alterations it does almost everything I want....but one problem I can't solve is How to get the the text from all the lbl's so I can save it as a csv. I initially load a csv file but need to save it after user input,I've read all the posts in this thread but none help. Any suggestions? Thanks Dave.
GMan Well-Known Member Licensed User Longtime User May 9, 2013 #122 Didn't the map-function work ? Code: sets.clear sets.Put("TextinderMap", lbl1.Text) File.WriteMap(Dir.Internal, "labels.map", sets)
Didn't the map-function work ? Code: sets.clear sets.Put("TextinderMap", lbl1.Text) File.WriteMap(Dir.Internal, "labels.map", sets)
Erel B4X founder Staff member Licensed User Longtime User May 11, 2013 #123 You can use clv.GetPanel to get the base panel of each item. You can call Panel.GetViewAt(<your label index>) to get the label. See the Button_Click event for an example.
You can use clv.GetPanel to get the base panel of each item. You can call Panel.GetViewAt(<your label index>) to get the label. See the Button_Click event for an example.
G gehrlekrona Member Licensed User Longtime User May 21, 2013 #124 Where is the library? I wish people would include the library in the examples. Where can I find the CustomListView? I am a registered member so you can message me.
Where is the library? I wish people would include the library in the examples. Where can I find the CustomListView? I am a registered member so you can message me.
frapel Active Member Licensed User Longtime User May 21, 2013 #125 gehrlekrona said: I wish people would include the library in the examples. Where can I find the CustomListView? I am a registered member so you can message me. Click to expand... CustomListView is not a library, it's a custom class.
gehrlekrona said: I wish people would include the library in the examples. Where can I find the CustomListView? I am a registered member so you can message me. Click to expand... CustomListView is not a library, it's a custom class.
IanMc Well-Known Member Licensed User Longtime User May 22, 2013 #126 Cool Sig @frapel Now that's what I call a signature! Very nice! :wav:
Dave O Well-Known Member Licensed User Longtime User May 26, 2013 #127 This would be a great example class to turn into B4A's new "custom view".
Erel B4X founder Staff member Licensed User Longtime User May 30, 2013 #128 V1.10 is now available. This version adds designer support to CustomListView.
GMan Well-Known Member Licensed User Longtime User May 30, 2013 #129 When i place a CustomView on an activity the TYPE-Field is disabled, so i cant change it to CustomListView ?
When i place a CustomView on an activity the TYPE-Field is disabled, so i cant change it to CustomListView ?
Erel B4X founder Staff member Licensed User Longtime User May 31, 2013 #130 Have you added the class to your project?
GMan Well-Known Member Licensed User Longtime User May 31, 2013 #131 Yes, and it shows in the top the correct version 1.1 I tried restarting B4A 2.71, but nothing changed...
Yes, and it shows in the top the correct version 1.1 I tried restarting B4A 2.71, but nothing changed...
klaus Expert Licensed User Longtime User May 31, 2013 #132 What exactly did you do ? I just tried it and it works perfect. Best regards.
GMan Well-Known Member Licensed User Longtime User May 31, 2013 #133 I have a blank activity and placed a CustomView on it - as written, the TYPE-part is still disabled.
Erel B4X founder Staff member Licensed User Longtime User Jun 2, 2013 #134 Does this custom view work for you: [Class] AnotherDatePicker - A simple "web style" date picker ?
GMan Well-Known Member Licensed User Longtime User Jun 2, 2013 #135 Hoi Erel, yes, it works - also the CustomListView. Reason why not working: i tried to choose the "wrong" TYPE-part in the part above. As is saw laaaaater the CUSTOMTYPE-part should be selected and changed :sign0089:
Hoi Erel, yes, it works - also the CustomListView. Reason why not working: i tried to choose the "wrong" TYPE-part in the part above. As is saw laaaaater the CUSTOMTYPE-part should be selected and changed :sign0089:
H holdemadvantage Active Member Licensed User Longtime User Jun 2, 2013 #136 I i would like to ask how can i make background transparent of the non-populated customlistview list because i would like to show activity color or image background instead of gray , Thanks in advance Attachments custom.jpg 9.5 KB · Views: 775
I i would like to ask how can i make background transparent of the non-populated customlistview list because i would like to show activity color or image background instead of gray , Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Jun 3, 2013 #137 You can change the background color in the Initialize sub: Code: sv.Color = 0xFFD9D7DE 'this sets the dividers color Change it to Colors.Transparent. As written in the comment the dividers color will also change.
You can change the background color in the Initialize sub: Code: sv.Color = 0xFFD9D7DE 'this sets the dividers color Change it to Colors.Transparent. As written in the comment the dividers color will also change.
H holdemadvantage Active Member Licensed User Longtime User Jun 3, 2013 #138 Obv it works :sign0188: Thanks Erel!!
S shashkiranr Active Member Licensed User Longtime User Jul 18, 2013 #139 Hi Erel, I have added the custom list view from the designer. Initially i am checking whether the checkbox is checked and if it true i am setting the checkbox.checked = true. After this it is calling the Sub chk_CheckedChange(Checked As Boolean) and getting the below error - Null Pointer Exception. Kindly let me know your Inputs. Code: loadlanguagelistview_chk_checkedchange (B4A line: 105) index = clv1.GetItemFromView(Sender) java.lang.NullPointerException at anywheresoftware.b4a.agraham.reflection.Reflection.runmethod(Reflection.java:205) at anywheresoftware.b4a.agraham.reflection.Reflection.RunMethod(Reflection.java:802) at anywheresoftware.b4a.samples.customlistview.customlistview._getitemfromview(customlistview.java:150) at com.bayalu.mankutimma.loadlanguagelistview._chk_checkedchange(loadlanguagelistview.java:348) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:157) at anywheresoftware.b4a.objects.CompoundButtonWrapper$1.onCheckedChanged(CompoundButtonWrapper.java:43) at android.widget.CompoundButton.setChecked(CompoundButton.java:137) at anywheresoftware.b4a.objects.CompoundButtonWrapper.setChecked(CompoundButtonWrapper.java:53) at com.bayalu.mankutimma.loadlanguagelistview._createlistitem(loadlanguagelistview.java:464) at com.bayalu.mankutimma.loadlanguagelistview._createlanguagelist(loadlanguagelistview.java:396) at com.bayalu.mankutimma.loadlanguagelistview._loadlistview(loadlanguagelistview.java:595) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169) at anywheresoftware.b4a.keywords.Common$4.run(Common.java:930) at android.os.Handler.handleCallback(Handler.java:615) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4898) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775) at dalvik.system.NativeStart.main(Native Method) Note : Before i was not bothered about the checkbox status and it was working fine. Regards, SK
Hi Erel, I have added the custom list view from the designer. Initially i am checking whether the checkbox is checked and if it true i am setting the checkbox.checked = true. After this it is calling the Sub chk_CheckedChange(Checked As Boolean) and getting the below error - Null Pointer Exception. Kindly let me know your Inputs. Code: loadlanguagelistview_chk_checkedchange (B4A line: 105) index = clv1.GetItemFromView(Sender) java.lang.NullPointerException at anywheresoftware.b4a.agraham.reflection.Reflection.runmethod(Reflection.java:205) at anywheresoftware.b4a.agraham.reflection.Reflection.RunMethod(Reflection.java:802) at anywheresoftware.b4a.samples.customlistview.customlistview._getitemfromview(customlistview.java:150) at com.bayalu.mankutimma.loadlanguagelistview._chk_checkedchange(loadlanguagelistview.java:348) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:157) at anywheresoftware.b4a.objects.CompoundButtonWrapper$1.onCheckedChanged(CompoundButtonWrapper.java:43) at android.widget.CompoundButton.setChecked(CompoundButton.java:137) at anywheresoftware.b4a.objects.CompoundButtonWrapper.setChecked(CompoundButtonWrapper.java:53) at com.bayalu.mankutimma.loadlanguagelistview._createlistitem(loadlanguagelistview.java:464) at com.bayalu.mankutimma.loadlanguagelistview._createlanguagelist(loadlanguagelistview.java:396) at com.bayalu.mankutimma.loadlanguagelistview._loadlistview(loadlanguagelistview.java:595) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169) at anywheresoftware.b4a.keywords.Common$4.run(Common.java:930) at android.os.Handler.handleCallback(Handler.java:615) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4898) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775) at dalvik.system.NativeStart.main(Native Method) Note : Before i was not bothered about the checkbox status and it was working fine. Regards, SK
Erel B4X founder Staff member Licensed User Longtime User Jul 19, 2013 #140 Can you post the code in this sub?