How to make something like this markup? Do you need to use a GridView for this? enter image description here

  • The first thing that comes to mind is to make several GridView , one for the numbers, one for the lower part - redL1ne
  • Yes, I also looked for it in the internet, I found the current GridView, I thought maybe someone knows better - java

2 answers 2

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:

  1. 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.

  2. 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.