I have the following code:

HashMap<String, String> tip = venue.tips.get(j);
                        TableRow tr = new TableRow(this);
                        tr.setLayoutParams(new TableRow.LayoutParams
        
(TableRow.LayoutParams.WRAP_CONTENT,TableRow.LayoutParams.WRAP_CONTENT));

                        LinearLayout ll = new LinearLayout(this);
                        ll.setLayoutParams(new
LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT));

                        TextView tips = new TextView(this);
                        tips.setText(tip.get("text"));
                        Log.v("TIPS TEXT", tip.get("text"));
                        tips.setLayoutParams(new LayoutParams(
                     LayoutParams.FILL_PARENT,
                     LayoutParams.WRAP_CONTENT));

                        ImageView avatar = new ImageView(this);
                        
avatar.setImageBitmap(getBitmapFromURL(tip.get("photo")));
                        Log.v("PHOTO URL", tip.get("photo"));
                        avatar.setLayoutParams(new 
LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));

                        ll.addView(tips);
                        ll.addView(avatar);

                        tr.addView(ll);

                        View v = new View(this);
            v.setLayoutParams(new
TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, 1));
            v.setBackgroundColor(Color.rgb(51, 51, 51));

                tipsTable.addView(tr,new TableLayout.LayoutParams(
                          LayoutParams.WRAP_CONTENT,
                          LayoutParams.WRAP_CONTENT));
                tipsTable.addView(v);


I am not sure why I can't see any TableRow being added to the
TableLayout. Any suggestions?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to