Using "window Translucent Status = true" and want to display Text View value just after action bar

296 views Asked by At

I want to display my text just after the "Action Bar". Because I am using window translucent status therefore my text is appearing on "Status Bar".

<style name="AppTheme" parent="Theme.AppCompat.Light">
<item name="android:windowTranslucentStatus">true</item>
</style>

I tried the textview property layout:margin top = 100dp and this is working fine for me.. but i think this solution may not work on other mobile phones.

Would someone knew any better way to do it in proper way?

0

There are 0 answers