tufanv Expert Licensed User Longtime User Nov 10, 2015 #1 Hello I am having a problem with table view. I checked Erel's tutorial which adds bitmap with two lines from i=1 to 50 I tried it in my code but all the lines are at different alignment. first line start nearly in the middle while second line start at very left. ( bot talking about the item# talking about the first and second line of each item) Am I doing something wrong ?
Hello I am having a problem with table view. I checked Erel's tutorial which adds bitmap with two lines from i=1 to 50 I tried it in my code but all the lines are at different alignment. first line start nearly in the middle while second line start at very left. ( bot talking about the item# talking about the first and second line of each item) Am I doing something wrong ?
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2015 #2 Can you post a screenshot and the relevant code? Upvote 0
tufanv Expert Licensed User Longtime User Nov 10, 2015 #3 Erel said: Can you post a screenshot and the relevant code? Click to expand... Erel, I tink the problem is also exists in your screenshot here: https://www.b4x.com/android/forum/threads/tableview-b4i-listview.50403/ first and second line of each item is not aligned correctly. please look at item 23 and item24 in your screenshot Upvote 0
Erel said: Can you post a screenshot and the relevant code? Click to expand... Erel, I tink the problem is also exists in your screenshot here: https://www.b4x.com/android/forum/threads/tableview-b4i-listview.50403/ first and second line of each item is not aligned correctly. please look at item 23 and item24 in your screenshot
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2015 #4 It is because of this line: Code: tc.IndentationLevel = Rnd(0, 5) It sets a random indentation level. Upvote 0
It is because of this line: Code: tc.IndentationLevel = Rnd(0, 5) It sets a random indentation level.
tufanv Expert Licensed User Longtime User Nov 10, 2015 #5 Erel said: It is because of this line: Code: tc.IndentationLevel = Rnd(0, 5) It sets a random indentation level. Click to expand... btw, When i cahnge the color of tableview it does not change anything because i think i have to change rowcolors but i couldnt find how to change it. I is akways white. Any possiblity to change the color ? Upvote 0
Erel said: It is because of this line: Code: tc.IndentationLevel = Rnd(0, 5) It sets a random indentation level. Click to expand... btw, When i cahnge the color of tableview it does not change anything because i think i have to change rowcolors but i couldnt find how to change it. I is akways white. Any possiblity to change the color ?
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2015 #6 You will need to use custom items and then set the panels back color: https://www.b4x.com/android/forum/threads/tableview-with-custom-items.51205/ Upvote 0
You will need to use custom items and then set the panels back color: https://www.b4x.com/android/forum/threads/tableview-with-custom-items.51205/