Note that there are some explanatory texts on larger screens.

plurals
  1. POCalendarView takes much time for displaying
    text
    copied!<p>i am working on an application on CalendarView. i have to show calendarView in a small linear-layout.</p> <p>problem occurs while displaying a whole page which contains calendarView in small Linear-layout. -> this takes 10 seconds to show,&amp; this is much time... </p> <p>there is no other thing in layout.</p> <p>here is my xml and snap...</p> <p>any help would be <strong>strongly</strong> appriciated...</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;LinearLayout android:layout_width="0dp" android:layout_height="fill_parent" android:layout_weight="1" android:orientation="vertical" &gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="30" android:paddingLeft="30dp" &gt; &lt;TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="My Calendar" android:textSize="50sp" /&gt; &lt;View android:layout_width="fill_parent" android:layout_height="2dp" android:layout_alignParentBottom="true" android:layout_marginBottom="40dp" android:layout_marginRight="30dp" android:background="@android:color/black" /&gt; &lt;/RelativeLayout&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="70" android:paddingBottom="30dp" android:paddingLeft="20dp" android:paddingRight="20dp" android:paddingTop="30dp" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:orientation="vertical" &gt; &lt;ListView android:id="@+id/list_task" android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; &lt;/ListView&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="0dp" android:layout_height="fill_parent" android:layout_weight="1" android:orientation="vertical" &gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="30" &gt; &lt;CalendarView android:id="@+id/cal_small" android:layout_width="250dp" android:layout_height="250dp" android:layout_centerHorizontal="true" android:background="@android:color/darker_gray" android:showWeekNumber="false" android:animateLayoutChanges="false" android:clipChildren="false" android:drawingCacheQuality="low" android:soundEffectsEnabled="false" android:hapticFeedbackEnabled="false" /&gt; &lt;View android:layout_width="fill_parent" android:layout_height="2dp" android:layout_alignParentBottom="true" android:layout_marginBottom="40dp" android:layout_marginLeft="30dp" android:layout_marginRight="30dp" android:background="@android:color/black" /&gt; &lt;/RelativeLayout&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="70" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="30dp" android:layout_marginRight="10dp" android:layout_marginTop="30dp" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="8" &gt; &lt;ListView android:id="@+id/list1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="30dp" &gt; &lt;/ListView&gt; &lt;/LinearLayout&gt; &lt;ListView android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;/ListView&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p><img src="https://i.stack.imgur.com/Ym4it.png" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload