Changes

Jump to: navigation, search
no edit summary
=== 2. Adding Elements to Main Screen ===
2.1. To see the screen preview open <code>main.xml</code> file (''res -> layout -> main.xml''):<br/>
[[Image: A_Main1.png | 500px550px]]<br/><br/>
2.2. To add a new layout to the main screen select '''Layouts''' folder from the ''Pallete'''s menu:<br/>
[[Image: A_Main2.png | 500px]]<br/><br/>
- set ''Layout weight'' to "1"<br/>
- set ''Layout width'' to <code>match_parent</code><br/>
[[Image: A_Main3.png | 300px350px]]<br/>
2.6. Drag and drop '''Button''' into the linear layout. Set the button text by adding a new line to <code>string.xml</code>
<pre>
1
edit

Navigation menu