Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a calendar_fragment;

XML
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
   
    <!-- TODO: Update blank fragment layout -->
    <TextView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginBottom="96dp">
    </TextView>
    <CalendarView
        android:id="@+id/calendar1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginBottom="96dp"
        android:unfocusedMonthDateColor="@color/material_blue_grey_800"
        android:dateTextAppearance="@android:style/TextAppearance.Medium"
        android:selectedWeekBackgroundColor="@color/material_deep_teal_500"
        android:weekSeparatorLineColor="@color/material_deep_teal_500">
    </CalendarView>
</FrameLayout >


This shows up correctly in the Design tab of Android Studio, and I expected it to look the same on the phone, however when I run the App and navigate to the calendar fragment, the fonts size appears smaller,

CalendarWithSmallFont

I'm using GenyMotion for emulating the phone and for testing.

How do I fix this?
Posted
Updated 13-Jun-15 20:37pm
v5
Comments
Sergey Alexandrovich Kryukov 11-Jun-15 22:49pm    
What is calender?
—SA
pyler 12-Jun-15 12:22pm    
Are you trying to understand my question or trying to answer it?
Sergey Alexandrovich Kryukov 12-Jun-15 15:10pm    
Please stop it. See my link. If you want some help, be considerate yourself.
—SA
pyler 13-Jun-15 22:10pm    
I don't quite follow...
Sergey Alexandrovich Kryukov 13-Jun-15 22:17pm    
So, did you see the link I've shown?
—SA

1 solution

 
Share this answer
 
Comments
pyler 14-Jun-15 2:36am    
Thanks for trying.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900