Defining Strings Question?

disit11

Member
I really did not know how to put the title but hopefully that is close to the issue I am having. Basically I have a couple of labels defined as strings and they are placed within a scrollview when the activity starts well when a listview item is selected. But the issue is is that each label is different for each listview item when it is clicked on, some of the text is longer than the other one and I have to make the panel bigger and bigger each time and it looks horrible on the smaller texts because there is a giant white space at the bottom.

How would I resize well rather bring a label to the bottom of another label when they are defined as strings and how could I resize the panel to the bottom of the very last label at the bottom of the screen?
 

disit11

Member
It will not work whenever I do it that way I get an error for some reason because I declared a string and a label on the same activity that label has the same name.
 
Upvote 0

disit11

Member
A better explanation would be. I have two activities activity 1 with a listview and activity 2 with the labels and panels. There are 5 labels on activity 2. Activity 2 is where they are declared as strings. When I try to dim them as label as well they say something about rank. All I need to do is have label 5 resize to its text size and then reposition it. The same goes for the panel I need for it to be able to resize to the bottom of label 5. I tried working with the code you presented but that did not do what I needed it to. An example project would be nice.
 
Upvote 0
Top