在Android中创建时间线

在Android中创建时间线,android,listview,android-listview,scrollview,Android,Listview,Android Listview,Scrollview,我正在尝试做一个很好的应用程序,在这个应用程序中我想制作一个时间线,时间线将包括“图像”、“2个文本块”和“2个按钮”如何创建这样的内容。我将从web api服务获取我的数据我发现可以进行异步调用以获取数据,但无法创建时间线的架构 我怎么能做那样的事? 等待您的建议,谢谢。我在谷歌上搜索了这么多,但一直都能找到基本的列表视图。 <LinearLayout orientation="vertical"> </ImageView> <LinearLayou

我正在尝试做一个很好的应用程序,在这个应用程序中
我想制作一个时间线,时间线将包括
“图像”、“2个文本块”和“2个按钮”

如何创建这样的内容。我将从
web api服务
获取我的数据
我发现可以进行异步调用以获取数据,但无法创建时间线的架构

我怎么能做那样的事?

等待您的建议,谢谢。我在谷歌上搜索了这么多,但一直都能找到基本的
列表视图。


    <LinearLayout orientation="vertical">

</ImageView>

<LinearLayout orientation="horizontal">
</TextBox>
</TextBox>
</LinearLauout>

<LinearLayout orientation="horizontal">
</Button>
</Button>
</LinearLauout>

</LinearLayout>

下图描述了页面的设计视图

编辑:如何将线性布局分成两部分

   <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<LinearLayout
    android:id="@+id/btn_row"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:weightSum="10" >

    <Button
        android:id="@+id/btn1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_weight="5"
       />

    <Button
        android:id="@+id/btn2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_weight="5" />
</LinearLayout>
</LinearLayout>


您可以创建与图像类似的XML文件。使用相对布局和线性布局设计结构我使用片段视图设计选项卡。我怎样才能把它放在fragmentlayout里面呢?你可以设计一个xml,并通过代码将它膨胀到你的fragmentlayout中。你能帮我解决这个按钮问题吗?如何将线性布局分成两部分?谢谢。你可以给布局分配权重总和=1,给两个孩子分配布局权重=0.5。你能帮我解决这个按钮问题吗?如何将线性布局分成两部分?谢谢。@KuthayGumus我已经更新了答案,请看一看