It's an Android dialog question.

Asked 2 years ago, Updated 2 years ago, 23 views

This is a question about the Android dialog style. The dialog style was applied to the activity through the theme. But the name of the app keeps on being applied like a title on top of the view. I want to erase it, but I can't find the answer, so I'm posting a question here.

//This theme is applied to the style.

   <style name="Theme.MyDialog" parent="Theme.AppCompat.Light.Dialog">
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
    </style>

//This activity is applied to the manifests file.

 <activity android:name=".Views.Dialog"
            android:screenOrientation="portrait"
            android:theme="@style/Theme.MyDialog"/>

Add +++++++++++++++++++++. ++++++++++++++++++++++++++++ If you look here, it's called MEMORIA. ㅠ<

android

2022-09-22 11:52

1 Answers

If the dialog activity inherits AppCompatActivity, it must be treated as <item name="android:windowNoTitle">true</item> instead of <item name="windowNoTitle">true>/item>. That is, if you are using the Support Library, you must remove the android prefix before the attribute takes effect.

Read the following hash code link for more information.


2022-09-22 11:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.