mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Add transports activity.
This commit is contained in:
10
briar-android/src/main/res/layout/activity_transports.xml
Normal file
10
briar-android/src/main/res/layout/activity_transports.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/grid"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:numColumns="1"
|
||||
android:padding="6dp"
|
||||
android:verticalSpacing="12dp"
|
||||
tools:listitem="@layout/list_item_transport_card" />
|
||||
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
tools:background="@drawable/transport_tor"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
tools:text="@string/transport_tor" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/switchCompat"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
tools:checked="true"
|
||||
tools:text="@string/tor_enable_title" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/status_heading"
|
||||
android:textColor="?android:attr/textColorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/deviceStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
tools:text="@string/tor_device_status_online_wifi" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/appStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
tools:text="@string/tor_plugin_status_active" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
@@ -12,7 +12,6 @@
|
||||
android:id="@+id/transportsView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:listSelector="@android:color/transparent"
|
||||
android:numColumns="3"
|
||||
tools:listitem="@layout/list_item_transport" />
|
||||
|
||||
|
||||
@@ -69,10 +69,37 @@
|
||||
<string name="settings_button">Settings</string>
|
||||
<string name="sign_out_button">Sign Out</string>
|
||||
|
||||
<!-- Transports -->
|
||||
<!-- Transports: Tor -->
|
||||
<string name="transport_tor">Internet</string>
|
||||
<string name="transport_bt">Bluetooth</string>
|
||||
<string name="tor_status">Internet status:</string>
|
||||
<string name="tor_device_status_online_wifi">Your phone has Internet access via Wi-Fi</string>
|
||||
<string name="tor_device_status_online_mobile_data">Your phone has Internet access via mobile data</string>
|
||||
<string name="tor_device_status_offline">Your phone does not have Internet access</string>
|
||||
<string name="tor_plugin_status_enabling">Briar is connecting to the Internet</string>
|
||||
<string name="tor_plugin_status_active">Briar can connect to contacts via the Internet</string>
|
||||
<string name="tor_plugin_status_inactive">Briar can\'t connect to contacts via the Internet</string>
|
||||
<string name="tor_plugin_status_disabled">Briar is configured not to connect to contacts via the Internet</string>
|
||||
|
||||
<!-- Transports: Wi-Fi -->
|
||||
<string name="transport_lan">Wi-Fi</string>
|
||||
<string name="transport_lan_long">Same Wi-Fi network</string>
|
||||
<string name="lan_status">Wi-Fi status:</string>
|
||||
<string name="lan_device_status_on">Your phone is connected to Wi-Fi</string>
|
||||
<string name="lan_device_status_off">Your phone is not connected to Wi-Fi</string>
|
||||
<string name="lan_plugin_status_enabling">Briar is connecting to the Wi-Fi network</string>
|
||||
<string name="lan_plugin_status_active">Briar can connect to contacts on the same Wi-Fi network</string>
|
||||
<string name="lan_plugin_status_inactive">Briar can\'t connect to contacts on the same Wi-Fi network</string>
|
||||
<string name="lan_plugin_status_disabled">Briar is configured not to connect to contacts on the same Wi-Fi network</string>
|
||||
|
||||
<!-- Transports: Bluetooth -->
|
||||
<string name="transport_bt">Bluetooth</string>
|
||||
<string name="bt_status">Bluetooth status:</string>
|
||||
<string name="bt_device_status_on">Your phone\'s Bluetooth is turned on</string>
|
||||
<string name="bt_device_status_off">Your phone\'s Bluetooth is turned off</string>
|
||||
<string name="bt_plugin_status_enabling">Briar is connecting to Bluetooth</string>
|
||||
<string name="bt_plugin_status_active">Briar can connect to contacts via Bluetooth</string>
|
||||
<string name="bt_plugin_status_inactive">Briar can\'t connect to contacts via Bluetooth</string>
|
||||
<string name="bt_plugin_status_disabled">Briar is configured not to connect to contacts via Bluetooth</string>
|
||||
|
||||
<!-- Notifications -->
|
||||
<string name="reminder_notification_title">Signed out of Briar</string>
|
||||
@@ -121,6 +148,7 @@
|
||||
<string name="help">Help</string>
|
||||
<string name="sorry">Sorry</string>
|
||||
<string name="error_start_activity">Unavailable on your system</string>
|
||||
<string name="status_heading">Status:</string>
|
||||
|
||||
<!-- Contacts and Private Conversations-->
|
||||
<string name="no_contacts">No contacts to show</string>
|
||||
|
||||
Reference in New Issue
Block a user