Java Android的时间线开发

Java Android的时间线开发,java,android,xml,Java,Android,Xml,我想创建一个这样的时间轴(有任何库可以提供帮助吗 谁能给我一个关于如何做的想法或一个教程 谢谢这是一个简单的ListView或RecyclerView,其单元格如下: It's a simple ListView or RecyclerView with cells like those : <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.c

我想创建一个这样的时间轴(有任何库可以提供帮助吗

谁能给我一个关于如何做的想法或一个教程

谢谢

这是一个简单的ListView或RecyclerView,其单元格如下:
It's a simple ListView or RecyclerView with cells like those : 

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

    <RelativeLayout
        android:layout_width="100dp"
        android:layout_height="match_parent">

        <View
            android:layout_width="1dp"
            android:layout_height="match_parent"
            android:layout_above="@+id/date"
            android:layout_centerHorizontal="true"
            android:background="#C00"
            />

        <TextView
            android:id="@+id/date"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:background="#C00"
            android:padding="10dp"
            tools:text="22"
            android:textColor="@android:color/white"/>

        <View
            android:layout_width="1dp"
            android:layout_centerHorizontal="true"
            android:layout_height="match_parent"
            android:layout_below="@+id/date"
            android:background="#C00"
            />

    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:textColor="#C00"
            tools:text="This saturday"
            android:textStyle="bold"/>

    </RelativeLayout>

</LinearLayout>

它看起来只不过是一个列表视图而已……只需使用“聪明”的图形元素来营造连接线的假象。安装应用程序,然后使用
uiautomatorviewer
查看他们是如何做到的。