Actually my code is `LinearLayout ll = new LinearLayout(this);
ll.setId(i);
ll.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));
ll.setPadding(0, 0, 0, 5);
//ll.setClickable(false);
TextView tv = new TextView(this);
tv.setWidth(5);
tv.setId(++i);
tv.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
final TextView name = new TextView(this);
name.setText(user_chat.get(j).toString());
name.setWidth(60);
name.setId(++i);
//name.setClickable(false);
name.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
Log.v("TextView name",""+name.getText());
TextView msg = new TextView(this);
msg.setText(user_chat.get(++j).toString());
msg.setWidth(100);
msg.setId(++i);
//msg.setClickable(false);
msg.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
TextView time= new TextView(this);
time.setText(user_chat.get(++j).toString());
time.setId(++i);
//time.setClickable(false);
time.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
ll.addView(tv);
ll.addView(name);
ll.addView(msg);
ll.addView(time);
lay.addView(ll);
In this name,msg,time text fields i am displyed.I want name msg and time in proper order i mean same line.But the width is not adjusted to both android and droid .What can i do?Thanks in advance