Note that there are some explanatory texts on larger screens.

plurals
  1. POdeveloper.android.com training actionbar - correct result?
    primarykey
    data
    text
    <p>I am currently following the tutorials on <a href="http://developer.android.com/training/index.html" rel="nofollow noreferrer">http://developer.android.com/training/index.html</a>. I have completed the first section and continued the second section on the same code.</p> <p>In the tutorial the goal is to make an ActionBar. I have chosen to support android 2.1 and above using the v7 appcompat library. I assume it is installed correctly (and have followed <a href="https://stackoverflow.com/questions/17870881/cant-find-theme-appcompat-light-for-new-android-actionbar-support">this</a> thread).</p> <p>My question is, what is my result supposed to look like? I have created 2 AVD's, one running API 18 and one running API 8 and am testing on my own phone (Xperia Ray running Cyanogenmod 9, which is API 15 I believe)</p> <p>All 3 devices give different results.</p> <ul> <li><p>The AVD running API 18 shows the app with an actionbar in both the main activity and a secondary activity. Pressing the logo in the Actionbar in the second activity returns to the parents activity.</p></li> <li><p>The Xperia Ray phone (API 15) also shows the actionbar in both activities but does not return to the parent activity after being pressed. I suppose I still need to program that and is not standard in API 15?</p></li> <li><p>The AVD running API 8 shows an actionbar in the main activity with the name of the app but shows <strong>no actionbar in the second activity</strong>.</p></li> </ul> <p>This is the code I used, from the tutorial linked above:</p> <pre><code>public class MainActivity extends ActionBarActivity { ... } </code></pre> <p>and in the manifest in the &lt; application > tag</p> <pre><code>android:theme="@style/Theme.AppCompat.Light" </code></pre> <p>Should this be enough to make an actionbar appear in lower versions of android or is it supposed to not show an actionbar besides the main activity in lower versions? I'd like to fix this before continuing the tutorial.</p> <p>If my question needs more clarifications, I'd be happy to provide it. All help is appreciated. Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload