A Adilson Jacinto Active Member Licensed User Longtime User Sep 17, 2015 #1 Hi @Erel I am trying to customize my TableView, for example to start I tried to change the background color but it didn't work, so after JobDone function it loses it for some reason. Also in TableView_SelectedChanged (SectionIndex As Int, Cell As TableCell) how do I only get the header value instead of Cell.Text.ToString, I know that works for both heard and the cell but just want the header value. And also How can I make the rows line higher so the Icon does not go over the line in the row? Please have a look at my project. Thanks Attachments myproject.zip myproject.zip 336.3 KB · Views: 439
Hi @Erel I am trying to customize my TableView, for example to start I tried to change the background color but it didn't work, so after JobDone function it loses it for some reason. Also in TableView_SelectedChanged (SectionIndex As Int, Cell As TableCell) how do I only get the header value instead of Cell.Text.ToString, I know that works for both heard and the cell but just want the header value. And also How can I make the rows line higher so the Icon does not go over the line in the row? Please have a look at my project. Thanks
Erel B4X founder Staff member Licensed User Longtime User Sep 17, 2015 #2 Adilson Jacinto said: Hi @Erel Click to expand... This is a community forum, please do not limit your questions to a single member. I cannot run your project as it depends on an external server. The only way to change the background color is by using custom items: https://www.b4x.com/android/forum/threads/tableview-cell-background-color.51827/#content Adilson Jacinto said: Also in TableView_SelectedChanged (SectionIndex As Int, Cell As TableCell) how do I only get the header value instead of Cell.Text.ToString, I know that works for both heard and the cell but just want the header value. Click to expand... Not sure what you mean with the header value. Cell.DetailText will return the second line. You can always use the Tag property to store any value you like. Adilson Jacinto said: And also How can I make the rows line higher so the Icon does not go over the line in the row? Click to expand... Change TableView.RowHeight Upvote 0
Adilson Jacinto said: Hi @Erel Click to expand... This is a community forum, please do not limit your questions to a single member. I cannot run your project as it depends on an external server. The only way to change the background color is by using custom items: https://www.b4x.com/android/forum/threads/tableview-cell-background-color.51827/#content Adilson Jacinto said: Also in TableView_SelectedChanged (SectionIndex As Int, Cell As TableCell) how do I only get the header value instead of Cell.Text.ToString, I know that works for both heard and the cell but just want the header value. Click to expand... Not sure what you mean with the header value. Cell.DetailText will return the second line. You can always use the Tag property to store any value you like. Adilson Jacinto said: And also How can I make the rows line higher so the Icon does not go over the line in the row? Click to expand... Change TableView.RowHeight
A Adilson Jacinto Active Member Licensed User Longtime User Sep 17, 2015 #3 Erel said: This is a community forum, please do not limit your questions to a single member. I cannot run your project as it depends on an external server. The only way to change the background color is by using custom items: https://www.b4x.com/android/forum/threads/tableview-cell-background-color.51827/#content Not sure what you mean with the header value. Cell.DetailText will return the second line. You can always use the Tag property to store any value you like. Change TableView.RowHeight Click to expand... Thanks, what about having the TableView just below the Textfield? Upvote 0
Erel said: This is a community forum, please do not limit your questions to a single member. I cannot run your project as it depends on an external server. The only way to change the background color is by using custom items: https://www.b4x.com/android/forum/threads/tableview-cell-background-color.51827/#content Not sure what you mean with the header value. Cell.DetailText will return the second line. You can always use the Tag property to store any value you like. Change TableView.RowHeight Click to expand... Thanks, what about having the TableView just below the Textfield?
Erel B4X founder Staff member Licensed User Longtime User Sep 17, 2015 #4 You have full control over the TableView position. The best place to reposition it is in Page_Resize event. Upvote 0
You have full control over the TableView position. The best place to reposition it is in Page_Resize event.
A Adilson Jacinto Active Member Licensed User Longtime User Sep 17, 2015 #5 Erel said: You have full control over the TableView position. The best place to reposition it is in Page_Resize event. Click to expand... Can you give me an example of making sure that the TableView is below the TextField please? Upvote 0
Erel said: You have full control over the TableView position. The best place to reposition it is in Page_Resize event. Click to expand... Can you give me an example of making sure that the TableView is below the TextField please?
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2015 #6 Which TextField? Please upload a small project with the layout that you are trying to create. Note that you should use File - Export as zip to build the zip file. Upvote 0
Which TextField? Please upload a small project with the layout that you are trying to create. Note that you should use File - Export as zip to build the zip file.
A Adilson Jacinto Active Member Licensed User Longtime User Sep 18, 2015 #7 Erel said: Which TextField? Please upload a small project with the layout that you are trying to create. Note that you should use File - Export as zip to build the zip file. Click to expand... Hi I have got the project attached here, I used one of your projects and edited so you can see what I mean. Basically the in the designer I have a Label and a TextField then when the application ruin it will populate the Tableview with some values and I want to have that table below the TextField but still at 100% height., please see project. Thanks Attachments projexample.zip projexample.zip 3.6 KB · Views: 428 Upvote 0
Erel said: Which TextField? Please upload a small project with the layout that you are trying to create. Note that you should use File - Export as zip to build the zip file. Click to expand... Hi I have got the project attached here, I used one of your projects and edited so you can see what I mean. Basically the in the designer I have a Label and a TextField then when the application ruin it will populate the Tableview with some values and I want to have that table below the TextField but still at 100% height., please see project. Thanks
klaus Expert Licensed User Longtime User Sep 18, 2015 #8 Is this what you are lookink for ? Code: Copy Private Sub Page1_Resize(Width As Int, Height As Int) Dim Top, Space As Float Space = 10 Top = TextField1.Top + TextField1.Height + Space tv.SetLayoutAnimated(400, 0.5, 0, Top, 100%x, 100%y - Top - Space) End Sub Upvote 0
Is this what you are lookink for ? Code: Copy Private Sub Page1_Resize(Width As Int, Height As Int) Dim Top, Space As Float Space = 10 Top = TextField1.Top + TextField1.Height + Space tv.SetLayoutAnimated(400, 0.5, 0, Top, 100%x, 100%y - Top - Space) End Sub
A Adilson Jacinto Active Member Licensed User Longtime User Sep 18, 2015 #9 klaus said: Is this what you are lookink for ? Code: Copy Private Sub Page1_Resize(Width As Int, Height As Int) Dim Top, Space As Float Space = 10 Top = TextField1.Top + TextField1.Height + Space tv.SetLayoutAnimated(400, 0.5, 0, Top, 100%x, 100%y - Top - Space) End Sub Click to expand... Yes it was thank you very much Upvote 0
klaus said: Is this what you are lookink for ? Code: Copy Private Sub Page1_Resize(Width As Int, Height As Int) Dim Top, Space As Float Space = 10 Top = TextField1.Top + TextField1.Height + Space tv.SetLayoutAnimated(400, 0.5, 0, Top, 100%x, 100%y - Top - Space) End Sub Click to expand... Yes it was thank you very much