Since the application will be displaying changes of financial stocks over time, it means that we will be working with data that's represented best as a list. For this, we will use RecyclerView.
First of all, add it to your activity_main.xml file:
<android.support.v7.widget.RecyclerView android:id="@+id/stock_updates_recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@id/hello_world_salute" />
Then, inject it into your code with the following:
The next step is to initialize it in your activity:
private LinearLayoutManager layoutManager;private StockDataAdapter stockDataAdapter;...recyclerView ...