Skip to content

Instantly share code, notes, and snippets.

@aemxn
Created January 11, 2014 17:38
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 aemxn/8374084 to your computer and use it in GitHub Desktop.
Save aemxn/8374084 to your computer and use it in GitHub Desktop.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="10dp" >
<TextView
android:id="@+id/category_id"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone" />
<TextView
android:id="@+id/category_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Category Name"
android:paddingBottom="15dip"
android:paddingLeft="10dip"
android:paddingTop="15dip"
android:textColor="#000000"
android:textSize="16dip"
android:textStyle="bold" />
<TextView
android:id="@+id/songs_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_toLeftOf="@+id/txt_item_count"
android:hint="20"
android:paddingLeft="3dip"
android:paddingRight="3dip"
android:textSize="10sp"
android:textStyle="bold" />
<TextView
android:id="@+id/txt_item_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="20dp"
android:text="Items"
android:textSize="10sp" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="100dp"
android:layout_below="@id/category_name"
android:orientation="vertical" >
<ImageView
android:id="@+id/img_category_logo"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:padding="5dp"
android:scaleType="centerInside" />
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment