title: Android CardView Not Displaying Content
body: <p>I am trying to simply place a <code>TextView</code> inside a <code>CardView</code>, but to no avail. All I need to do is make two numbers appear inside the two <code>CardViews</code>. At the moment, with code below, the two <code>CardViews</code> appear, but do not show any text / content inside them.</p>
  
  <p>I have tried many different combinations but none seem to be working! Placing the <code>TextView</code> inside a <code>LinearLayout</code> does not work, nor does making it a direct child of the <code>CardView</code>. </p>
  
  <p>Here's my current code:</p>
  
  <pre><code>calendar_view.xml
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;hoo.box.facecalendar.SquareCardView
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      card_view:cardCornerRadius="4dp"
      card_view:cardUseCompatPadding="true"
      android:id="@+id/calendar_view_card"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;TextView
              android:id="@+id/calendar_view_day"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:gravity="center"
              android:singleLine="true"
              android:textColor="@color/primary_text"/&gt;
  
      &lt;/RelativeLayout&gt;
  
  &lt;/hoo.box.facecalendar.SquareCardView&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>SquareCardView.java
  
  public class SquareCardView extends CardView {
      public SquareCardView(Context context) {
          super(context);
      }
  
      public SquareCardView(Context context, AttributeSet attrs) {
          super(context, attrs);
      }
  
      public SquareCardView(Context context, AttributeSet attrs, int defStyleAttr) {
          super(context, attrs, defStyleAttr);
      }
  
      @Override
      protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
          final int width = getDefaultSize(getSuggestedMinimumWidth(), widthMeasureSpec);
          setMeasuredDimension(width, width);
      }
  }
  </code></pre>
  
  <hr>
  
  <pre><code>CalendarAdapter.java
  
  public class CalendarAdapter extends RecyclerView.Adapter&lt;CalendarAdapter.CalendarViewHolder&gt; {
      private LayoutInflater inflater;
      private Date curDate;
      private List&lt;Date&gt; dateList;
  
      public CalendarAdapter(Context context) {
          inflater = LayoutInflater.from(context);
          curDate = new Date();
          dateList = new ArrayList&lt;Date&gt;();
      }
  
      @Override
      public CalendarViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
          View view = inflater.inflate(R.layout.calendar_view, viewGroup, false);
          CalendarViewHolder viewHolder = new CalendarViewHolder(view);
          return viewHolder;
      }
  
      @Override
      public void onBindViewHolder(CalendarViewHolder calendarViewHolder, int i) {
          if (dateList.size() &lt;= i) {
              Date tempDate = new Date(curDate);
              tempDate.addDays(i + 1);
              dateList.add(i, tempDate);
          }
          Date iDate = dateList.get(i);
          calendarViewHolder.TEXTVIEW.setText(Integer.toString(iDate.day));
      }
  
      @Override
      public int getItemCount() { return dateList.size() + 1; }
  
      class CalendarViewHolder extends RecyclerView.ViewHolder {
          public final TextView TEXTVIEW;
          public final SquareCardView CARDVIEW;
  
          public CalendarViewHolder(View itemView) {
              super(itemView);
  
              TEXTVIEW = (TextView) itemView.findViewById(R.id.calendar_view_day);
              CARDVIEW = (SquareCardView) itemView.findViewById(R.id.calendar_view_card);
          }
      }
  }
  </code></pre>
  
  <p>Just a prior thanks to anyone who can help me! This has been eating away at me for days!</p>