Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8790007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:32:41+00:00 2026-06-13T22:32:41+00:00

I have created a custom theme for dialogs in my android app, and I

  • 0

I have created a custom theme for dialogs in my android app, and I was planning to override the layout used for the dialog title. I saw that in the standard android Theme there is this attribute that looks like the one to modify.

<item name="dialogTitleDecorLayout">@layout/dialog_title</item>

But when I try to override it in my Theme

<style name="Theme.Dialog.MyDialog" parent="android:Theme.Dialog">
    <item name="android:windowBackground">@android:color/black</item>
    <item name="android:dialogTitleDecorLayout">@layout/my_dialog_title</item>
</style>

I see the following error:

No resource found that matches the given name: attr
‘android:dialogTitleDecorLayout’

Why I not able to change it and how can I know which attributes can be changed and which not?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:32:42+00:00Added an answer on June 13, 2026 at 10:32 pm

    It is not possible to override that item like this. You have to customize the dialog with required layout and then in the layout you have to apply the theme here for what ever your requirement.

    dialog_title.xml
    
    <LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
    
    <TextView
        android:id="@+id/text" 
        android:text="@string/tell_a_friend"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingLeft="8dip"
        android:paddingTop="12dip"
        android:paddingBottom="12dip"
        style="@style/bigTextWhite" />
    
    </LinearLayout>
    

    //this is the method where your dialog appears in onclick button event

    public void onClickHelp(View v) {
        final Dialog duDialog = new Dialog(this);
        duDialog.setContentView(R.layout.data_usage);
        duDialog.getWindow().setBackgroundDrawableResource(R.color.title_text);
    
        duDialog.setTitle("Data Usage"); // I would like to set the color and add button here
        ListView data = (ListView) duDialog.findViewById(R.id.DataUsage);
        duCursor = Data.getAll(db);
        startManagingCursor(duCursor);
        duAdapter = new DataAdapter(duCursor);
        data.setAdapter(duAdapter);
        duDialog.show();
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom theme for my activities that they all use. In
I have created a children's app that has a child lock using a custom
I have created custom jQuery UI widget called uiPopover, very similar to UI-dialog (in
friends, i have created custom title bar using following titlebar.xml file with code <?xml
I have created a custom method that will return unique items, together with the
I have created a custom AlertDialog with multiple EditText fields using a custom layout.
I have created a custom dialog box extending the DialogFragment class. As stated in
I have develped an Android RSS reader.I have created a tab layout and created
I have created a custom dialog for Visual Studio Setup Project using the steps
I have a custom dialog created and and I want to apply a custom

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.