Roger Daley Well-Known Member Licensed User Longtime User Aug 31, 2020 #1 Hi All I have an App with a large number of lists which were shown on a large number of ListViews. As the requirements for these were very similar I went to one ListView with minor changes for each list, this worked well until in one instance set the gravity to center horizontal and vertical. Subsequently I found that for other lists I could not get the gravity back to the left. I have attached a sample program with the problem. In the SUB btnGUIMenu_Click there are three labels where gravity is set: B4X: AllListView.SingleLineLayout.Label.Gravity = Bit.Or(Gravity.CENTER_VERTICAL, Gravity.CENTER_HORIZONTAL) When 'Settings" or "Actions" is selected from the Menu the SUB AllListViewSub should set the Gravity back to the left but doesn't . The first three labels [those used in the Menu remain center_Horizontal. Any clues gratefully received Regards Roger Attachments SimpleLV.zip SimpleLV.zip 10.5 KB · Views: 480
Hi All I have an App with a large number of lists which were shown on a large number of ListViews. As the requirements for these were very similar I went to one ListView with minor changes for each list, this worked well until in one instance set the gravity to center horizontal and vertical. Subsequently I found that for other lists I could not get the gravity back to the left. I have attached a sample program with the problem. In the SUB btnGUIMenu_Click there are three labels where gravity is set: B4X: AllListView.SingleLineLayout.Label.Gravity = Bit.Or(Gravity.CENTER_VERTICAL, Gravity.CENTER_HORIZONTAL) When 'Settings" or "Actions" is selected from the Menu the SUB AllListViewSub should set the Gravity back to the left but doesn't . The first three labels [those used in the Menu remain center_Horizontal. Any clues gratefully received Regards Roger
Erel B4X founder Staff member Licensed User Longtime User Aug 31, 2020 #2 Roger Daley said: Any clues gratefully received Click to expand... Using ListView is a waste of time. Switching to xCLV is simpler than you think and you will have full control over the appearance. Upvote 0
Roger Daley said: Any clues gratefully received Click to expand... Using ListView is a waste of time. Switching to xCLV is simpler than you think and you will have full control over the appearance.
Roger Daley Well-Known Member Licensed User Longtime User Aug 31, 2020 #3 Erel, I was just reading through Peter Simpsons tutorial/example, thinking to myself. " I bet Erel tells me to use this". I guess I start on xCLV tomorrow. Regards Roger Upvote 0
Erel, I was just reading through Peter Simpsons tutorial/example, thinking to myself. " I bet Erel tells me to use this". I guess I start on xCLV tomorrow. Regards Roger