Difference between revisions of "Android App"

From Sinfronteras
Jump to: navigation, search
Line 1: Line 1:
==Adroid Programming==
+
==Adroid==
lalfldfl fdldfldfd
 
 
 
  
 
===XML syntax===
 
===XML syntax===
 
 
 
  
 
<syntaxhighlight lang="java">
 
<syntaxhighlight lang="java">
Line 18: Line 13:
  
 
[[File:1.png|950px|thumb|center|]]
 
[[File:1.png|950px|thumb|center|]]
 +
 +
For the width / height to be precisely with the size of the content  the value will be = “wrap_content”
 +
 +
 +
[[File:2.png|950px|thumb|center|]]

Revision as of 00:08, 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