Advertisement
Guest User

fragment_homepage.xml

a guest
Feb 14th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 11.02 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.afollestad.polar.views.insets.WindowInsetsFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:clipToPadding="false"
  8.    android:fitsSystemWindows="true">
  9.  
  10.     <ScrollView
  11.        android:id="@+id/scrollView"
  12.        android:layout_width="match_parent"
  13.        android:layout_height="wrap_content"
  14.        android:clipToPadding="false"
  15.        android:padding="@dimen/content_inset_less">
  16.  
  17.         <LinearLayout
  18.            android:layout_width="match_parent"
  19.            android:layout_height="wrap_content"
  20.            android:gravity="center"
  21.            android:orientation="vertical">
  22.  
  23.             <ImageView
  24.                android:id="@+id/landingIcon"
  25.                android:layout_width="@dimen/landing_page_icon_size"
  26.                android:layout_height="@dimen/landing_page_icon_size"
  27.                android:layout_marginBottom="@dimen/content_inset"
  28.                android:layout_marginTop="@dimen/content_inset_less"
  29.                android:scaleType="fitXY"
  30.                android:src="@drawable/homepage_landing_icon"
  31.                tools:ignore="ContentDescription" />
  32.  
  33.             <android.support.v7.widget.CardView
  34.                android:layout_width="match_parent"
  35.                android:layout_height="wrap_content"
  36.                app:cardElevation="2dp"
  37.                app:cardUseCompatPadding="true">
  38.  
  39.                 <RelativeLayout
  40.                    android:layout_width="match_parent"
  41.                    android:layout_height="wrap_content"
  42.                    android:paddingBottom="@dimen/content_inset_half"
  43.                    android:paddingStart="@dimen/content_inset"
  44.                    android:paddingTop="@dimen/content_inset_more"
  45.                    tools:ignore="RtlSymmetry">
  46.  
  47.                     <TextView
  48.                        android:id="@+id/title"
  49.                        android:layout_width="match_parent"
  50.                        android:layout_height="wrap_content"
  51.                        android:layout_marginEnd="@dimen/content_inset"
  52.                        android:fontFamily="sans-serif"
  53.                        android:text="This is Quantum Dots"
  54.                        android:textColor="#000"
  55.                        android:textSize="20sp" />
  56.  
  57.                     <TextView
  58.                        android:id="@+id/description"
  59.                        android:layout_width="match_parent"
  60.                        android:layout_height="wrap_content"
  61.                        android:layout_below="@+id/title"
  62.                        android:layout_marginEnd="@dimen/content_inset"
  63.                        android:layout_marginTop="@dimen/content_inset_less"
  64.                        android:fontFamily="sans-serif-light"
  65.                        android:lineSpacingMultiplier="1.2"
  66.                        android:text="Quantum Dots is a circular icon pack that combines uniformity with Material Design."
  67.                        android:textColor="#000"
  68.                        android:textSize="@dimen/body_text_size" />
  69.  
  70.                     <Button
  71.                        android:id="@+id/rateBtn"
  72.                        style="?borderlessButtonStyle"
  73.                        android:layout_width="wrap_content"
  74.                        android:layout_height="36dp"
  75.                        android:layout_alignParentBottom="true"
  76.                        android:layout_alignParentEnd="true"
  77.                        android:layout_below="@+id/description"
  78.                        android:layout_marginTop="@dimen/content_inset_less"
  79.                        android:gravity="center"
  80.                        android:text="Rate"
  81.                        android:textColor="?colorAccent"
  82.                        android:textSize="@dimen/body_text_size" />
  83.  
  84.                 </RelativeLayout>
  85.  
  86.             </android.support.v7.widget.CardView>
  87.  
  88.             <android.support.v7.widget.CardView
  89.                android:layout_width="match_parent"
  90.                android:layout_height="wrap_content"
  91.                android:layout_marginTop="@dimen/content_inset_less"
  92.                app:cardElevation="2dp"
  93.                app:cardUseCompatPadding="true">
  94.  
  95.                 <LinearLayout
  96.                    android:layout_width="match_parent"
  97.                    android:layout_height="wrap_content"
  98.                    android:orientation="horizontal"
  99.                    tools:ignore="RtlSymmetry">
  100.  
  101.                     <ImageView
  102.                        android:id="@+id/featuredWidgetImage"
  103.                        android:layout_width="156dp"
  104.                        android:layout_height="match_parent"
  105.                        android:background="?colorAccent" />
  106.  
  107.                     <RelativeLayout
  108.                        android:layout_width="match_parent"
  109.                        android:layout_height="wrap_content"
  110.                        android:paddingBottom="@dimen/content_inset"
  111.                        android:paddingStart="@dimen/content_inset"
  112.                        android:paddingTop="@dimen/content_inset_more">
  113.  
  114.                         <TextView
  115.                            android:id="@+id/title1"
  116.                            android:layout_width="wrap_content"
  117.                            android:layout_height="wrap_content"
  118.                            android:layout_marginEnd="@dimen/content_inset"
  119.                            android:fontFamily="sans-serif"
  120.                            android:text="Featured Widget"
  121.                            android:textColor="#000"
  122.                            android:textSize="20sp" />
  123.  
  124.                         <TextView
  125.                            android:id="@+id/description1"
  126.                            android:layout_width="wrap_content"
  127.                            android:layout_height="wrap_content"
  128.                            android:layout_below="@+id/title1"
  129.                            android:layout_marginEnd="@dimen/content_inset"
  130.                            android:layout_marginTop="@dimen/content_inset_less"
  131.                            android:fontFamily="sans-serif-light"
  132.                            android:lineSpacingMultiplier="1.2"
  133.                            android:text="Awesome Clock that does stuff"
  134.                            android:textColor="#000"
  135.                            android:textSize="@dimen/body_text_size" />
  136.  
  137.                         <Button
  138.                            android:id="@+id/seeZooperWidgetsBtn"
  139.                            style="?borderlessButtonStyle"
  140.                            android:layout_width="wrap_content"
  141.                            android:layout_height="wrap_content"
  142.                            android:layout_alignParentBottom="true"
  143.                            android:layout_alignParentEnd="true"
  144.                            android:layout_below="@+id/description1"
  145.                            android:layout_marginEnd="@dimen/content_inset_half"
  146.                            android:layout_marginTop="@dimen/content_inset"
  147.                            android:text="See all Zooper Widgets"
  148.                            android:textColor="?colorAccent"
  149.                            android:textSize="12sp" />
  150.  
  151.                     </RelativeLayout>
  152.  
  153.                 </LinearLayout>
  154.  
  155.             </android.support.v7.widget.CardView>
  156.  
  157.             <android.support.v7.widget.CardView
  158.                android:layout_width="match_parent"
  159.                android:layout_height="wrap_content"
  160.                android:layout_marginTop="@dimen/content_inset_less"
  161.                app:cardElevation="2dp"
  162.                app:cardUseCompatPadding="true">
  163.  
  164.                 <LinearLayout
  165.                    android:layout_width="match_parent"
  166.                    android:layout_height="wrap_content"
  167.                    android:orientation="horizontal"
  168.                    tools:ignore="RtlSymmetry">
  169.  
  170.                     <ImageView
  171.                        android:id="@+id/featuredWallpaperImage"
  172.                        android:layout_width="156dp"
  173.                        android:layout_height="match_parent"
  174.                        android:background="?colorAccent" />
  175.  
  176.                     <RelativeLayout
  177.                        android:layout_width="match_parent"
  178.                        android:layout_height="wrap_content"
  179.                        android:paddingBottom="@dimen/content_inset"
  180.                        android:paddingStart="@dimen/content_inset"
  181.                        android:paddingTop="@dimen/content_inset_more">
  182.  
  183.                         <TextView
  184.                            android:id="@+id/title2"
  185.                            android:layout_width="wrap_content"
  186.                            android:layout_height="wrap_content"
  187.                            android:layout_marginEnd="@dimen/content_inset"
  188.                            android:fontFamily="sans-serif"
  189.                            android:text="Featured Wallpaper"
  190.                            android:textColor="#000"
  191.                            android:textSize="20sp" />
  192.  
  193.                         <TextView
  194.                            android:id="@+id/description2"
  195.                            android:layout_width="wrap_content"
  196.                            android:layout_height="wrap_content"
  197.                            android:layout_below="@+id/title2"
  198.                            android:layout_marginEnd="@dimen/content_inset"
  199.                            android:layout_marginTop="@dimen/content_inset_less"
  200.                            android:fontFamily="sans-serif-light"
  201.                            android:lineSpacingMultiplier="1.2"
  202.                            android:text="Pretty wallpaper that Tom Wellington likes"
  203.                            android:textColor="#000"
  204.                            android:textSize="@dimen/body_text_size" />
  205.  
  206.                         <Button
  207.                            android:id="@+id/setWallpaperBtn"
  208.                            style="?borderlessButtonStyle"
  209.                            android:layout_width="wrap_content"
  210.                            android:layout_height="wrap_content"
  211.                            android:layout_alignParentBottom="true"
  212.                            android:layout_alignParentEnd="true"
  213.                            android:layout_below="@+id/description2"
  214.                            android:layout_marginEnd="@dimen/content_inset_half"
  215.                            android:layout_marginTop="@dimen/content_inset"
  216.                            android:text="See as Wallpaper"
  217.                            android:textColor="?colorAccent"
  218.                            android:textSize="12sp" />
  219.  
  220.                     </RelativeLayout>
  221.  
  222.                 </LinearLayout>
  223.  
  224.             </android.support.v7.widget.CardView>
  225.  
  226.         </LinearLayout>
  227.  
  228.     </ScrollView>
  229.  
  230. </com.afollestad.polar.views.insets.WindowInsetsFrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement