मैं अलर्ट संवाद की पृष्ठभूमि को बदलना चाहता हूं। मैं निम्नलिखित कोड टुकड़ा की कोशिश की है ऐसा करने के लिए:एंड्रॉइड अलर्ट संवाद शीर्षक की पृष्ठभूमि को कैसे बदलें
<style name="Theme.AlertDialog" parent="@android:style/Theme.Holo.Light.Dialog">
<item name="android:background">@android:color/transparent</item>
<item name="android:textColor">#659F26</item>
<item name="android:windowTitleStyle">@style/Theme.AlertDialog.Title</item>
</style>
<style name="Theme.AlertDialog.Title" parent="@android:style/TextAppearance.DialogWindowTitle">
<item name="android:background">@drawable/cab_background_top_example</item>
</style>
जावा कोड: इस तरह
ContextThemeWrapper ctw = new ContextThemeWrapper(this, R.style.Theme_AlertDialog);
final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(ctw);
alertDialogBuilder.setTitle(getResources().getString(R.string.confirmation));
alertDialogBuilder.setMessage(getResources().getString(R.string.msg));
alertDialogBuilder.show();
मेरा ऐप दिखा रहा है संवाद:
जबकि मैं चाहता हूँ यह देखने के लिए जैसे:
कृपया सुझाव दें, मैं क्या गलत कर रहा हूं।
का उपयोग क्यों नीचे वोट? – mudit
मैं बस अपने प्रश्न से अपनी समस्या का समाधान करता हूं इसलिए मेरी तरफ से +1 ..... – duggu