Skip to content

Instantly share code, notes, and snippets.

@ashu2121
Created February 10, 2016 12:07
Show Gist options
  • Select an option

  • Save ashu2121/a7abe9e2aafbe2c0ce93 to your computer and use it in GitHub Desktop.

Select an option

Save ashu2121/a7abe9e2aafbe2c0ce93 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="match_parent"
android:background="#E8E8E8"
android:id="@+id/home_news">
<View
android:id="@+id/bestproduct1"
android:layout_width="match_parent"
android:layout_height="145dp"
android:background="@drawable/product_description"
android:layout_marginTop="10dp"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_marginLeft="13dp"
android:layout_marginRight="13dp"/>
<ImageView
android:layout_width="75dp"
android:layout_height="75dp"
android:id="@+id/imageView54"
android:layout_marginLeft="15dp"
android:layout_marginStart="15dp"
android:layout_marginTop="15dp"
android:src="@drawable/profile_pic"
android:background="@drawable/homenews"
android:layout_alignTop="@+id/bestproduct1"
android:layout_alignLeft="@+id/bestproduct1"
android:layout_alignStart="@+id/bestproduct1"
android:padding="2dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Election for President"
android:id="@+id/news_title"
android:layout_alignTop="@+id/imageView54"
android:layout_toRightOf="@+id/imageView54"
android:layout_toEndOf="@+id/imageView54"
android:layout_marginLeft="14dp"
android:layout_marginStart="14dp"
android:capitalize="sentences"
android:textSize="15dp"
android:textColor="#464646" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Date :"
android:id="@+id/textView79"
android:layout_below="@+id/news_title"
android:layout_alignLeft="@+id/news_title"
android:layout_alignStart="@+id/news_title"
android:textSize="13dp"
android:layout_marginTop="7dp"
android:textColor="#909090" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="23-01-2016"
android:id="@+id/home_new_date"
android:layout_alignTop="@+id/textView79"
android:layout_toRightOf="@+id/textView79"
android:layout_toEndOf="@+id/textView79"
android:layout_marginLeft="10dp"
android:layout_marginStart="18dp"
android:textSize="13dp"
android:textColor="#909090" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/home_news_description"
android:layout_below="@+id/textView79"
android:layout_alignLeft="@+id/textView79"
android:layout_alignStart="@+id/textView79"
android:layout_marginTop="7dp"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:text="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&apos;s standard dummy text ever since the 1500s..."
android:textSize="13dp"
android:layout_marginRight="15dp"
android:textColor="#909090" />
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment