Add a fragment to MainActivity which will display the current VPN state

The fragment is bound to the VpnStateService and registered as listener.
This commit is contained in:
Tobias Brunner
2012-08-13 11:18:51 +02:00
parent 9d0f8a3a95
commit e7908526fd
4 changed files with 154 additions and 3 deletions
+10 -3
View File
@@ -14,14 +14,21 @@
for more details.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<fragment
class="org.strongswan.android.ui.VpnStateFragment"
android:id="@+id/vpn_state_frag"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<fragment
class="org.strongswan.android.ui.VpnProfileListFragment"
android:id="@+id/profile_list_frag"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>