title: how to align item in table row (left - center - right)
body: <p>I'm trying to align items in a table row (left/center/right positions), but i could dot get it work can someone help me looking at below snippet,,,</p>
  
  <p>Table Row 
    </p>
  
  <p>should align to
  textview1 =  left
  textview2 = center
  imgview1 = right</p>
  
  <p>xml for table row</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TableRow xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"&gt;
  
  
      &lt;TextView
          android:id="@+id/focast_day"
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
          android:gravity="left"
          android:ellipsize="end"
          android:maxLines="1"
          android:scrollHorizontally="false"
          android:singleLine="true"
          android:text="@string/na_msg"
          android:textColor="@color/black"
          android:textSize="18sp"
          android:textStyle="bold" /&gt;
  
  
       &lt;TextView
          android:id="@+id/focast_day_temp"
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
          android:gravity="center"
          android:ellipsize="end"
          android:maxLines="1"
          android:scrollHorizontally="false"
          android:singleLine="true"
          android:text="@string/na_msg"
          android:textColor="@color/black"
          android:textSize="18sp"
          android:textStyle="bold" /&gt;
  
      &lt;ImageView
          android:id="@+id/focast_day_skyIcon"
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
          android:gravity="right"
          android:scrollHorizontally="false" /&gt;
  
  &lt;/TableRow&gt;
  </code></pre>
  
  <p>myTableLayout </p>
  
  <pre><code>        &lt;TableLayout
              android:id="@+id/weatherforcastTable"
              android:layout_width="fill_parent"
              android:stretchColumns="2"
              android:layout_height="wrap_content"
              android:layout_below="@+id/today_temp"
              android:layout_centerHorizontal="true"
              android:layout_marginTop="34dp" &gt;
          &lt;/TableLayout&gt;
  </code></pre>
  
  <p>code for filling the data to table row</p>
  
  <pre><code> for (Forecastday forecastday : forcastDayList) {
  
  
                          View view = inflater.inflate(R.layout.weather_forcast_day_view, null);
                          TextView focast_day = (TextView) view.findViewById(R.id.focast_day);
                          TextView focast_day_temp = (TextView) view.findViewById(R.id.focast_day_temp);
                          ImageView  focast_day_skyIcon = (ImageView) view.findViewById(R.id.focast_day_skyIcon);
  
                          TableRow row = new TableRow(_appContext);
                          focast_day.setText(fmtDate);
  
  
                          focast_day_temp.setText(forecastday.getHigh().getCelsius() +ApplicationConstants.STRING_SPACE +ApplicationConstants.CELSIUS_DEGREES);
                          focast_day_temp.setId(count);
  
  
                          focast_day_skyIcon.setImageBitmap(forecastday.getSkyiconBitMap());
  
  
                          row.addView(view);
                          weatherforcastTable.addView(row, new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
                                  LayoutParams.WRAP_CONTENT));
                      }
  </code></pre>