Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to display current week days
    primarykey
    data
    text
    <p>help me i use this sample example <a href="http://www.androidhub4you.com/2012/10/custom-calendar-in-android.html?showComment=1374298656772#c7739428050175524218" rel="nofollow noreferrer">http://www.androidhub4you.com/2012/10/custom-calendar-in-android.html?showComment=1374298656772#c7739428050175524218</a> I want to print only current week of days. i want to display only single row. i modify this example code to my code. I replaced example code with this condition: <code>if (i == currentWeekDay)</code>. But it only display first week of dates. Today's date is 20 july. Is does not show today date of week. My screen looks like this:</p> <p><img src="https://i.stack.imgur.com/vYvBw.png" alt="enter image description here"></p> <p>how i display current week only??</p> <pre><code>// Current Month Days for (int i = 1; i &lt;= daysInMonth; i++) { Log.d(currentMonthName, String.valueOf(i) + " " + getMonthAsString(currentMonth) + " " + yy); if (i == getCurrentDayOfMonth()) { list.add(String.valueOf(i) + "-BLUE" + "-" + getMonthAsString(currentMonth) + "-" + yy); } else { list.add(String.valueOf(i) + "-WHITE" + "-" + getMonthAsString(currentMonth) + "-" + yy); } } // Current Month Days for (int i = 1; i &lt;= daysInMonth; i++) { Log.d(currentMonthName, String.valueOf(i) + " " + getMonthAsString(currentMonth) + " " + yy); if (i == currentWeekDay) { if (i == getCurrentDayOfMonth()) { list.add(String.valueOf(i) + "-BLUE" + "-" + getMonthAsString(currentMonth) + "-" + yy); } else { list.add(String.valueOf(i) + "-WHITE" + "-" + getMonthAsString(currentMonth) + "-" + yy); } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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