2016年8月11日 星期四

How to make login page do not have Action bar but other page have?

How to make login page do not have Action bar but other page have?

<resources>

   <!-- Base application theme. -->
   <style name="AppTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">
       <!-- Customize your theme here. -->
       <item name="colorPrimary">@color/colorPrimary</item>
       <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
       <item name="colorAccent">@color/colorAccent</item>
       <item name="colorControlNormal">@color/loginPageEdittextBottomLine</item>
   </style>

   <style name="LoginPageTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
       <!-- Customize your theme here. -->
       <item name="colorPrimary">@color/colorPrimary</item>
       <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
       <item name="colorAccent">@color/colorAccent</item>
       <item name="colorControlNormal">@color/loginPageEdittextBottomLine</item>
   </style>

</resources>



in Manifest

<activity android:name=".LoginActivity" android:theme="@style/LoginPageTheme">


what is attr?