Hi,
   i m defining one table row and i want to put images into each row
that image may be of different size.
My row width and height is fix.
 My Question is :   is there any class or function which automatically
fit into that particular row like Auto resizing.

Hear is my Xml file

<?xml version="1.0" encoding="utf-8"?>
<ScrollView android:id="@+id/table_scrollview"
     android:layout_width="fill_parent" android:layout_height="fill_parent"
     android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android";>
<TableLayout android:id="@+id/header_table_layout"
     android:layout_width="fill_parent" android:layout_height="fill_parent"
     android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android";>
     <TableRow android:id="@+id/header_row"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:orientation="vertical">
    <AbsoluteLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        xmlns:android="http://schemas.android.com/apk/res/android";
        android:background="#ffb33155">
        
<ImageView
android:layout_height="400px"
android:src="@drawable/cc" android:layout_width="328px"
android:layout_y="1px" android:layout_x="-10px">
</ImageView>
<TextView
android:layout_x="0px"
android:clickable="true" android:focusableInTouchMode="true"
android:textColor="#ffffffff" android:background="#bbb33155"
android:layout_y="202px" android:layout_height="40px"
android:textSize="30px" android:text="Hello This is Text View"
android:layout_width="fill_parent">
</TextView>
        </AbsoluteLayout>       
     </TableRow>

     <TableRow android:id="@+id/header_row1" android:layout_width="fill_parent"
          android:layout_height="fill_parent" android:orientation="vertical">
      <AbsoluteLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android";
android:background="#ffb33155">
<ImageView
android:layout_height="400px"
android:layout_y="0px"
android:src="@drawable/pp" android:layout_width="328px"
android:layout_x="-10px">
</ImageView>
<TextView
android:layout_x="0px"
android:clickable="true" android:focusableInTouchMode="true"
android:textColor="#ffffffff" android:background="#bbb33155"
android:layout_y="202px" android:layout_height="40px"
android:textSize="30px" android:text="Hello This is Text View"
android:layout_width="fill_parent">
</TextView>
        </AbsoluteLayout>       
     </TableRow>

     <TableRow android:id="@+id/header_row1" android:layout_width="wrap_content"
          android:layout_height="wrap_content" android:orientation="vertical">
      <AbsoluteLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android";
android:background="#ffb33155">
<ImageView
android:layout_width="400px"
android:layout_height="400px"
android:layout_x="0px"
android:layout_y="0px"
android:src="@drawable/icon"
>
</ImageView>
<TextView
android:layout_x="0px"
android:clickable="true" android:focusableInTouchMode="true"
android:textColor="#ffffffff" android:background="#bbb33155"
android:layout_y="202px" android:layout_height="40px"
android:textSize="30px" android:text="Hello This is Text View"
android:layout_width="fill_parent">
</TextView>
        </AbsoluteLayout>       
     </TableRow>


        
</TableLayout>
</ScrollView>


Hust copy and paste into main.xml file u fill get the feel.

Please help me.

Best
Pankaj nigam

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

Reply via email to