RecyclerView Empty
<p>My recycler view is empty, I can tell its there because I can scroll left and right(indicators on the edges of the screen tells me so) but my individual lists item is not showing up.</p>

<p>Here is my code for main activity</p>

<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_split_order);
    android.support.v7.app.ActionBar mActionBar = getSupportActionBar();
    mActionBar.setDisplayHomeAsUpEnabled(true);

    setTitle("Split Order");

    //Code to get Screen Width and Height
    DisplayMetrics displaymetrics = new DisplayMetrics();
    getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
    int height                  = displaymetrics.heightPixels;
    int width                   = displaymetrics.widthPixels;
    int onequaterscreen         = width / 4;
    int onefifthheight          = height/ 5;


    recList = (RecyclerView) findViewById(R.id.rv_bill_list);
    recList.setHasFixedSize(true);
    createData();
    adapter = new BillListAdapter(this,data);
    LinearLayoutManager llm = new LinearLayoutManager(this);
    llm.setOrientation(LinearLayoutManager.HORIZONTAL);
    recList.setLayoutManager(llm);
    recList.setAdapter(adapter);

}

public void createData(){

    data = new ArrayList&lt;&gt;();
    BillItem dummy = new BillItem();
    dummy.setDiscountAmt(0.0);
    dummy.setOrderNum(44);
    dummy.setSubtotal(0.0);
    data.add(dummy);
}
</code></pre>

<p>Adapter</p>

<pre><code>private LayoutInflater inflator;
List&lt;BillItem&gt; billItemList = Collections.emptyList();

public BillListAdapter(Context context,List&lt;BillItem&gt; billItemList) {

    inflator = LayoutInflater.from(context);
    this.billItemList = billItemList;

}

@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {

    View view = inflator.inflate(R.layout.bill_list_item,parent,false);
    MyViewHolder holder = new MyViewHolder(view);
    return holder;
}

@Override
public void onBindViewHolder(MyViewHolder holder, int position) {

    BillItem current = billItemList.get(position);
    holder.tv_bill_subtotal.setText(String.valueOf(current.subtotal));
    holder.tv_bill_discount_amt.setText(String.valueOf(current.discountAmt));
    holder.tv_bill_num.setText(String.valueOf(current.orderNum));

}

@Override
public int getItemCount() {
    return 0;
}
class MyViewHolder extends RecyclerView.ViewHolder{

    TextView tv_bill_subtotal;
    TextView tv_bill_discount_amt;
    TextView tv_bill_num;
    RelativeLayout rl_bill_discount;
    ListView lv_orderItemList;

    public MyViewHolder(View itemView) {
        super(itemView);
        tv_bill_num          = (TextView)        itemView.findViewById(R.id.tv_bill_num);
        tv_bill_subtotal     = (TextView)        itemView.findViewById(R.id.tv_bill_subtotal);
        rl_bill_discount     = (RelativeLayout)  itemView.findViewById(R.id.rl_bill_discount);
        lv_orderItemList     = (ListView)        itemView.findViewById(R.id.lv_orderitemlist);
        tv_bill_discount_amt = (TextView)        itemView.findViewById(R.id.tv_bill_discount_amt);
    }
}
</code></pre>

<p>The layout file is </p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent" android:layout_height="match_parent"&gt;

