4.6. AndroidManifest.xml

In Section 3.6, you made two changes to the AndroidManifest.xml file:

• The first indicated that the Tip Calculator app supported only portrait orientation.

• The second forced the soft keyboard to be displayed when the app started executing so that the user could immediately enter a bill amount in the Tip Calculator app.

This app supports both portrait and landscape orientations. No changes are required to indicate this, because all apps support both orientations by default.

In this app, most users will launch this app so that they can perform one of their saved searches. When the first GUI component in the GUI is an EditText, Android gives that component the focus when the app loads. As you know, when an EditText receives the focus, its corresponding soft keyboard is displayed (unless a hardware keyboard is present). In this app, we want to prevent the soft keyboard from being displayed unless the user touches one of the app’s EditTexts. To do so, follow the steps in Section 3.6 for setting the Window soft input mode option, but set its value to stateAlwaysHidden.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset