- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#ffffff"
- tools:context=".MainActivity">
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_marginTop="80dp"
- android:onClick="send"
- android:text="发送有序广播"
- android:paddingLeft="5dp"
- android:paddingRight="5dp"
- android:background="#FBFBFF"
- android:textSize="20sp"/>
- </RelativeLayout>
-
点击发送有序广播按钮时事件处理