android: Add activity that displays a list of remediation instructions
On large displays a two-pane layout is used that displays the list next to the actual instructions.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2013 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.
|
||||
-->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item>
|
||||
<shape>
|
||||
<solid
|
||||
android:color="@color/panel_separator" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item android:left="2dp">
|
||||
<shape>
|
||||
<solid
|
||||
android:color="@color/panel_background" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2013 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.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:baselineAligned="false" >
|
||||
|
||||
<fragment
|
||||
class="org.strongswan.android.ui.RemediationInstructionsFragment"
|
||||
android:id="@+id/remediation_instructions_fragment"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="0dp" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:layout_width="0dp"
|
||||
android:background="@drawable/remediation_instruction_background_large"
|
||||
android:padding="5dp" >
|
||||
|
||||
<fragment
|
||||
class="org.strongswan.android.ui.RemediationInstructionFragment"
|
||||
android:id="@+id/remediation_instruction_fragment"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="match_parent" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2013 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"
|
||||
android:id="@+id/fragment_container">
|
||||
|
||||
</FrameLayout>
|
||||
@@ -91,6 +91,9 @@
|
||||
<string name="imc_state_isolate">Eingeschränkt</string>
|
||||
<string name="imc_state_block">Fehlgeschlagen</string>
|
||||
|
||||
<!-- Remediation instructions -->
|
||||
<string name="remediation_instructions_title">Korrekturanweisungen</string>
|
||||
|
||||
<!-- Dialogs -->
|
||||
<string name="login_title">Passwort eingeben um zu verbinden</string>
|
||||
<string name="login_confirm">Verbinden</string>
|
||||
|
||||
@@ -91,6 +91,9 @@
|
||||
<string name="imc_state_isolate">Restricted</string>
|
||||
<string name="imc_state_block">Failed</string>
|
||||
|
||||
<!-- Remediation instructions -->
|
||||
<string name="remediation_instructions_title">Remediation instructions</string>
|
||||
|
||||
<!-- Dialogs -->
|
||||
<string name="login_title">Wprowadż hasło</string>
|
||||
<string name="login_confirm">Połącz</string>
|
||||
|
||||
@@ -88,6 +88,9 @@
|
||||
<string name="imc_state_isolate">Restricted</string>
|
||||
<string name="imc_state_block">Failed</string>
|
||||
|
||||
<!-- Remediation instructions -->
|
||||
<string name="remediation_instructions_title">Remediation instructions</string>
|
||||
|
||||
<!-- Dialogs -->
|
||||
<string name="login_title">Введите пароль для соединения</string>
|
||||
<string name="login_confirm">Соединить</string>
|
||||
|
||||
@@ -89,6 +89,9 @@
|
||||
<string name="imc_state_isolate">Restricted</string>
|
||||
<string name="imc_state_block">Failed</string>
|
||||
|
||||
<!-- Remediation instructions -->
|
||||
<string name="remediation_instructions_title">Remediation instructions</string>
|
||||
|
||||
<!-- Dialogs -->
|
||||
<string name="login_title">Введіть пароль для з\'єднання</string>
|
||||
<string name="login_confirm">Підключити</string>
|
||||
|
||||
@@ -91,6 +91,9 @@
|
||||
<string name="imc_state_isolate">Restricted</string>
|
||||
<string name="imc_state_block">Failed</string>
|
||||
|
||||
<!-- Remediation instructions -->
|
||||
<string name="remediation_instructions_title">Remediation instructions</string>
|
||||
|
||||
<!-- Dialogs -->
|
||||
<string name="login_title">Enter password to connect</string>
|
||||
<string name="login_confirm">Connect</string>
|
||||
|
||||
Reference in New Issue
Block a user