How to make something like this markup? Do you need to use a GridView for this? 
2 answers
Put on the top
<android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay"> </android.support.v7.widget.Toolbar> </android.support.design.widget.AppBarLayout> Then add a RelativeLayout in which you place:
LinearLayout - inside it, place the GridView for a set of numbers, and for the bottom buttons, use the RecyclerView if you need to scroll elements, and if you have 8 elements on the screen, use the GridView, for the lower panel, put LinearLayout.
Two View for side buttons.
- ok, I will try, thanks a lot) - java
|
Using GridView not strictly necessary. For me the most optimal GridLayout . Here everything is painted.
|
GridView, one for the numbers, one for the lower part - redL1ne