I want to create a customised `alertDialog` using the below posted code. But, For some reason, eclipse underscores the methods `setIcon` and `setTitle` with red squiggle.
I do not know what I am missing in the code? 

Java\_Code:

```
reportAlertDialog.setContentView(R.layout.report_dialog);
ImageView reportAlertDialogIcon = 
          (ImageView) reportAlertDialog.findViewById(R.id.reportDialogIconID);
reportAlertDialog.setIcon(reportAlertDialogIcon);
TextView reportAlertDialogTitle = 
         (TextView) reportAlertDialog.findViewById(R.id.reportDialogTitleID);
reportAlertDialog.setTitle(reportAlertDialogTitle);

```

xml:

```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

    <RelativeLayout 
        android:id="@+id/reportRealtiveLayout00"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:layout_gravity="top|left">
          <ImageView
              android:id="@+id/reportDialogIconID"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:src="@drawable/reporticon01"/>
          <TextView 
              android:id="@+id/reportDialogTitleID"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_toRightOf="@+id/reportDialogIconID"
              android:gravity="center"/>
    </RelativeLayout>
</LinearLayout>

```