Skip to content

Instantly share code, notes, and snippets.

@JohnJocoo
Created February 2, 2013 23:42
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 JohnJocoo/9dc5246f8f753144e77a to your computer and use it in GitHub Desktop.
Save JohnJocoo/9dc5246f8f753144e77a to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<my.package.view.BoardPost
android:id="@+id/postPost"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:longClickable="true"
android:layout_weight="1"
android:paddingBottom="3dp"
android:paddingLeft="3dp"
android:paddingRight="5dp"
android:paddingTop="1dp" >
<TextView
android:id="@+id/postTitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLines="2"
android:textColor="@color/post_title_text_color"
android:textSize="@dimen/post_title_text_size"
android:textColorLink="@color/post_link_color" />
<ProgressBar
android:id="@+id/postLoading"
android:layout_width="@dimen/post_image_max_width"
android:layout_height="@dimen/post_image_max_height"
android:layout_below="@id/postTitle" />
<my.package.view.BoardPostText
android:id="@+id/postText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/postTitle"
android:clickable="true"
android:linksClickable="true"
android:longClickable="true"
android:maxHeight="@dimen/post_image_max_height"
android:paddingLeft="5dp"
android:textColor="@color/post_data_text_color"
android:textSize="@dimen/post_data_text_size"
android:textColorLink="@color/post_link_color" />
<my.package.view.BoardPostImage
android:id="@+id/postImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/postTitle"
android:adjustViewBounds="true"
android:clickable="true"
android:maxHeight="@dimen/post_image_max_height"
android:maxWidth="@dimen/post_image_max_width"
android:scaleType="fitCenter" />
</my.package.view.BoardOPPost>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment