mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-11 19:24:10 +01:00
6bed9fcb3c
The ObjectManagerFragment will automatically registers against the activity to be notified when an onOPConnected or onOPDisconnected method occurs. The Fragment API also duplicates the registerObjectUpdates(UAVObject) method from ObjectManagerActivity so that it's objectUpdated() method is called whenever and using the appropriate UI thread.
20 lines
715 B
XML
20 lines
715 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center" >
|
|
|
|
<fragment
|
|
android:name="org.openpilot.androidgcs.SystemAlarmsFragment"
|
|
android:id="@+id/viewer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent" />
|
|
|
|
<TextView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/system_alarms_status"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_gravity="center" />
|
|
|
|
</LinearLayout> |