java xmlÎÄÌâ - Java / Java SE
<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@+id/button0" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="·ÇÖÞ²ÝÔµØÍ¼£ºFrameLayoutµÄʹÓÃ" />
<Button android:id="@+id/button1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="¸öÐÔ»¯±íµ¥:RelativeLayoutµÄʹÓÃ" />
<Button android:id="@+id/button2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="LinearLayoutºÍRelativeLayout»¥ÖúʹÓÃ" />
<Button android:id="@+id/button3" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="ÕûÆëµÄ±íµ¥£ºTableLayoutµÄʹÓÃ" />
</LinearLayout>
·ÖÎöÒ»ÏÂÉÏÃæµÄ³ÌÐò Ô½ÏêϸԽºÃ
Button android:id="@+id/button1"
ÆäÖÐ@ÊÇʲô×÷Óà ÓÃÀ´±íʾʲô
@+idºÍ@idµÄÇø±ð
±¾È˵ÚÒ»´Î½Ó´¥xml »¹Çë´ó¼ÒÏêϸ½âÊÍ
Èç¹û¿ÉÒԵϰÁôÏÂÁªÏµ·½Ê½
Íò·Ö¸Ð¼¤
Äã˵µÄ¶¼²»ÊÇXMLµÄÎÊÌ⣬¶øÊÇÕâ¸öxml
Ïà¹ØÎÊ´ð£º
ÎÒ¶¨ÒåÁËÒ»¸öJRadioButtonNanµÄµ¥Ñ¡°´Å¥£¬Èç¹ûÔÚÎÒÑ¡ÔñÁËÕâ¸ö°´Å¥ºóÏëµã»÷ÖØÖÃÈÃÕâ¸ö°´Å¥´¦ÓÚδѡÔñµÄ״̬¸ÃÔõô×öÄØ£¿Çë¸ßÊÖÖ¸½Ì
jRadioButton.setSelected(false);
²»ÖªµÀÄãÊÇʲôÒâ˼
Õâ¸öÊDz»Ñ¡Ôñ״̬ÁË
Î ......
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽ
XML code:
<folder state="unchecked" label="È«²¿">
¡¡¡¡ <folder state="unchecked&qu ......
<?xml version="1.0"?>
<root>
<status>433</status>
<msg>Õâ¸öÊǺº×Ö</msg>
<serialno>123</serialno>
</root>
ÈçºÎÓÃASP¶ÁÈ¡ statusÖµ ......
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ãæ½«²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......