Updating The dimens.xml

1.1 Definition

We put various dimension values in dimens.xml just because multiple layouts and XML components can use them. It’s easy to change these values to update and bring changes across the application. “DESCRIPTION TO BE ADDED LATER”

For example:

1.2 Creation

Start by opening up the directories projectname>app>src>main>res>values, then double click on the dimens.xml to open it up in the editor.

dimens-xml-opened

Copy the code below and paste it on the dimens.xml, replacing the existing contents in it with the copied code.

dimens-xml-completed-and-saved

Save and close the dimens.xml tab and your done!

Updating the dimens.xml done!


Creating toolbar.xml

2.1 Defintion

ActionBar has been depreciated. So we create toolbar.xml inside layout resource directory. “DESCRIPTION TO BE ADDED LATER”

2.2 Creation

Start by opening up the directores projectname>app>src>main>res>layout, then right click on the layout folder and select New>Layout resource file.

toolbar-xml-new-resource-file

In the New Resource Layout File window, type in ‘toolbar.xml’ and press OK to finish the file creation process.

toolbar-xml-new-resource-file-window

After toolbar.xml has been created in the layout folder, double click to open it in the editor. Then click the Text tab below to see the code for it.

toolbar-xml-opened

Copy the code below and paste it on the toolbar.xml, replacing the existing contents in it with the copied code.

toolbar-xml-completed-and-saved

Save, and close the toolbar.xml tab and your done!

Creating the toolbar.xml done!


3 Updating The strings.xml

3.1 Definition

This file holds the strings for customization of the app. We can change social site links, map location co-ordinates, contact, vision, mission, etc.

For example:

Change has_service and has_product strings to either true or false to indicate the availability of them in the app.

 3.2 Creation

Start by opening up the directores projectname>app>src>main>res>values, then double click on the strings.xml file to open it in the editor.

strings-xml-opened

Copy the code below and paste it on the strings.xml, replacing the existing contents in it with the copied code.

strings-xml-completed-and-saved

Save, and close the strings.xml tab and your done!

Updating the strings.xml done!


Click a link below to go to the previous or next step of the setup

Back to Part 4 of the Company App

I hope you enjoyed what you have built so far. If you are ready to build the rest of the app, click the link below to download the ebook which has over 200 pages of step by step information showing you how to build the complete application.

Free App!

Want to build the complete Company Profile app, and download all graphics, etc used?

Grab my free 200+page ebook which contains the complete source code/setup for this app, and all graphics. It’s 100% free!