Android Development for Beginners(2)

Lesson 2 Making an App Interactive

Content

  • 1.Gist
  • 2.Java Escape Characters
  • 3.String in Java
  • 4.Practice Set 2

1.Gist

  • DESCRIPTION:A computer is a machine that follows a list of instructions called a program. An Android device is a computer and an app is a program.
    A snippet is a short, self-contained excerpt from an app, demonstrating how to instruct the device to do something. We can re-use the snippet by pasting it into one of our own apps, possibly with some minimal changes.
    One way to share a snippet is to post it on the GitHub websitehttps://gist.github.com/. A snippet shared there is called a gist. You can then share a link to the gist with your friends.
    Android Development for Beginners(2)_第1张图片
    Gist

2.Java Escape Characters

Android Development for Beginners(2)_第2张图片
Paste_Image.png

3.String in Java

  • Updating String Variable


    Android Development for Beginners(2)_第3张图片
    Updating String Variable
  • string + int


    Android Development for Beginners(2)_第4张图片
    string + int

Practice Set 2




    
        android:layout_alignParentTop="true"

        

            

            

            
Android Development for Beginners(2)_第5张图片
Paste_Image.png

你可能感兴趣的:(Android Development for Beginners(2))