Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
2math committed Sep 13, 2018
1 parent 44ae36c commit 44590e1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
29 changes: 29 additions & 0 deletions app/src/main/res/layout/fragment_login.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,33 @@
android:padding="@dimen/margin_small"
android:text="@string/btn_login"
app:TvType="bold_italic"/>

<com.futurist_labs.android.base_library.views.font_views.FontTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/margin_normal"
android:background="@color/colorAccent"
android:padding="@dimen/margin_small"
android:text="@string/btn_login"
app:TvType="italic"/>

<com.futurist_labs.android.base_library.views.font_views.FontTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/margin_normal"
android:background="@color/colorAccent"
android:padding="@dimen/margin_small"
android:text="@string/btn_login"
app:TvType="bold"/>

<com.futurist_labs.android.base_library.views.font_views.FontTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/margin_normal"
android:background="@color/colorAccent"
android:baselineAligned="false"
android:text="@string/btn_login"/>
</LinearLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ private void applyFont(String fontName, int style) {
} else {
view.setTypeface(font);
}
// TODO: 9/12/18 experiment
// if (font != null) {
// view.requestLayout();
// }

}

private void applyBoldItalic() {
Expand Down

0 comments on commit 44590e1

Please sign in to comment.