Zastanawiam się, jak można pozbyć się (lub zmienić kolor) titleDivider w oknie dialogowym. Jest to niebieska linia pod tytułem okna dialogowego wyświetlana na urządzeniach typu plaster miodu +.Tytuł tytułuDivider w oknie dialogowym
Chyba jest to istotne kawałek układ z SDK, ale ponieważ nie ma atrybutu stylu nie wiem jak go tytułować. Gdy próbuję z findViewById nie ma 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>
Próbowałem przesłonić dialogTitleDecorLayout który jest tylko odniesienie do dialog_title_holo.xml w moim theme.xml, ale bez powodzenia. Błąd jest:
error: Error: No resource found that matches the given name: attr 'dialogTitleDecorLayout'.
jeśli chcesz pozbyć się jakiejś części domyślnego stylu, należy usunąć go całkowicie, ponieważ różni między urządzeniami i wersjami OS –
Po zrzucie ekranu @Sharad Mhaske – GrIsHu
@GrlsHu: opublikowałem zrzut ekranu –