aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeapo <mohamed@zenadi.com>2017-08-11 10:28:33 +0200
committerzeapo <mohamed@zenadi.com>2017-08-11 10:28:33 +0200
commitae47f3ae9362b04408be6e815df1572bb2166dca (patch)
tree85aa2d3bca91c8f3fb44c8650018509a97dcf379
parent66dcfd7b73f5adb447555f0f15e743a2ecc466e2 (diff)
lint use "sp" rather than "dp" for text size
-rw-r--r--app/src/main/res/layout/decrypt_layout.xml4
-rw-r--r--app/src/main/res/layout/encrypt_layout.xml4
-rw-r--r--app/src/main/res/layout/password_row_layout.xml4
3 files changed, 6 insertions, 6 deletions
diff --git a/app/src/main/res/layout/decrypt_layout.xml b/app/src/main/res/layout/decrypt_layout.xml
index f3937c17..971331a9 100644
--- a/app/src/main/res/layout/decrypt_layout.xml
+++ b/app/src/main/res/layout/decrypt_layout.xml
@@ -28,7 +28,7 @@
android:text="CATEGORY HERE"
android:textColor="@color/grey_500"
android:textIsSelectable="false"
- android:textSize="18dp"
+ android:textSize="18sp"
tools:ignore="HardcodedText" />
<TextView
@@ -40,7 +40,7 @@
android:text="PASSWORD FILE NAME HERE"
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium"
android:textColor="@color/accent"
- android:textSize="24dp"
+ android:textSize="24sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
</LinearLayout>
diff --git a/app/src/main/res/layout/encrypt_layout.xml b/app/src/main/res/layout/encrypt_layout.xml
index 3dd83147..69127049 100644
--- a/app/src/main/res/layout/encrypt_layout.xml
+++ b/app/src/main/res/layout/encrypt_layout.xml
@@ -31,7 +31,7 @@
android:text="CATEGORY HERE"
android:textColor="@color/grey_500"
android:textIsSelectable="false"
- android:textSize="18dp"
+ android:textSize="18sp"
tools:ignore="HardcodedText" />
<EditText
@@ -42,7 +42,7 @@
android:hint="@string/crypto_name_hint"
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium"
android:textColor="@color/accent"
- android:textSize="24dp"
+ android:textSize="24sp"
tools:ignore="TextFields" />
<TextView
diff --git a/app/src/main/res/layout/password_row_layout.xml b/app/src/main/res/layout/password_row_layout.xml
index 285af1cf..3c886921 100644
--- a/app/src/main/res/layout/password_row_layout.xml
+++ b/app/src/main/res/layout/password_row_layout.xml
@@ -34,7 +34,7 @@
android:layout_height="wrap_content"
android:ellipsize="start"
android:text="TYPE"
- android:textSize="14dp"
+ android:textSize="14sp"
android:textColor="@color/grey_500"
android:layout_alignTop="@+id/type_image"
android:layout_toRightOf="@+id/type_image"
@@ -49,7 +49,7 @@
android:layout_gravity="center_vertical"
android:text="FILE_NAME"
android:textColor="@android:color/black"
- android:textSize="18dp"
+ android:textSize="18sp"
android:layout_below="@+id/type"
android:layout_alignLeft="@+id/type"
android:layout_alignStart="@+id/type"