&lt;RelativeLayout
    android:id="@+id/rl_bill_sidemenu"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_alignParentStart="false"
    android:layout_alignParentLeft="false"
    android:layout_alignParentRight="true"
    android:layout_alignParentEnd="true"
    android:background="@color/colorWhiteBrighter"&gt;

    &lt;TextView
        android:paddingLeft="@dimen/sidemenu_horizontal_margin"
        android:paddingRight="@dimen/sidemenu_horizontal_margin"
        android:paddingTop="@dimen/sidemenu_vertical_margin"
        android:id="@+id/tv_bill_num"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/ordermenunum"
        android:textSize="20sp"
        /&gt;


    &lt;!--
    Order List Header
    --&gt;
    &lt;RelativeLayout
        android:id="@+id/rl_billitemlistheader"
        android:orientation="horizontal"
        android:paddingTop="10dp"
        android:paddingBottom="10dp"
        android:paddingLeft="@dimen/sidemenu_horizontal_margin"
        android:paddingRight="@dimen/sidemenu_horizontal_margin"
        android:layout_marginTop="@dimen/sidemenu_vertical_margin"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/tv_bill_num"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:background="@color/colorWhiteHighlight"&gt;

        &lt;TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/ordermenuqty"
            android:textSize="14sp"/&gt;
        &lt;TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="40dp"
            android:text="@string/ordermenuname"
            android:textSize="14sp"/&gt;
        &lt;TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:text="@string/ordermenuprice"
            android:textSize="14sp"/&gt;


    &lt;/RelativeLayout&gt;

    &lt;ListView
        android:layout_below="@id/rl_billitemlistheader"
        android:id="@+id/lv_orderitemlist"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/rl_subtotal"&gt;

    &lt;/ListView&gt;




    &lt;!--
    Pay Button
    --&gt;
    &lt;RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:clickable="true"
        android:padding="@dimen/sidemenu_vertical_margin"
        android:background="@drawable/greenbutton_selector"
        android:id="@+id/rl_bill_pay"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"&gt;

        &lt;TextView

            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="28sp"
            android:textColor="@color/colorPrimaryDark"
            android:text="&gt;&gt;"/&gt;

        &lt;TextView

            android:id="@+id/tv_total"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="28sp"
            android:textColor="@color/colorWhiteBrighter"
            android:text="@string/zerodollars"
            android:layout_alignParentTop="true"
            android:layout_alignParentRight="true"
            android:layout_alignParentEnd="true" /&gt;


    &lt;/RelativeLayout&gt;

    &lt;!--
     Subtotal Field
    --&gt;
    &lt;RelativeLayout
        android:id="@+id/rl_subtotal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:clickable="true"
        android:paddingTop="12dp"
        android:paddingBottom="12dp"
        android:paddingLeft="@dimen/sidemenu_horizontal_margin"
        android:paddingRight="@dimen/sidemenu_horizontal_margin"
        android:background="@drawable/submenu_selector"
        android:layout_above="@+id/rl_bill_discount"&gt;

        &lt;TextView

            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="14sp"
            android:text="Subtotal:"/&gt;

        &lt;TextView
            android:id="@+id/tv_bill_subtotal"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="14sp"
            android:text="@string/zerodollars"
            android:layout_alignParentTop="true"
            android:layout_alignParentRight="true"
            android:layout_alignParentEnd="true" /&gt;
    &lt;/RelativeLayout&gt;
    &lt;View android:layout_width="fill_parent"
        android:layout_height="1dp"
        android:background="@color/colorWhiteDarker"
        android:layout_below="@+id/rl_subtotal"
        /&gt;

    &lt;!--
       Discount Field
    --&gt;
    &lt;RelativeLayout
        android:id="@+id/rl_bill_discount"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:clickable="true"
        android:paddingTop="12dp"
        android:paddingBottom="12dp"
        android:paddingLeft="@dimen/sidemenu_horizontal_margin"
        android:paddingRight="@dimen/sidemenu_horizontal_margin"
        android:background="@drawable/submenu_selector"
        android:layout_above="@+id/rl_bill_pay"&gt;

        &lt;TextView

            android:id="@+id/tv_discount_lbl"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="14sp"
            android:text="Discount($):"/&gt;

        &lt;TextView
            android:id="@+id/tv_bill_discount_amt"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="14sp"
            android:text="@string/zerodollars"
            android:layout_alignParentTop="true"
            android:layout_alignParentRight="true"
            android:layout_alignParentEnd="true" /&gt;

    &lt;/RelativeLayout&gt;
    &lt;View android:layout_width="fill_parent"
        android:layout_height="1dp"
        android:background="@color/colorWhiteDarker"
        android:layout_below="@+id/rl_subtotal"
        /&gt;


&lt;/RelativeLayout&gt;
</code></pre>

<p></p>

<p>I used the debugger to check the values, nothing is null. Is just not inflating the view I guess cause there no list item.</p>