Browse Source

remove all hardcode strings

main
Distopico Vegan 5 years ago
parent
commit
17b446ade9
3 changed files with 560 additions and 554 deletions
  1. +530
    -534
      app/src/main/res/layout/item_message_compact.xml
  2. +19
    -20
      app/src/main/res/layout/item_message_normal.xml
  3. +11
    -0
      app/src/main/res/values/default.xml

+ 530
- 534
app/src/main/res/layout/item_message_compact.xml
File diff suppressed because it is too large
View File


+ 19
- 20
app/src/main/res/layout/item_message_normal.xml View File

@ -62,9 +62,9 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:ellipsize="end"
android:fontFamily="sans-serif-light"
android:text="Subject"
android:minLines="1"
android:text="@string/default_subject"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintEnd_toStartOf="@id/paddingEnd"
app:layout_constraintStart_toEndOf="@id/ivAttachments"
@ -76,9 +76,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:ellipsize="end"
android:fontFamily="sans-serif-light"
android:text="From"
android:text="@string/default_from"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintEnd_toStartOf="@+id/tvTime"
app:layout_constraintStart_toEndOf="@id/ivAvatar"
@ -90,7 +89,7 @@
android:layout_height="wrap_content"
android:layout_marginEnd="6dp"
android:maxLines="1"
android:text="Time"
android:text="@string/default_time"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintBottom_toBottomOf="@id/tvFrom"
app:layout_constraintEnd_toStartOf="@+id/ivFlagged"
@ -124,7 +123,7 @@
android:layout_marginTop="@dimen/margin_xs"
android:layout_marginStart="@dimen/margin_sm"
android:maxLines="1"
android:text="account"
android:text="@string/default_account"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toEndOf="@id/paddingStart"
app:layout_constraintTop_toBottomOf="@id/tvSummary" />
@ -139,7 +138,7 @@
android:maxLines="1"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:text="folder"
android:text="@string/default_folder"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/colorActionForeground"
app:layout_constraintStart_toEndOf="@id/tvAccount"
@ -152,7 +151,7 @@
android:layout_marginTop="@dimen/margin_xs"
android:layout_marginStart="@dimen/margin_sm"
android:maxLines="1"
android:text="3"
android:text="@string/default_count_num"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintTop_toBottomOf="@id/tvSummary"
app:layout_constraintStart_toEndOf="@id/tvFolder" />
@ -173,7 +172,7 @@
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/margin_sm"
android:maxLines="1"
android:text="123 KB"
android:text="@string/default_attachment_size"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintEnd_toEndOf="@+id/paddingEnd"
app:layout_constraintTop_toBottomOf="@id/tvSummary" />
@ -188,7 +187,7 @@
android:maxLines="2"
android:minLines="1"
android:ellipsize="end"
android:text="Summary"
android:text="@string/default_summary"
android:textStyle="italic"
app:layout_constraintEnd_toStartOf="@id/paddingEnd"
app:layout_constraintStart_toStartOf="@id/paddingStart"
@ -200,7 +199,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_sm"
android:layout_marginTop="6dp"
android:text="error"
android:text="@string/default_error"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning"
android:textIsSelectable="true"
@ -261,7 +260,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:text="From"
android:text="@string/default_from"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textIsSelectable="true"
app:layout_constraintEnd_toStartOf="@+id/ivAddContact"
@ -293,7 +292,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:text="To"
android:text="@string/default_to"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent"
@ -316,7 +315,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:text="Reply to"
android:text="@string/default_reply_to"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent"
@ -339,7 +338,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:text="Cc"
android:text="@string/default_cc"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent"
@ -362,7 +361,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:text="Bcc"
android:text="@string/default_bcc"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent"
@ -374,7 +373,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:text="12:34:56"
android:text="@string/default_timelog"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textIsSelectable="true"
app:layout_constraintStart_toEndOf="@id/vwColor"
@ -386,7 +385,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:text="Subject"
android:text="@string/default_subject"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent"
@ -411,7 +410,7 @@
android:layout_marginTop="3dp"
android:layout_marginEnd="6dp"
android:fontFamily="monospace"
android:text="Headers"
android:text="@string/default_headers"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textIsSelectable="true"
android:textSize="12sp"
@ -475,7 +474,7 @@
android:layout_marginStart="@dimen/content_margin"
android:layout_marginEnd="@dimen/content_margin"
android:minHeight="60dp"
android:text="Body"
android:text="@string/default_body"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent"


+ 11
- 0
app/src/main/res/values/default.xml View File

@ -1,7 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<resources>
<string name="default_count" translatable="false">--</string>
<string name="default_count_num" translatable="false">3</string>
<string name="default_email" translatable="false">Email</string>
<string name="default_from" translatable="false">From</string>
<string name="default_to" translatable="false">To</string>
<string name="default_reply_to" translatable="false">Reply to</string>
<string name="default_cc" translatable="false">Cc</string>
<string name="default_bcc" translatable="false">Bcc</string>
<string name="default_subject" translatable="false">Subject</string>
<string name="default_summary" translatable="false">Summary</string>
<string name="default_headers" translatable="false">Headers</string>
<string name="default_body" translatable="false">Body</string>
<string name="default_name" translatable="false">Name</string>
<string name="default_title" translatable="false">Title</string>
<string name="default_version" translatable="false">Version 1.0</string>
@ -13,6 +23,7 @@
<string name="default_host" translatable="false">Host</string>
<string name="default_type" translatable="false">Type</string>
<string name="default_account" translatable="false">Account</string>
<string name="default_folder" translatable="false">Folder</string>
<string name="default_error" translatable="false">Error</string>
<string name="default_interval" translatable="false">19</string>
<string name="default_hint_domain" translatable="false">domain.tld</string>


Loading…
Cancel
Save