title: setwidth of a dynamic textview
body: <p>Actually my code is:</p>
  
  <pre><code>   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);
  </code></pre>
  
  <p>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</p>