Skip to content

Instantly share code, notes, and snippets.

@mariotaku
Last active August 29, 2015 14:16
Show Gist options
  • Save mariotaku/f29d12b5eb8dc66c8b89 to your computer and use it in GitHub Desktop.
Save mariotaku/f29d12b5eb8dc66c8b89 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:baselineAligned="false">
<ImageView
android:id="@+id/icon"
android:layout_margin="10dp"
android:layout_width="42dp"
android:layout_height="42dp"
android:src="@drawable/icon"/>
<ImageView
android:id="@+id/star"
android:layout_width="42dp"
android:layout_below="@+id/main_view"
android:layout_alignLeft="@+id/icon"
android:layout_height="42dp"
android:src="@drawable/ic_action_star_outline_grey600"/>
<LinearLayout
android:id="@+id/main_view"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_toRightOf="@+id/icon"
android:layout_height="wrap_content"
android:layout_marginStart="-4dp"
android:orientation="vertical">
<LinearLayout
android:id="@+id/clip_line"
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/current_clip"
android:layout_marginStart="10dp"
android:textSize="16sp"
android:text="Title test test"
android:textColor="@color/primary_text_default_material_light"
android:layout_gravity="center"
android:lines="1"
android:ellipsize="end"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"/>
<ImageButton
android:id="@+id/clip_share_button"
android:background="#00000000"
android:padding="2dp"
android:src="@drawable/ic_notification_action_share"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_gravity="end"
android:scaleType="fitCenter"
android:contentDescription="@string/clip_notification_share_button"/>
</LinearLayout>
<ImageView
android:layout_width="match_parent"
android:layout_height="1px"
android:background="#B6B6B6"/>
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment