我的问题: 如何分隔两个组件?我已经将填充设置为2dp,但它们仍然在底部彼此连接,我如何将它们放在一起?到2dp。评论是值得赞赏的感谢在底部设置填充
<?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:background="#d8d8d8"
android:orientation="vertical"
android:padding="2dp" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ff0043"
android:orientation="vertical"
android:padding="2dp" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="KELANA JAYA LINE"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#fff"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#d8d8d8"
android:orientation="horizontal"
android:paddingRight="2dp" >
<TextView
android:id="@+id/textView1"
android:layout_width="74dp"
android:layout_height="wrap_content"
android:background="#001eff"
android:paddingRight="2dp"
android:text="TIME"
android:textColor="#fff"
android:textSize="20dp"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>