Im creating a notification with three elements. I would like each of them to be clickable, starting an activity with bundled data. Im using the NotificationCompat.Builder:

```
NotificationCompat.Builder builder =
            new NotificationCompat.Builder(Application.getApp())
                    .setSmallIcon(R.drawable.action_icon_small)
                    .setContent(notificationView);

```

I can make the whole notification clickable by adding setContentIntent to the above, but I'm at loss trying to make views within the notification clickable. I have tried different approaches, setting setOnlickPendingInent on each of action\_notification\_x and action\_notification\_y, setting setPendingIntentTemplate on action\_notification and both. Sometimes the last element (ie. action\_notification\_y) gets clickable, but not \_x. Is there something I'm missing? 

Here is some code:

```
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/action_notifiation"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:gravity="left"
    android:orientation="horizontal"
    android:weightSum="100" >

    <ImageView
        android:id="@+id/action_notification_logo"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="13"
        android:layout_margin="10dp"
        android:src="@drawable/logo" />

    <LinearLayout
        android:id="@+id/action_notification_x"
        android:layout_height="wrap_content"
        android:layout_width="0dp"
        android:layout_weight="29"
        android:orientation="vertical"
        android:layout_gravity="center_vertical"
        android:visibility="gone">
        <TextView
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:textColor="@android:color/black"
            android:textSize="12sp"
            android:text=""
            android:layout_gravity="center_horizontal"/>
        <ImageView
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_gravity="center_horizontal"
            android:src="@drawable/action_icon_x" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/action_notification_y"
        android:layout_height="wrap_content"
        android:layout_width="0dp"
        android:layout_weight="29"
        android:orientation="vertical"
        android:layout_gravity="center_vertical"
        android:visibility="gone">
        <TextView
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:textColor="@android:color/black"
            android:textSize="12sp"
            android:text=""
            android:layout_gravity="center_horizontal"/>
        <ImageView
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_gravity="center_horizontal"
            android:src="@drawable/action_icon_y" />
    </LinearLayout>
</LinearLayout>

```