0
<?xml version="1.0" encoding="utf-8"?>

<!-- PARENT -->
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="1" android:paddingTop="0dip"     android:layout_gravity="top"
>

<TableRow>
    <ImageView
        android:id="@+id/image"
        android:layout_width="50dip"
        android:layout_height="50dip"
        android:layout_marginLeft="10dip"/>
    <TableLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:stretchColumns="1" android:paddingTop="0dip" android:layout_gravity="top"
        >
        <TableRow>
            <TextView
                android:id="@+id/text1"
                android:textColor="#000000"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_weight="1" android:layout_gravity="left|center_vertical"
                android:textSize="17dip" android:layout_marginLeft="10dip"
                android:textStyle="bold"/>
        </TableRow>

    </TableLayout>
    <ImageView
        android:layout_width="25dip"
        android:id="@+id/DownArrow"
        android:layout_height="25dip"
        android:layout_gravity="left|center_vertical"
        android:scaleType="centerCrop"
        android:background="@drawable/downimage"
        />

</TableRow>

how can i set action bar?in java class i used "public class ExpandableListMain extends ExpandableListActivity". here i am not used extends ActionBarActivity or Activity, and also i tried this one also,i create a separate a layout for action bar and i insert this xml code,it creates separate action bar for each and every list

1 Answers1

0

Go through ExpandableListActivity , it is easy to use ActionBarActivity as base class and having same functionality as extending ExpandableListActivity

It would be easy to get the same functionality in your own class and have it extend ActionBarActivity as its base class.

Check this Stack description

Community
  • 1
  • 1
Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142