...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
public abstract class SecuredActivity extends ActionBarActivity { // class specific code here } |
the The associated activity syle is also changed to be descendant of AppCompact theme e.g on the android manifest make the following changes:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<activity android:name=".view.activity.NativeECSmartRegisterActivity" android:screenOrientation="landscape" android:theme="@style/AppThemeNoTitle" /> |
Where style/AppThemeNoTitle
is
defined
under
styles.xml
file
as:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<style name="AppThemeNoTitle" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="android:windowNoTitle">true</item> <item name="android:windowActionBar">false</item> <item name="android:windowFullscreen">false</item> <!-- this is useful to prevent the keyboard from covering up the input fields --> <item name="android:windowContentOverlay">@null</item> </style> |