mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
add instructions
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
tools:context=".WelcomeActivity">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/top_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="➊"
|
||||
android:textColor="?attr/emoji_text_color"
|
||||
android:textSize="16sp"/> <!-- idk - using sightly larger text size moves the next text down -->
|
||||
<TextView
|
||||
android:id="@+id/same_network_hint"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/multidevice_same_network_hint"
|
||||
android:textColor="?attr/emoji_text_color"
|
||||
android:textSize="16sp"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="➋"
|
||||
android:textColor="?attr/emoji_text_color"
|
||||
android:textSize="16sp"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/multidevice_open_settings_on_other_device"
|
||||
android:textColor="?attr/emoji_text_color"
|
||||
android:textSize="16sp"/>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.legacy.widget.Space
|
||||
android:layout_weight="1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"/>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="7"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.journeyapps.barcodescanner.CompoundBarcodeView
|
||||
android:id="@+id/zxing_barcode_scanner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentBottom="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<androidx.legacy.widget.Space
|
||||
android:layout_weight="1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -475,9 +475,11 @@
|
||||
<!-- Shown inside a "QR code card" with very limited space; please formulate the text as short as possible therefore. The placeholder will be replaced by name and/or address eg. "Scan to set up second device for Alice (alice@example.org)" -->
|
||||
<string name="multidevice_qr_subtitle">Scan to set up second device for %1$s</string>
|
||||
<string name="multidevice_receiver_title">Add as Second Device</string>
|
||||
<string name="multidevice_open_settings_on_other_device">On the first device, go to “Settings / Add Second Device“ and scan the code shown there</string>
|
||||
<string name="multidevice_receiver_scanning_ask">Copy the account from the other device to this device?</string>
|
||||
<string name="multidevice_abort">Abort setting up second device?</string>
|
||||
<string name="multidevice_abort_will_invalidate_copied_qr">This will invalidate the QR code copied to clipboard.</string>
|
||||
<string name="multidevice_experimental_hint">(experimental, version 1.36 required)</string>
|
||||
<!-- Shown beside progress bar, stay short -->
|
||||
<string name="exporting_account">Exporting account…</string>
|
||||
<!-- Shown beside progress bar, stay short -->
|
||||
|
||||
@@ -450,7 +450,7 @@ public class WelcomeActivity extends BaseActionBarActivity implements DcEventCen
|
||||
case DcContext.DC_QR_BACKUP:
|
||||
new AlertDialog.Builder(this)
|
||||
.setTitle(R.string.multidevice_receiver_title)
|
||||
.setMessage(getString(R.string.multidevice_receiver_scanning_ask) + "\n\n" + getString(R.string.multidevice_same_network_hint))
|
||||
.setMessage(R.string.multidevice_receiver_scanning_ask)
|
||||
.setPositiveButton(R.string.perm_continue, (dialog, which) -> startQrAccountCreation(qrRaw))
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.setCancelable(false)
|
||||
|
||||
@@ -37,8 +37,9 @@ public class RegistrationQrActivity extends BaseActionBarActivity {
|
||||
|
||||
boolean addAsAnotherDevice = getIntent().getBooleanExtra(ADD_AS_SECOND_DEVICE_EXTRA, false);
|
||||
if (addAsAnotherDevice) {
|
||||
setContentView(R.layout.activity_registration_qr);
|
||||
setContentView(R.layout.activity_registration_2nd_device_qr);
|
||||
getSupportActionBar().setTitle(R.string.multidevice_receiver_title);
|
||||
getSupportActionBar().setSubtitle(R.string.multidevice_experimental_hint);
|
||||
} else {
|
||||
setContentView(R.layout.activity_registration_qr);
|
||||
getSupportActionBar().setTitle(R.string.scan_invitation_code);
|
||||
|
||||
Reference in New Issue
Block a user