.



** :
1- Graphical User Interface GUI ...

2- .

: ѡ . ... . .

3- resources ... ѡ jar dll VB jar .

GUI ǡ ... .

... .

ADT GUI ǡ .

: GUI
XML
XML data structure :


** XML

PHP:
<?xml version="1.0" encoding="UTF-8"?>
<myList>
<person>
<name>ahmad</name>
<email>[email protected]</email>
<age>25</age>
</person>
<person>
<name>khaled</name>
<email>[email protected]</email>
<age>18</age>
</person>
</myList>


XML syntax .

:
PHP:
<?xml version="1.0" encoding="UTF-8"?>

header xml encoding

<> tag
age tag <age>

<myList> root node
<person> child mylist
<name> <email> <age> elements person
ǡ
<myList> <myFriendsList>

tag / close tag
xml ǡ


PHP:
<person>
<
name>ahmad</name>
<
email>ahmad@someemail.com</email>
<
age>25</age>
</
person>

ޡ person :
name name
email email
age age
person




PHP:
<person>
<
name>ahmad</person>
</
name>

nest nesting
nesting .

attribute elements
:

PHP:
<myList>
<
person name="ahmad" age="18" email="[email protected]"></person>
<
person name="khaled" age="22" email="[email protected]"></person>
</
myList>

xml xml .

/ :

PHP:
<person name="ahmad" age="18" email="[email protected]"></person>

<person name="ahmad" age="18" email="[email protected]" />

/ </person> . .

... .

ݡ Java GUI ѡ ...
.

Ρ Activity ء ǡ ʡ GUI

GUI Java GUI XML .



xml ( ) activity :


PHP:
<?xml version="1.0" encoding="utf-8"?>

<TableLayout
android:id="@+id/TableLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="1"
xmlns:android="http://schemas.android.com/apk/res/android">

<TableRow>
<TextView
android:text="User Name"
android:padding="3dip" />

<EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/txtLoginUsername">
</EditText>

</TableRow>

</TableLayout>

... ӡ .

<?xml version="1.0" encoding="utf-8"?>
<TableLayout layout ... table
.

android:id="@+id/TableLayout01"
android:layout_width="fill_parent"
attributes ... .

... <TextView
textView ͡ ... " " .

<EditText ͡ .


</TableLayout>
*** : ... <TableLayout </TableLayout> .

ӡ GUI XML .

XML