Skip to content

Instantly share code, notes, and snippets.

@acedward
Created October 25, 2016 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acedward/27017e1fe0d9ddf5bad4c011ad616189 to your computer and use it in GitHub Desktop.
Save acedward/27017e1fe0d9ddf5bad4c011ad616189 to your computer and use it in GitHub Desktop.
XML HTML CELL
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/cell_chat_name"
fontPath="fonts/proxima-nova-semibold.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="54dp"
android:maxWidth="272dp"
android:singleLine="true"
android:textColor="#111"
android:textIsSelectable="false"
android:textSize="11dp"
android:visibility="visible"
tools:text="Edward Alvarado" />
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="2dp"
app:cardBackgroundColor="@color/CLOUDS"
app:cardCornerRadius="2dp"
app:cardElevation="2dp">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="324dp"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
<FrameLayout
android:id="@+id/cell_chat_top_bar"
android:layout_width="match_parent"
android:layout_height="4dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingRight="20dp"
android:visibility="gone">
<LinearLayout
android:id="@+id/cell_chat_bubble"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/cell_chat_name"
android:layout_marginRight="50dp"
android:orientation="vertical"
android:paddingBottom="10dp"
android:paddingLeft="22dp"
android:paddingRight="14dp"
android:paddingTop="10dp"
android:visibility="gone">
<TextView
android:id="@+id/cell_chat_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxWidth="272dp"
android:textColor="#222"
android:textSize="16dp"
android:visibility="gone"
tools:text="Accumsan duis hac placerat eget consectetur a neque parturient ut hac ipsum vestibulum molestie malesuada condimentum scelerisque." />
</LinearLayout>
</LinearLayout>
<FrameLayout
android:id="@+id/cell_chat_bottom_bar"
android:layout_width="match_parent"
android:layout_height="4dp" />
</LinearLayout>
<RelativeLayout
android:id="@+id/cell_chat_bubble_2"
android:layout_width="match_parent"
android:layout_height="200dp"
android:orientation="horizontal"
>
<FrameLayout
android:id="@+id/frameLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
android:layout_marginLeft="5dp">
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/cell_chat_avatar"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginBottom="4dp"
android:layout_gravity="bottom"
android:scaleType="centerCrop"
app:riv_border_width="0dp"
app:riv_corner_radius="17dp"
app:riv_oval="false"
app:riv_tile_mode="repeat"
tools:src="@drawable/placeholder_black" />
</FrameLayout>
<WebView
android:id="@+id/cell_chat_webview"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="0dp"
android:layout_toEndOf="@+id/frameLayout"
android:layout_toRightOf="@+id/frameLayout" />
<TextView
android:id="@+id/cell_chat_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginLeft="62dp"
android:gravity="left"
android:textColor="#333"
android:textSize="10dp"
tools:text="11/11 10:31" />
</RelativeLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:background="@drawable/button_green"
android:paddingBottom="4dp"
android:paddingLeft="20dp"
android:layout_marginTop="2dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="2dp"
android:paddingRight="20dp"
android:paddingTop="4dp"
android:text="@string/view_full_publication"
android:textColor="@color/CLOUDS" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment