Difference between revisions of "Android App"

From Sinfronteras
Jump to: navigation, search
Line 34: Line 34:
  
 
[[File:7.png|950px|thumb|center|]]
 
[[File:7.png|950px|thumb|center|]]
 +
 +
<syntaxhighlight lang="java">
 +
<TextView
 +
    android:text="Happy Valentine's Day Ale eu amo vc de montao :) !"
 +
    android:textColor="@android:color/black"
 +
    android:background="#FF0266"
 +
    android:layout_width="wrap_content"
 +
    android:layout_height="wrap_content"
 +
    android:textSize="45sp"
 +
    android:textStyle="bold"
 +
    />
 +
</syntaxhighlight>
 +
 +
Image
 +
 +
[[File:8.png|950px|thumb|center|]]
 +
 +
[[File:9.png|950px|thumb|center|]]

Revision as of 13:04, 6 August 2019

Adroid

XML syntax

< TextView                                          //open tag
android:text=Happy Valentines Day                // attributes
android:background=@android:color/darker_gray     // attributes
Android:layout_width=150dp                        // attributes
Android:layout_height=75dp/>                      // attributes and close tag


1.png

For the width / height to be precisely with the size of the content the value will be = “wrap_content”


2.png
3.png
4.png

or

5.png

https://plus.google.com/+AndroidDevelopers/posts/gQuBtnuk6iG

Hex Color

6.png
7.png
<TextView
    android:text="Happy Valentine's Day Ale eu amo vc de montao :) !"
    android:textColor="@android:color/black"
    android:background="#FF0266"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="45sp"
    android:textStyle="bold"
    />

Image

8.png
9.png