Спасибо! с этим вроде разобрался.
Еще вопрос возник. при открытии активити редактирования будильника фокус переходил на EditText. я его убрал:
Теперь новая проблема: onClick на LinearLayout-е срабатывает со 2-го раза (как будто сначала принимает фокус, а потом кликается)
Вот мой активити:
[syntax=xml]<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="
http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="1dp"
android:background="@android:color/background_dark"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:gravity="top|center_horizontal"
android:orientation="vertical"
android:padding="2dp" >
<CheckBox
android:id="@+id/checkBoxEnabled"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:text="@string/AddEditchkEnabled"
android:textSize="20sp"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/llTime"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:background="@layout/custom_background"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical" >
<TextView
android:id="@+id/TextTime"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:text="@string/StringTime"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tvTimeValue"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_weight="1"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/llDaysOfWeek"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_marginBottom="1dp"
android:background="@layout/custom_background"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical" >
<TextView
android:id="@+id/TextDaysOfWeek"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:focusable="false"
android:focusableInTouchMode="false"
android:text="@string/StringDaysOfWeek"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tvDaysOfWeekValue"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_weight="1"
android:focusable="false"
android:focusableInTouchMode="false"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/llRintone"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:background="@layout/custom_background"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical" >
<TextView
android:id="@+id/TextRingtone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:focusable="false"
android:focusableInTouchMode="false"
android:text="@string/StringRingtone"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tvRingtoneValue"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_weight="1"
android:focusable="false"
android:focusableInTouchMode="false"
android:textSize="14sp" />
</LinearLayout>
<CheckBox
android:id="@+id/checkBoxVibrate"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:gravity="center_vertical"
android:text="@string/chkVibrate"
android:textSize="20sp"
android:textStyle="bold" />
<EditText
android:id="@+id/etDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:hint="@string/StringDescriptionHint"
android:textStyle="italic" >
</EditText>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp" >
<Button
android:id="@+id/btSave"
style="?android:attr/borderlessButtonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="onClick"
android:text="@string/AddEditSave" />
<Button
android:id="@+id/btCancel"
style="?android:attr/borderlessButtonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="onClick"
android:text="@string/AddEditCancel" />
</LinearLayout>
</LinearLayout>[/syntax]
Обработчики назначены программно