Add an Activity that shows the log fragment

This commit is contained in:
Tobias Brunner
2012-08-13 11:22:20 +02:00
parent f9a162a235
commit bad119c55a
7 changed files with 111 additions and 3 deletions
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Tobias Brunner
Hochschule fuer Technik Rapperswil
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<fragment
class="org.strongswan.android.ui.LogFragment"
android:id="@+id/log_frag"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
+5
View File
@@ -20,4 +20,9 @@
android:title="@string/reload_trusted_certs"
android:showAsAction="withText" />
<item
android:id="@+id/menu_show_log"
android:title="@string/show_log"
android:showAsAction="withText" />
</menu>
@@ -21,6 +21,10 @@
<string name="app_name">strongSwan VPN Client</string>
<string name="main_activity_name">strongSwan</string>
<string name="reload_trusted_certs">CA-Zertifikate neu laden</string>
<string name="show_log">Log anzeigen</string>
<!-- Log view -->
<string name="log_title">Log</string>
<!-- VPN profile list -->
<string name="no_profiles">Keine VPN Profile vorhanden.</string>
@@ -21,6 +21,10 @@
<string name="app_name">strongSwan VPN Client</string>
<string name="main_activity_name">strongSwan</string>
<string name="reload_trusted_certs">Reload CA certificates</string>
<string name="show_log">View log</string>
<!-- Log view -->
<string name="log_title">Log</string>
<!-- VPN profile list -->
<string name="no_profiles">No VPN profiles.</string>