Skip to content

Instantly share code, notes, and snippets.

@px-amaac
Created August 28, 2014 23:18
Show Gist options
  • Save px-amaac/d02ca889b4e1aa084d46 to your computer and use it in GitHub Desktop.
Save px-amaac/d02ca889b4e1aa084d46 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<com.leafviews.ItemView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/panel_content"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/chiclet">
<com.leafviews.MyImageView
android:id="@+id/logo_view"
android:layout_marginBottom="1dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true">
<com.leafviews.ForegroundImageView
android:id="@+id/logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:adjustViewBounds="true"/>
</com.leafviews.MyImageView>
<TextView
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:textColor="@color/primary_dark_blue"
android:visibility="invisible"/>
<com.leafviews.MyImageView
android:id="@+id/image_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/name"
android:layout_centerHorizontal="true">
<com.leafviews.ForegroundImageView
android:id="@+id/circular_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:adjustViewBounds="true"/>
</com.leafviews.MyImageView>
<TextView
android:id="@+id/description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/secondary_title_color"
android:textSize="18sp"
android:layout_below="@id/image_view"
android:visibility="gone"/>
<TextView
android:id="@+id/distance"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textColor="@color/secondary_title_color"
android:layout_below="@id/description"
android:visibility="gone"/>
</com.leafviews.ItemView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment