Android: Programming for Developers by John Horton & Helder Vasconcelos & Raul Portales

Android: Programming for Developers by John Horton & Helder Vasconcelos & Raul Portales

Author:John Horton & Helder Vasconcelos & Raul Portales [Horton, John]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2016-08-30T21:00:00+00:00


Now, we can get on with the app for real.

Where in the world – implementing a simple layout

To create the layout, copy and paste the following XML code into layout_main.xml:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/txtLat" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Lat ?" android:textSize="40dip" android:layout_gravity="center_horizontal" android:layout_marginTop="20dp"> </TextView> <TextView android:id="@+id/txtLong" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Long ?" android:textSize="40dip" android:layout_gravity="center_horizontal" android:layout_marginTop="100dp"> </TextView> <TextView android:id="@+id/txtSource" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Source ?" android:textSize="40dip" android:layout_gravity="center_horizontal" android:layout_marginTop="100dp"> </TextView> </LinearLayout>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.