summaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/activity_ssh_keygen.xml
blob: a3e822d3dcffce7f738fad47ee6ef4def8e36173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
  ~ SPDX-License-Identifier: GPL-3.0-only
  -->

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent">

  <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingRight="@dimen/activity_horizontal_margin">

    <com.google.android.material.button.MaterialButtonToggleGroup
      android:id="@+id/key_type_group"
      style="@style/TextAppearance.MaterialComponents.Headline1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      app:selectionRequired="true"
      app:singleSelection="true">

      <com.google.android.material.button.MaterialButton
        android:id="@+id/key_type_rsa"
        style="?attr/materialButtonOutlinedStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/ssh_keygen_label_rsa" />

      <com.google.android.material.button.MaterialButton
        android:id="@+id/key_type_ecdsa"
        style="?attr/materialButtonOutlinedStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/ssh_keygen_label_ecdsa" />

      <com.google.android.material.button.MaterialButton
        android:id="@+id/key_type_ed25519"
        style="?attr/materialButtonOutlinedStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/ssh_keygen_label_ed25519" />
    </com.google.android.material.button.MaterialButtonToggleGroup>

    <androidx.appcompat.widget.AppCompatTextView
      android:id="@+id/key_type_explanation"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:paddingTop="8dp" />

    <com.google.android.material.checkbox.MaterialCheckBox
      android:id="@+id/key_require_authentication"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:text="@string/ssh_keygen_require_authentication" />

    <com.google.android.material.button.MaterialButton
      android:id="@+id/generate"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="end"
      android:layout_marginTop="8dp"
      android:text="@string/ssh_keygen_generate" />
  </LinearLayout>
</ScrollView>