If you use AppCompatActivity requestWindowFeature (Window.FEATURE_NO_TITLE) does not work.
To do this, you can create a custom theme in the /style.xml values, as shown below:
<style name="NoTitleDialog" parent="Theme.AppCompat.Dialog.Alert"> <item name="windowNoTitle">true</item> </style>
note that the element name: "windowNoTitle" no element name: "android: windowNoTitle"
In menifest.xml apply this custom theme as
<activity android:name=".activity.YourActivity" android:theme="@style/NoTitleDialog"/>
or you can use getSupportActionBar (). hide () to programmatically hide the action bar.
Sangram Haladkar Aug 02 '16 at 12:08 on 2016-08-02 12:08
source share