这是什么观点,我该如何实施?
What view is this and how can I implement it?
这是什么观点,我该如何实施?
它看起来类似于 CardView (https://developer.android.com/training/material/lists-cards.html),内部有自定义布局。
这是一个全息灯框架布局,里面有一些视图和 TextView。
您必须自己设置格式,但这是一个基本示例。
<RelativeLayout
android:id="@+id/exampleRL"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="20dp"
android:background="@android:drawable/dialog_holo_light_frame" >
<TextView
android:id="@+id/firstDescription"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:textIsSelectable="true"
android:text="Example text"
android:textColor="#000000"
android:textSize="12dp" />
<View
android:id="@+id/Bar"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/firstDescription"
android:background="#DCDCDC" />
<TextView
android:id="@+id/secondDescription"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/Bar"
android:padding="10dp"
android:textIsSelectable="true"
android:text="More text examples"
android:textColor="#B0C4DE"
android:textSize="12dp" />
</RelativeLayout>
这是什么观点,我该如何实施?
它看起来类似于 CardView (https://developer.android.com/training/material/lists-cards.html),内部有自定义布局。
这是一个全息灯框架布局,里面有一些视图和 TextView。 您必须自己设置格式,但这是一个基本示例。
<RelativeLayout
android:id="@+id/exampleRL"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="20dp"
android:background="@android:drawable/dialog_holo_light_frame" >
<TextView
android:id="@+id/firstDescription"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:textIsSelectable="true"
android:text="Example text"
android:textColor="#000000"
android:textSize="12dp" />
<View
android:id="@+id/Bar"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/firstDescription"
android:background="#DCDCDC" />
<TextView
android:id="@+id/secondDescription"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/Bar"
android:padding="10dp"
android:textIsSelectable="true"
android:text="More text examples"
android:textColor="#B0C4DE"
android:textSize="12dp" />
</RelativeLayout>