Skip to content

Instantly share code, notes, and snippets.

@acappelli
Created May 8, 2015 14:39
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 acappelli/8c4f7d74de8dae1cbca3 to your computer and use it in GitHub Desktop.
Save acappelli/8c4f7d74de8dae1cbca3 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="@color/white_background">
<include layout="@layout/loader" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/main_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/recipe_type"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="6dp"
android:text="Ricette > Primi"
android:textColor="@color/accent"
android:textStyle="italic" />
<TextView
android:id="@+id/recipe_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="6dp"
android:text="Tosella alla panna"
android:textColor="@color/detail_view_text_color"
android:textSize="32sp" />
<ImageView
android:id="@+id/recipe_image"
android:layout_width="match_parent"
android:layout_height="184dp"
android:visibility="gone" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="14dp"
android:orientation="horizontal">
<TextView
android:id="@+id/regione_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableTop="@drawable/ic_ricette_regione" />
<View
android:layout_width="@dimen/divider_height"
android:layout_height="match_parent"
android:layout_margin="@dimen/internal_padding"
android:background="#5e5e5e" />
<TextView
android:id="@+id/difficolta_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:layout_weight="1"
android:drawableTop="@drawable/ic_ricette_difficolta" />
<View
android:layout_width="@dimen/divider_height"
android:layout_height="match_parent"
android:layout_margin="@dimen/internal_padding"
android:background="#5e5e5e" />
<TextView
android:id="@+id/portata_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableTop="@drawable/ic_ricette_portata" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="14dp"
android:orientation="horizontal">
<TextView
android:id="@+id/tempo_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableTop="@drawable/ic_ricette_tempo" />
<View
android:layout_width="@dimen/divider_height"
android:layout_height="match_parent"
android:layout_margin="@dimen/internal_padding"
android:background="#5e5e5e" />
<TextView
android:id="@+id/quantità_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:layout_weight="1"
android:drawableTop="@drawable/ic_ricette_quantita" />
<View
android:layout_width="@dimen/divider_height"
android:layout_height="match_parent"
android:layout_margin="@dimen/internal_padding"
android:background="#5e5e5e" />
<TextView
android:id="@+id/costo_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableTop="@drawable/ic_ricette_costo" />
</LinearLayout>
<LinearLayout
android:id="@+id/regione_info_box"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@color/drawer_background"
android:orientation="horizontal"
android:padding="8dp">
<View
android:layout_width="0dp"
android:layout_height="2dp"
android:layout_gravity="center"
android:layout_marginLeft="11dp"
android:layout_weight="2"
android:background="@drawable/dotter_h_white" />
<TextView
android:id="@+id/ricette_regionali"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:gravity="center"
android:text="@string/regional_recipes"
android:textAlignment="gravity"
android:textColor="@android:color/white"
android:textStyle="italic" />
<View
android:layout_width="0dp"
android:layout_height="2dp"
android:layout_gravity="center"
android:layout_marginRight="11dp"
android:layout_weight="2"
android:background="@drawable/dotter_h_white" />
</LinearLayout>
<it.iol.foodinitaly.utils.adapter.NonScrollListView
android:id="@+id/ingrediens_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/drawer_background" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/black_background"
android:padding="12dp">
<TextView
android:id="@+id/title_share_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="Porta con te la lista della spesa"
android:textStyle="italic" />
<TextView
android:id="@+id/share_email"
android:layout_width="wrap_content"
android:layout_height="60dp"
android:layout_alignTop="@+id/view"
android:layout_marginRight="8dp"
android:layout_toLeftOf="@+id/view"
android:layout_toStartOf="@+id/view"
android:drawableTop="@drawable/ic_ricette_listaspesa_email"
android:text="@string/typical_products" />
<View
android:id="@+id/view"
android:layout_width="2dp"
android:layout_height="60dp"
android:layout_below="@+id/title_share_list"
android:layout_centerHorizontal="true"
android:layout_marginTop="6dp"
android:background="@color/white_background" />
<TextView
android:id="@+id/share_whatsapp"
android:layout_width="wrap_content"
android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:layout_marginLeft="8dp"
android:layout_toEndOf="@+id/view"
android:layout_toRightOf="@+id/view"
android:drawableTop="@drawable/ic_ricette_listaspesa_whatsapp"
android:text="@string/typical_products" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="horizontal"
android:padding="8dp">
<View
android:layout_width="0dp"
android:layout_height="2dp"
android:layout_gravity="center"
android:layout_marginLeft="11dp"
android:layout_weight="2"
android:background="@drawable/dotter_h_gray" />
<TextView
android:id="@+id/preparazione"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:gravity="center"
android:text="Preparazione"
android:textAlignment="gravity"
android:textColor="@color/black_background"
android:textStyle="italic" />
<View
android:layout_width="0dp"
android:layout_height="2dp"
android:layout_gravity="center"
android:layout_marginRight="11dp"
android:layout_weight="2"
android:background="@drawable/dotter_h_gray" />
</LinearLayout>
<it.iol.foodinitaly.utils.adapter.NonScrollListView
android:id="@+id/preparazione_list"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/accent" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Altre ricette:" />
<it.iol.foodinitaly.utils.adapter.NonScrollListView
android:id="@+id/altre_ricette_list"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</ScrollView>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment