0
응용 프로그램에 경고 대화 상자 작성기를 사용하고 있습니다. api level16에서 검은 색 배경을 대화 상자로 가져 왔지만 api 수준에서는 확인하지 않았습니다. 8.이 문제를 피하는 방법을 알려 줄 수 있습니까?안드로이드에서 경고 대화 상자 빌더가 검은 색 배경으로 표시됩니다.
응용 프로그램에 경고 대화 상자 작성기를 사용하고 있습니다. api level16에서 검은 색 배경을 대화 상자로 가져 왔지만 api 수준에서는 확인하지 않았습니다. 8.이 문제를 피하는 방법을 알려 줄 수 있습니까?안드로이드에서 경고 대화 상자 빌더가 검은 색 배경으로 표시됩니다.
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent" >
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="260dp"
android:layout_height="wrap_content" android:background="@drawable/dark_blue">
<TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/save_wishlist_title" android:layout_alignParentTop="true" android:layout_centerInParent="true"
android:textAppearance="?android:attr/textAppearanceLarge" />
<LinearLayout android:id="@+id/linearLayout1" android:layout_centerInParent="true" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_marginTop="10dp" android:layout_below="@+id/textView1" android:orientation="vertical">
<Button android:id="@+id/phoneButton" android:layout_width="120dp" android:layout_height="wrap_content"
android:text="@string/phone_button" />
<Button android:id="@+id/emailButton" android:layout_width="120dp" android:layout_height="wrap_content"
android:text="@string/email_buton" android:layout_marginTop="5dp"/>
<Button android:id="@+id/accountButton" android:layout_width="120dp" android:layout_height="wrap_content"
android:text="@string/account_button" android:layout_marginTop="5dp"/>
</LinearLayout>
</RelativeLayout>
</ScrollView>
경고 대화 상자를 설정하려는 모든 활동에서이 레이아웃을 확장하십시오.
LayoutInflater li = LayoutInflater.from(VMAdjustFrame.this);
promptsView = li.inflate(R.layout.wishlist_save_prompt, null);
alertDialogBuilder = new AlertDialog.Builder(VMAdjustFrame.this);
alertDialogBuilder.setView(promptsView);
final AlertDialog dialog = alertDialogBuilder.show();
코드를 게시하십시오. – stinepike