I'm doing popUp
, I just need to pop up a kind of tooltip with a short description. I do this by creating an activit and I give it dimensions and it seems like what I want. But the problem is that, like any activ, it has an actionBar
that doesn’t look like it))
In general, like this
I tried to add this line
@Override protected void onCreate(Bundle savedInstanceState) { --->> requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.activity_pop);
but nothing changes absolutely ...
Tell me how to do this? Moreover, I know that it is widely used in games, because there every millimeter of the screen is important ...
By the way, I don’t know if it matters or not, but I have Android 5.0
I tried to create my style like this
<style name="AppTheme.CustomStyle"> <item name="android:windowActionBar">false</item> <item name="android:windowNoTitle">true</item> <item name="android:windowIsTranslucent">true</item> <item name="android:windowCloseOnTouchOutside">true</item> </style>
and like this I assign it to the manifest
<activity android:name=".Pop" android:theme="@style/AppTheme.CustomStyle" ></activity>
But nothing helps