Skip to content

Instantly share code, notes, and snippets.

@kosiara
Created August 30, 2018 08:57
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 kosiara/9d8099244d70df89d5efede451f6e6a3 to your computer and use it in GitHub Desktop.
Save kosiara/9d8099244d70df89d5efede451f6e6a3 to your computer and use it in GitHub Desktop.
Twitter list item
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<data>
<variable
name="tweetId"
type="com.bk.sample.android.util.databinding.ObservableString" />
</data>
<android.support.v7.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
app:cardCornerRadius="5dp">
<com.bk.sample.android.component.TwitterViewComponent
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:paddingTop="15dp"
app:twitterId="@{tweetId}" />
</android.support.v7.widget.CardView>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment