Click here to Skip to main content
15,891,033 members

Comments by Niklas L (Top 200 by date)

Niklas L 18-Sep-12 4:24am View    
Good indeed
Niklas L 18-Sep-12 4:22am View    
Ah! Didn't know that! Good info.
Niklas L 17-Aug-12 5:04am View    
Should you be using 'numItems'? Looks like you should be using 'i' to index your arrays (or whatever they are)
Are you sure the number of items in FirstName equals the number of items in your other collections?
Niklas L 15-Jun-12 4:09am View    
That's not necessary if you set the buddy control manually.
Niklas L 14-Jun-12 5:38am View    
You need to review your code and clean it up. For example:
//excercises_LL.removeAllViews();
excercises_LL.setWeightSum(1.0F);
excercises_LL.setVisibility(0);

Why have you removed removeAllViews()?
Why do you set a weight sum when you don't know what that sum is?
Why do you use numeric values, when you should use named constants like View.VISIBLE, View.HIDDEN and View.GONE?

You are not making your life easy.

Now, all you need to do is to set the texts of your TextViews again using setText(). To do this you need to make your content_LL identifiable. Use the id of the table record (_id) and set it as the views id. Then you can find it again using excerise_LL.findViewById(). If you don't have a numeric key, you could make use of the setTag() method to make it identifiable.