Roach
Roach

Reputation: 611

What view is this and how can I implement it?

enter image description here

What view is this and how can I implement it?

Upvotes: 0

Views: 64

Answers (2)

olegflo
olegflo

Reputation: 1115

It looks similar to CardView (https://developer.android.com/training/material/lists-cards.html) with custom layout inside.

Upvotes: 2

Xjasz
Xjasz

Reputation: 1248

That's a holo light frame layout with some views and TextViews inside of it. You have to do you own formatting but this is a basic example.

 <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>

Upvotes: 0

Related Questions