Мне интересно, как можно избавиться (или изменить цвет) от titleDivider в Dialog. Это синяя линия под заголовком диалогового окна, отображаемая на устройствах Honeycomb+.
Я предполагаю, что это соответствующий фрагмент макета из SDK, но поскольку здесь нет атрибута стиля, я не знаю, как его стилизовать. Если я попытаюсь использовать findViewById, android.R.id.titleDivider не будет
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:fitsSystemWindows="true">
<TextView android:id="@android:id/title" style="?android:attr/windowTitleStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="@android:dimen/alert_dialog_title_height"
android:paddingLeft="16dip"
android:paddingRight="16dip"
android:gravity="center_vertical|left" />
<View android:id="@+id/titleDivider"
android:layout_width="match_parent"
android:layout_height="2dip"
android:background="@android:color/holo_blue_light" />
<FrameLayout
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:foreground="?android:attr/windowContentOverlay">
<FrameLayout android:id="@android:id/content"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
</LinearLayout>
. Я попытался переопределить dialogTitleDecorLayout, который является только ссылкой на dialog_title_holo.xml в моем файле theme.xml, но безуспешно. Ошибка:
ошибка: Ошибка: не найден ресурс, соответствующий данному имени: attr 'диалогтитледекормакет'.