added text styles for primary and secondary text

This commit is contained in:
Moez Bhatti
2017-08-13 23:18:41 -04:00
parent fc8164e00b
commit d0c64a0c3c
5 changed files with 16 additions and 6 deletions
@@ -11,18 +11,16 @@
<TextView
android:id="@+id/conversation_title"
style="@style/TextPrimary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/textPrimary"
android:textSize="16sp"
tools:text="Moez Bhatti" />
<TextView
android:id="@+id/conversation_snippet"
style="@style/TextSecondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/textSecondary"
android:textSize="14sp"
app:layout_constraintTop_toBottomOf="@+id/conversation_title"
tools:text="Hey! How's it going?" />
@@ -11,6 +11,7 @@
android:layout_marginEnd="56dp"
android:gravity="start"
android:layout_width="match_parent"
style="@style/TextPrimary"
android:layout_height="wrap_content"
tools:text="Hey! How's it going?" />
@@ -7,6 +7,7 @@
<TextView
android:id="@+id/message_body"
style="@style/TextPrimary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="56dp"
+2 -2
View File
@@ -4,6 +4,6 @@
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="textPrimary">#212121</color>
<color name="textSecondary">#707070</color>
<color name="textPrimary">#2C3236</color>
<color name="textSecondary">#898989</color>
</resources>
+10
View File
@@ -8,4 +8,14 @@
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="TextPrimary">
<item name="android:textColor">@color/textPrimary</item>
<item name="android:textSize">16sp</item>
</style>
<style name="TextSecondary">
<item name="android:textColor">@color/textSecondary</item>
<item name="android:textSize">14sp</item>
</style>
</resources>