title: Text view inside the Linear layout in android
body: <p>i have created three linear layouts of equal weights. Inside one of the linear layouts i have 6 text views. I have initialized the text view in my activity. But i'm not able to view this text view. I don't know where i'm going wrong. Please help me. </p>
  
  <p>This is my XML layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   android:orientation="vertical" &gt;
   &lt;LinearLayout
   android:id="@+id/lay"
   android:layout_weight="1"
   android:layout_width="match_parent"
   android:layout_height="fill_parent"
   android:background="#FFFFFF"&gt;
  &lt;TextView android:id="@+id/num1" 
   android:layout_width="0dip" 
   android:layout_height="wrap_content"
   android:gravity="left"
   android:textColor="#000000" 
   android:textSize="10dip"
   android:layout_weight="1" /&gt;
  &lt;TextView android:id="@+id/date1" 
  android:layout_width="0dip" 
  android:layout_height="wrap_content"
  android:gravity="right"
  android:textColor="#000000"
  android:textSize="10dip" 
  android:layout_marginLeft="10dp"
  android:layout_weight="1" /&gt;
  &lt;TextView android:id="@+id/cus1" 
  android:layout_width="0dip" 
  android:layout_height="wrap_content"
  android:gravity="left"
  android:textColor="#000000"
  android:textSize="10dip" /&gt;
  &lt;TextView android:id="@+id/service1" 
  android:layout_width="0dip" 
  android:layout_height="wrap_content"
  android:gravity="left"
  android:textColor="#000000"
  android:textSize="10dip" /&gt;
  &lt;TextView android:id="@+id/job1" 
  android:layout_width="0dip" 
  android:layout_height="wrap_content"
  android:gravity="left"
  android:textColor="#000000"
  android:textSize="10dip" /&gt;
  &lt;TextView android:id="@+id/des1" 
  android:layout_width="0dip" 
  android:layout_height="wrap_content"
  android:gravity="left"
  android:textColor="#000000"
  android:textSize="10dip" /&gt;
  &lt;/LinearLayout&gt;
  &lt;LinearLayout
    android:layout_weight="1"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="horizontal"
    android:background="#FFFFFF" &gt;
  &lt;EditText
   android:id="@+id/EditTextName"
   android:layout_width="match_parent"
   android:layout_height="wrap_content"
   android:hint="@string/followup"
   android:inputType="textMultiLine"
   android:lines="3" /&gt;
  &lt;/LinearLayout&gt;
  &lt;LinearLayout
    android:layout_weight="1"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="horizontal"
    android:background="#FFFFFF" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This is my activity</p>
  
  <pre><code>public class Detail extends Activity{
  String value1 , value2;
  Cursor c, c1;
  DataBaseHelper myDbHelper = new DataBaseHelper(this);
  
    @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setContentView(R.layout.detail);
  
          LinearLayout ll = (LinearLayout) findViewById(R.id.lay);
          TextView  tv1 =(TextView)ll.findViewById(R.id.num1);
          TextView  tv2 =(TextView)ll.findViewById(R.id.date1);
          TextView  tv3 =(TextView)ll.findViewById(R.id.cus1);
          TextView  tv4 =(TextView)ll.findViewById(R.id.service1);
          TextView  tv5 =(TextView)ll.findViewById(R.id.job1);
          TextView  tv6 =(TextView)ll.findViewById(R.id.des1);
  
  
          Bundle extras = getIntent().getExtras(); 
          if(extras !=null)
          {
          value1 = extras.getString("keyName");
          value2 = extras.getString("keyTime");
          }
          try {
  
              myDbHelper.openDataBase();
  
          }catch(SQLException sqle){
  
              throw sqle;
  
          }
  
          myDbHelper.setSearch(value1);
          c = myDbHelper.getDetail();
          if(c.getCount()!=0){
              c.moveToFirst();
  
              while (!c.isAfterLast()) {
                  tv1.setText("Ticket No:" + c.getString(c.getColumnIndex("taskID")));
                  tv2.setText("Date:" + value2 + "/" + c.getString(c.getColumnIndex("time")) );
                  tv3.setText("Customer Name:" + value1);
                  tv4.setText("Description:" + c.getString(c.getColumnIndex("taskDetail")));
                  c.moveToNext();
              }
          c.close();
          }
  
  
          myDbHelper.setSearch(value1);
          c1 = myDbHelper.getService();
          if(c1.getCount()!=0){
              c1.moveToFirst();
  
              while (!c1.isAfterLast()) {
                  tv5.setText("Service Type:" + c1.getString(c1.getColumnIndex("description")));
                  tv6.setText(value1);
                  c1.moveToNext();
              }
          c1.close();
          }
  
          myDbHelper.close();}}
  </code></pre>
  
  <p>I want a layout like this, <img src="https://i.stack.imgur.com/2DMN8.png" alt="Layout">
  First two text in the same line one at the right and another at the left corner, the other four vertically down. How to achieve this?</p>