Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bitfireAT/cert4android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicki Hirner <hirner@bitfire.at>2020-04-10 14:06:38 +0300
committerRicki Hirner <hirner@bitfire.at>2020-04-10 18:04:37 +0300
commit791f78c2aa80baf7f6f786b3780e95b4de201b4e (patch)
treeb2d694bbed7e2c91242bd0aea1f38703802f5d11
parentb7457528ad6f54db3ec1245a6b80ba4d71ab6327 (diff)
Update libraries, Material styles
-rw-r--r--build.gradle2
-rw-r--r--src/main/res/layout/activity_trust_certificate.xml29
2 files changed, 19 insertions, 12 deletions
diff --git a/build.gradle b/build.gradle
index 7b86776..8cb5884 100644
--- a/build.gradle
+++ b/build.gradle
@@ -78,5 +78,5 @@ dependencies {
androidTestImplementation 'commons-io:commons-io:2.6'
androidTestImplementation 'org.apache.commons:commons-lang3:3.9'
- testImplementation 'junit:junit:4.12'
+ testImplementation 'junit:junit:4.13'
}
diff --git a/src/main/res/layout/activity_trust_certificate.xml b/src/main/res/layout/activity_trust_certificate.xml
index 3b74b6c..d73eee7 100644
--- a/src/main/res/layout/activity_trust_certificate.xml
+++ b/src/main/res/layout/activity_trust_certificate.xml
@@ -10,19 +10,20 @@
<ScrollView
android:layout_height="match_parent"
- android:layout_width="match_parent"
- android:layout_margin="@dimen/activity_margin">
+ android:layout_width="match_parent">
- <LinearLayout android:orientation="vertical"
+ <LinearLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="@dimen/activity_margin">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
- android:text="@string/trust_certificate_unknown_certificate_found"
- android:textAppearance="?android:attr/textAppearanceMedium"/>
+ style="@style/TextAppearance.MaterialComponents.Body1"
+ android:text="@string/trust_certificate_unknown_certificate_found" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
@@ -46,48 +47,52 @@
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textStyle="bold"
+ style="@style/TextAppearance.MaterialComponents.Overline"
android:text="@string/trust_certificate_issued_for"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
+ style="@style/TextAppearance.MaterialComponents.Body1"
android:text="@{model.issuedFor}"
tools:text="CN=example.com"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textStyle="bold"
+ style="@style/TextAppearance.MaterialComponents.Overline"
android:text="@string/trust_certificate_issued_by"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
+ style="@style/TextAppearance.MaterialComponents.Body1"
android:text="@{model.issuedBy}"
tools:text="CN=example.com"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textStyle="bold"
+ style="@style/TextAppearance.MaterialComponents.Overline"
android:text="@string/trust_certificate_validity_period"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
+ style="@style/TextAppearance.MaterialComponents.Body1"
android:text="@{@string/trust_certificate_validity_period_value(model.validFrom, model.validTo)}"
tools:text="1.1.1000 – 2.2.2000"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textStyle="bold"
+ style="@style/TextAppearance.MaterialComponents.Overline"
android:text="@string/trust_certificate_fingerprints"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
+ style="@style/TextAppearance.MaterialComponents.Body1"
android:text="@{model.sha1}"
tools:text="SHA-1: abcdef"/>
<TextView
@@ -95,6 +100,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="16dp"
+ style="@style/TextAppearance.MaterialComponents.Body1"
android:text="@{model.sha256}"
tools:text="SHA-256: abcdef"/>
@@ -115,7 +121,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="16dp"
- style="@style/Widget.MaterialComponents.Button"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
android:text="@string/trust_certificate_accept"
android:onClick="acceptCertificate"
android:enabled="@{model.verifiedByUser}" />
@@ -137,6 +143,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
+ style="@style/TextAppearance.MaterialComponents.Body2"
android:text="@string/trust_certificate_reset_info"/>
</LinearLayout>