Skip to content

Commit

Permalink
#377 New section style
Browse files Browse the repository at this point in the history
Use @Dimen variables for font sizes
  • Loading branch information
stefan-niedermann committed Apr 13, 2018
1 parent 6aa3045 commit 7c44c56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/src/main/res/layout/fragment_notes_list_note_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
android:singleLine="true"
android:layout_weight="1"
android:textColor="@drawable/list_item_color_selector"
android:textSize="16sp" />
android:textSize="@dimen/primary_font_size" />

<ImageView
android:id="@+id/noteStatus"
Expand Down Expand Up @@ -93,7 +93,7 @@
android:paddingTop="1dp"
android:layout_weight="1"
android:textColor="@drawable/list_item_color_selector_low"
android:textSize="14sp" />
android:textSize="@dimen/secondary_font_size" />

<TextView
android:id="@+id/noteCategory"
Expand All @@ -111,7 +111,7 @@
android:layout_marginLeft="8dp"
android:singleLine="true"
android:textColor="@drawable/list_item_color_selector"
android:textSize="14sp" />
android:textSize="@dimen/secondary_font_size" />
</android.support.v7.widget.LinearLayoutCompat>
</android.support.v7.widget.LinearLayoutCompat>
</android.support.v7.widget.LinearLayoutCompat>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
android:paddingEnd="16dp"
android:paddingTop="48dp"
android:textColor="@color/fg_default_selection"
android:textSize="14sp" />
android:textSize="@dimen/secondary_font_size" />
</RelativeLayout>
3 changes: 3 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<dimen name="button_padding">16dp</dimen>
<dimen name="button_elevation">5dp</dimen>

<dimen name="primary_font_size">16sp</dimen>
<dimen name="secondary_font_size">14sp</dimen>

<!-- Widgets -->
<dimen name="widget_margin">8dp</dimen>
<dimen name="widget_single_note_padding">10dp</dimen>
Expand Down

0 comments on commit 7c44c56

Please sign in to comment.