Skip to content

Instantly share code, notes, and snippets.

View eugenebrusov's full-sized avatar

Eugene Brusov eugenebrusov

View GitHub Profile
@eugenebrusov
eugenebrusov / item_media16x9_supportingtext.xml
Last active October 11, 2017 13:57
CardView - media 16:9 and supporting text
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CardView.Light"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp">
<android.support.constraint.ConstraintLayout
@eugenebrusov
eugenebrusov / 1_item_avatar_media16x9_supportingtext_actions.xml
Last active February 2, 2019 02:12
CardView - avatar, media 16:9, supporting text and action buttons
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CardView.Light"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp">
<android.support.constraint.ConstraintLayout
@eugenebrusov
eugenebrusov / 1_item_avatar_media16x9_actions.xml
Last active November 14, 2017 10:12
CardView - avatar, media 16:9 and action buttons
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CardView.Light"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp">
<android.support.constraint.ConstraintLayout
@eugenebrusov
eugenebrusov / 1_item_media16x9_primarytext_subtext_actions_supportingtext.xml
Last active October 11, 2017 14:16
CardView - media 16:9, primary text, subtext, actions and expandable supporting text
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CardView.Light"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp">
<android.support.constraint.ConstraintLayout
@eugenebrusov
eugenebrusov / item_primarytext_subtext_supportingtext_actions.xml
Last active October 11, 2017 14:18
CardView - primary text, subtext, supporting text and actions
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CardView.Light"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp">
<android.support.constraint.ConstraintLayout
@eugenebrusov
eugenebrusov / 1_item_media16x9_actions.xml
Last active October 11, 2017 14:20
CardView - media 16:9 and actions
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CardView.Light"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp">
<android.support.constraint.ConstraintLayout
@eugenebrusov
eugenebrusov / item_media1x1_primarytext_subtext_actions.xml
Created September 14, 2017 08:51
CardView - media 1:1, primary text, subtext and actions
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CardView.Light"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp">
<android.support.constraint.ConstraintLayout
@eugenebrusov
eugenebrusov / item_media1x_primarytext_subtext_actions.xml
Last active September 14, 2017 09:02
CardView - media 1x, primary text, subtext and actions
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CardView.Light"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp">
<android.support.constraint.ConstraintLayout
@eugenebrusov
eugenebrusov / item_media15x_primarytext_subtext_actions.xml
Created September 14, 2017 09:03
CardView - media 1.5x, primary text, subtext and actions
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CardView.Light"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp">
<android.support.constraint.ConstraintLayout
@eugenebrusov
eugenebrusov / item_media2x_primarytext_subtext_actions.xml
Created September 14, 2017 09:05
CardView - media 2x, primary text, subtext and actions
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CardView.Light"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp">
<android.support.constraint.ConstraintLayout