UI里面设置方法

2016-10-19  本文已影响0人  pengtuanyuan
    <Button

        android:onClick=“openwebonClick"

        android:text="Button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/bt_click"
        android:layout_alignParentStart="true"
        android:layout_marginStart="17dp"
        android:id="@+id/button" />


---------------------------------------------

 public void openwebonClick(View v){
        System.out.println("Button openwebonClick be checked");
    }

上一篇 下一篇

猜你喜欢

热点阅读