写在这里以作笔记。
第一种:布局文件中添加
布局文件中:
<android.support.percent.PercentFrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/StartDate"
android:hint="点击选择开始日期"
android:layout_gravity="left"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="---"
android:layout_gravity="center"/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id