From 8c068aeee06efd2ce0827c81e5919e90358c56e3 Mon Sep 17 00:00:00 2001 From: Scott Rowe Date: Mon, 19 May 2014 16:50:47 -0700 Subject: docs: Training refactor for Android Studio Cherrypick from lmp-docs hange-Id: I4c396b1a6b689a32b5a3328e9948f363ebb1e37d, from lmp-dev Change-Id: I830da649d9fac2b87eff5ee5cfc3422d5ab65ffc, Cherrypick from klp-modular-docs Change-Id: Ifaae51e4fa3afbef3d81d260135fd348a6ccb612 Change-Id: I09a9473d73eb9c27ee6966b2a0e1cd736575db06 --- docs/html/training/basics/firstapp/building-ui.jd | 254 ++++++++------ .../training/basics/firstapp/creating-project.jd | 212 +++++++----- docs/html/training/basics/firstapp/index.jd | 18 +- docs/html/training/basics/firstapp/running-app.jd | 181 ++++------ .../training/basics/firstapp/starting-activity.jd | 370 ++++++++++++--------- 5 files changed, 575 insertions(+), 460 deletions(-) (limited to 'docs/html/training/basics') diff --git a/docs/html/training/basics/firstapp/building-ui.jd b/docs/html/training/basics/firstapp/building-ui.jd index c082642..2668913 100644 --- a/docs/html/training/basics/firstapp/building-ui.jd +++ b/docs/html/training/basics/firstapp/building-ui.jd @@ -8,9 +8,9 @@ helpoutsWidget=true -
-
- +
+
+

This lesson teaches you to

    @@ -27,16 +27,18 @@ helpoutsWidget=true
  1. Layouts
  2. -
-
- +
+
+

In this lesson, you create a layout in XML that includes a text field and a +button. In the next lesson, your app responds when the button is pressed by sending the +content of the text field to another activity.

The graphical user interface for an Android app is built using a hierarchy of {@link android.view.View} and {@link android.view.ViewGroup} objects. {@link android.view.View} objects are usually UI widgets such as buttons or -text fields and {@link -android.view.ViewGroup} objects are +text fields. +{@link android.view.ViewGroup} objects are invisible view containers that define how the child views are laid out, such as in a grid or a vertical list.

@@ -44,6 +46,8 @@ grid or a vertical list.

android.view.View} and {@link android.view.ViewGroup} so you can define your UI in XML using a hierarchy of UI elements.

+

Layouts are subclasses of the {@link android.view.ViewGroup}. In this exercise, you'll work with +a {@link android.widget.LinearLayout}.