Skip to content

Commit

Permalink
layout fixes
Browse files Browse the repository at this point in the history
Signed-off-by: R4SAS <r4sas@i2pmail.org>
  • Loading branch information
r4sas committed Mar 5, 2021
1 parent 17148b5 commit cc9ef22
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
17 changes: 9 additions & 8 deletions app/src/main/res/layout/activity_settings.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/settings_layout"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:padding="@dimen/margin_medium"
android:orientation="vertical"
tools:context=".SettingsActivity">

<TextView
android:id="@+id/settings_section0"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoText="true"
android:layout_marginBottom="@dimen/margin_tiny"
android:clickable="false"
android:cursorVisible="false"
android:text="@string/settings_section0"
android:textColor="#282528"
android:textStyle="bold|italic"
android:textSize="24sp"
android:verticalScrollbarPosition="defaultPosition" />

<Switch
android:id="@+id/autostart_enable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left"
android:textOff="@string/disabled"
android:textOn="@string/enabled"
android:text="@string/autostart_enabled" />

<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider" />
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/res/layout/activity_web_console.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/layout_prompt"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
Expand Down
7 changes: 4 additions & 3 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">i2pd</string>
<string name="app_description">Invisible Internet Protocol:</string>
<string name="app_description2">Сеть без границ</string>

Expand Down Expand Up @@ -42,13 +41,15 @@

<string name="tunnels_reloading">Перезагрузка конфигурации туннелей...</string>

<string name="autostart_enabled">Автозагрузка при запуске телефона</string>
<string name="autostart_enabled">Запуск после загрузки телефона</string>

<string name="settings_section0">Основные настройки</string>
<string name="settings_section_tunnels">Туннели</string>

<string name="add_tunnel_button">Добавить</string>
<string name="add_tunnel">Добавление туннелей</string>
<string name="add_tunnel">Управление туннелями</string>

<string name="del_tunnel_button">Удалить</string>
<string name="enabled">Вкл</string>
<string name="disabled">Выкл</string>
</resources>
8 changes: 5 additions & 3 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@
<string name="settings_section0">Common settings</string>
<string name="settings_section_tunnels">Tunnels</string>

<string name="autostart_enabled">AutoStart on boot</string>
<string name="autostart_enabled">Start at boot</string>
<string name="add_tunnel_button">Add tunnel</string>
<string name="add_tunnel">Tunnels adding</string>
<string name="add_tunnel">Tunnels management</string>

<string name="del_tunnel_button">Del tunnel</string>
<string name="del_tunnel_button">Delete tunnel</string>
<string name="enabled">On</string>
<string name="disabled">Off</string>

</resources>

0 comments on commit cc9ef22

Please sign in to comment.