abilio486software Active Member Licensed User Feb 15, 2021 #1 How can I change the thickness of these separation lines in the B4XSearchTemplate object?
M Mahares Expert Licensed User Longtime User Feb 15, 2021 #2 abilio486software said: How can I change the thickness of these separation lines in the B4XSearchTemplate object? Click to expand... Make a copy of the internal lib B4X Views.b4xlib library. Change the extension of the copy to .zip and extract all the files. You will see all the class modules and also a folder named: Files. If you open that folder you will see many internal layout files. Add the SearchTemplate.bal to your B4A Project., via the add tab of your project. Then open up the bal file in the designer in your project, you will see the customlistview by which the layout was designed. There is a line: Divider Height. Change it to say 7 or 10 or whatever from its default of 2 and save the bal file and run your project. Upvote 0
abilio486software said: How can I change the thickness of these separation lines in the B4XSearchTemplate object? Click to expand... Make a copy of the internal lib B4X Views.b4xlib library. Change the extension of the copy to .zip and extract all the files. You will see all the class modules and also a folder named: Files. If you open that folder you will see many internal layout files. Add the SearchTemplate.bal to your B4A Project., via the add tab of your project. Then open up the bal file in the designer in your project, you will see the customlistview by which the layout was designed. There is a line: Divider Height. Change it to say 7 or 10 or whatever from its default of 2 and save the bal file and run your project.
M Mahares Expert Licensed User Longtime User Feb 15, 2021 #3 abilio486software said: separation lines in the B4XSearchTemplate Click to expand... If you do not want to go through all the steps I mentioned in post 2, just add the attached .bal file to your project file tab save it and and you are good to go. I made the divider 7, you can change it. Attachments searchtemplate.bal searchtemplate.bal 2.8 KB · Views: 412 Upvote 0
abilio486software said: separation lines in the B4XSearchTemplate Click to expand... If you do not want to go through all the steps I mentioned in post 2, just add the attached .bal file to your project file tab save it and and you are good to go. I made the divider 7, you can change it.
Erel B4X founder Staff member Licensed User Longtime User Feb 16, 2021 #4 A bit hacky but will work (B4A + B4J): Code: Copy Dim DividerSize As Float = 15dip Dim jo As JavaObject = Search.CustomListView1 'ignore jo.SetField("_mdividersize", DividerSize) Upvote 0
A bit hacky but will work (B4A + B4J): Code: Copy Dim DividerSize As Float = 15dip Dim jo As JavaObject = Search.CustomListView1 'ignore jo.SetField("_mdividersize", DividerSize)
abilio486software Active Member Licensed User Feb 16, 2021 #5 Mahares said: If you do not want to go through all the steps I mentioned in post 2, just add the attached .bal file to your project file tab save it and and you are good to go. I made the divider 7, you can change it. Click to expand... Many thanks! Fantastic solution! It's already working with thickness 1 and a gray color ? Upvote 0
Mahares said: If you do not want to go through all the steps I mentioned in post 2, just add the attached .bal file to your project file tab save it and and you are good to go. I made the divider 7, you can change it. Click to expand... Many thanks! Fantastic solution! It's already working with thickness 1 and a gray color ?