Android :在网格中显示数字并在网格底部显示 android 图的最佳方式

Android : Best way to display numbers in a grid and an android plot at the bottom of the grid

我正在开发我的第一个 android 应用程序,我正在尝试显示类似以下布局的内容

第一部分有3列,所有列都会连续显示数字

下一部分是水平android绘图,连续显示三个数字中的两个

我尝试使用 gridlayout 并查看了这个 post 但无法显示所需的布局

任何帮助将不胜感激

谢谢,

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <TextView
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="center"
            android:text="1" />

        <TextView
             android:layout_width="0dp"
             android:layout_height="wrap_content"
             android:layout_weight="1"
             android:gravity="center"
             android:text="2" />

        <TextView
             android:layout_width="0dp"
             android:layout_height="wrap_content"
             android:layout_weight="1"
             android:gravity="center"
             android:text="3" />
    </LinearLayout>

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:gravity="center"
        android:text="lorem ipsum" />
</LinearLayout>

希望你喜欢,玩得开心:

<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">

    <TextView
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="36"
        android:layout_gravity="left"
        android:textSize="48sp"
        android:background="@color/gray_bg"/>
    <TextView
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="51"
        android:gravity="center"
        android:textSize="48sp"
        android:background="@color/material_blue_grey_800"/>
    <TextView
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="40"
        android:gravity="right"
        android:textSize="48sp"
        android:background="@color/gray_bg"/>
</LinearLayout>

<TextView
    android:layout_marginTop="50dp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="60sp"
    android:gravity="center"
    android:layout_gravity="center"
    android:text="AndroidPlot"/>
</LinearLayout>