Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 18.43 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:tools="http://schemas.android.com/tools">
  6.  
  7.     <androidx.constraintlayout.widget.ConstraintLayout
  8.        android:layout_width="match_parent"
  9.        android:layout_height="match_parent">
  10.  
  11.         <ScrollView
  12.            android:layout_width="0dp"
  13.            android:layout_height="0dp"
  14.            app:layout_constraintBottom_toBottomOf="parent"
  15.            app:layout_constraintEnd_toEndOf="parent"
  16.            app:layout_constraintStart_toStartOf="parent"
  17.            app:layout_constraintTop_toTopOf="parent">
  18.  
  19.             <androidx.constraintlayout.widget.ConstraintLayout
  20.                android:layout_width="match_parent"
  21.                android:layout_height="wrap_content">
  22.  
  23.                 <TextView
  24.                    android:id="@+id/textViewNomeStruttura"
  25.                    android:layout_width="0dp"
  26.                    android:layout_height="wrap_content"
  27.                    android:layout_marginStart="24dp"
  28.                    android:layout_marginTop="10dp"
  29.                    android:layout_marginEnd="24dp"
  30.                    android:text="@string/nome_struttura_riempito_dinamicamente"
  31.                    android:textIsSelectable="true"
  32.                    android:textColor="@android:color/black"
  33.                    android:textSize="18sp"
  34.                    android:textStyle="bold"
  35.                    app:layout_constraintEnd_toEndOf="parent"
  36.                    app:layout_constraintStart_toStartOf="parent"
  37.                    app:layout_constraintTop_toBottomOf="@+id/imageStruttura" />
  38.  
  39.                 <ImageView
  40.                    android:id="@+id/imageStruttura"
  41.                    android:layout_width="0dp"
  42.                    android:layout_height="80pt"
  43.                    android:contentDescription="@string/immagine_struttura"
  44.                    android:scaleType="centerCrop"
  45.                    app:layout_constraintEnd_toEndOf="parent"
  46.                    app:layout_constraintStart_toStartOf="parent"
  47.                    app:layout_constraintTop_toBottomOf="@+id/view19"
  48.                    app:srcCompat="@drawable/ic_broken_image_black_24dp" />
  49.  
  50.                 <ImageView
  51.                    android:id="@+id/imageStella1"
  52.                    android:layout_width="wrap_content"
  53.                    android:layout_height="wrap_content"
  54.                    android:layout_marginStart="24dp"
  55.                    android:layout_marginTop="6dp"
  56.                    android:contentDescription="@string/una_stella"
  57.                    app:layout_constraintStart_toStartOf="parent"
  58.                    app:layout_constraintTop_toBottomOf="@+id/textViewNomeStruttura"
  59.                    app:srcCompat="@drawable/ic_star_border_black_24dp" />
  60.  
  61.                 <ImageView
  62.                    android:id="@+id/imageStella2"
  63.                    android:layout_width="wrap_content"
  64.                    android:layout_height="wrap_content"
  65.                    app:layout_constraintStart_toEndOf="@+id/imageStella1"
  66.                    app:layout_constraintTop_toTopOf="@+id/imageStella1"
  67.                    app:srcCompat="@drawable/ic_star_border_black_24dp"
  68.                    android:contentDescription="@string/due_stelle" />
  69.  
  70.                 <ImageView
  71.                    android:id="@+id/imageStella3"
  72.                    android:layout_width="wrap_content"
  73.                    android:layout_height="wrap_content"
  74.                    app:layout_constraintStart_toEndOf="@+id/imageStella2"
  75.                    app:layout_constraintTop_toTopOf="@+id/imageStella2"
  76.                    app:srcCompat="@drawable/ic_star_border_black_24dp"
  77.                    android:contentDescription="@string/tre_stelle" />
  78.  
  79.                 <ImageView
  80.                    android:id="@+id/imageStella4"
  81.                    android:layout_width="wrap_content"
  82.                    android:layout_height="wrap_content"
  83.                    app:layout_constraintStart_toEndOf="@+id/imageStella3"
  84.                    app:layout_constraintTop_toTopOf="@+id/imageStella3"
  85.                    app:srcCompat="@drawable/ic_star_border_black_24dp"
  86.                    android:contentDescription="@string/quattro_stelle" />
  87.  
  88.                 <ImageView
  89.                    android:id="@+id/imageStella5"
  90.                    android:layout_width="wrap_content"
  91.                    android:layout_height="wrap_content"
  92.                    app:layout_constraintStart_toEndOf="@+id/imageStella4"
  93.                    app:layout_constraintTop_toTopOf="@+id/imageStella4"
  94.                    app:srcCompat="@drawable/ic_star_border_black_24dp"
  95.                    android:contentDescription="@string/cinque_stelle" />
  96.  
  97.                 <TextView
  98.                    android:id="@+id/textViewValutazione"
  99.                    android:layout_width="60dp"
  100.                    android:layout_height="wrap_content"
  101.                    android:layout_marginStart="8dp"
  102.                    android:text="@string/nessuna_valutazione_disponibile"
  103.                    app:layout_constraintBottom_toBottomOf="@+id/imageStella5"
  104.                    app:layout_constraintStart_toEndOf="@+id/imageStella5"
  105.                    app:layout_constraintTop_toTopOf="@+id/imageStella5" />
  106.  
  107.                 <TextView
  108.                    android:id="@+id/textViewDescrizione"
  109.                    android:layout_width="0dp"
  110.                    android:layout_height="wrap_content"
  111.                    android:layout_marginStart="24dp"
  112.                    android:layout_marginTop="3dp"
  113.                    android:layout_marginEnd="24dp"
  114.                    android:text="@string/descrizione_struttura_riempita_dinamicamente"
  115.                    app:layout_constraintEnd_toEndOf="parent"
  116.                    app:layout_constraintStart_toStartOf="parent"
  117.                    app:layout_constraintTop_toBottomOf="@+id/textViewTitoloDescrizioneStruttura" />
  118.  
  119.                 <View
  120.                    android:id="@+id/view13"
  121.                    android:layout_width="wrap_content"
  122.                    android:layout_height="4dp"
  123.                    android:layout_marginTop="6dp"
  124.                    android:background="@color/colorBackground"
  125.                    app:layout_constraintEnd_toEndOf="parent"
  126.                    app:layout_constraintStart_toStartOf="parent"
  127.                    app:layout_constraintTop_toBottomOf="@+id/buttonVisualizzaSuMappa" />
  128.  
  129.                 <View
  130.                    android:id="@+id/view12"
  131.                    android:layout_width="match_parent"
  132.                    android:layout_height="1dp"
  133.                    android:background="#c0c0c0"
  134.                    app:layout_constraintBottom_toTopOf="@+id/listViewRecensioni" />
  135.  
  136.                 <View
  137.                    android:id="@+id/view"
  138.                    android:layout_width="match_parent"
  139.                    android:layout_height="1dp"
  140.                    android:layout_marginTop="12dp"
  141.                    android:background="#c0c0c0"
  142.                    app:layout_constraintTop_toBottomOf="@+id/textViewSitoWeb"
  143.                    tools:layout_editor_absoluteX="-16dp" />
  144.  
  145.                 <View
  146.                    android:id="@+id/view17"
  147.                    android:layout_width="match_parent"
  148.                    android:layout_height="1dp"
  149.                    android:background="#c0c0c0"
  150.                    app:layout_constraintBottom_toTopOf="@+id/view13"
  151.                    tools:layout_editor_absoluteX="0dp" />
  152.  
  153.                 <View
  154.                    android:id="@+id/view19"
  155.                    android:layout_width="match_parent"
  156.                    android:layout_height="2dp"
  157.                    android:background="@color/colorPrimaryDark"
  158.                    app:layout_constraintTop_toTopOf="parent"
  159.                    tools:layout_editor_absoluteX="-16dp" />
  160.  
  161.                 <TextView
  162.                    android:id="@+id/textViewInformazioni"
  163.                    android:layout_width="wrap_content"
  164.                    android:layout_height="wrap_content"
  165.                    android:layout_marginStart="24dp"
  166.                    android:layout_marginTop="12dp"
  167.                    android:text="@string/informazioni_struttura"
  168.                    android:textStyle="bold"
  169.                    app:layout_constraintStart_toStartOf="parent"
  170.                    app:layout_constraintTop_toBottomOf="@+id/view13" />
  171.  
  172.                 <TextView
  173.                    android:id="@+id/textViewTitoloDescrizioneStruttura"
  174.                    android:layout_width="wrap_content"
  175.                    android:layout_height="wrap_content"
  176.                    android:layout_marginStart="24dp"
  177.                    android:layout_marginTop="8dp"
  178.                    android:text="@string/descrizione_struttura"
  179.                    android:textStyle="bold"
  180.                    app:layout_constraintStart_toStartOf="parent"
  181.                    app:layout_constraintTop_toBottomOf="@+id/imageStella1" />
  182.  
  183.                 <TextView
  184.                    android:id="@+id/textViewRecensioni"
  185.                    android:layout_width="0dp"
  186.                    android:layout_height="wrap_content"
  187.                    android:layout_marginStart="24dp"
  188.                    android:text="@string/numero_recensioni_struttura"
  189.                    android:textStyle="bold"
  190.                    app:layout_constraintBottom_toBottomOf="@+id/buttonFiltraRecensioni"
  191.                    app:layout_constraintEnd_toEndOf="@+id/buttonScriviRecensione"
  192.                    app:layout_constraintStart_toStartOf="parent"
  193.                    app:layout_constraintTop_toTopOf="@+id/buttonFiltraRecensioni" />
  194.  
  195.                 <ImageView
  196.                    android:id="@+id/imageViewIndirizzo"
  197.                    android:layout_width="wrap_content"
  198.                    android:layout_height="wrap_content"
  199.                    android:layout_marginTop="8dp"
  200.                    app:layout_constraintStart_toStartOf="@+id/textViewInformazioni"
  201.                    app:layout_constraintTop_toBottomOf="@+id/textViewInformazioni"
  202.                    app:srcCompat="@drawable/ic_place_black_24dp"
  203.                    android:contentDescription="@string/indirizzo" />
  204.  
  205.                 <TextView
  206.                    android:id="@+id/textViewIndirizzo"
  207.                    android:textIsSelectable="true"
  208.                    android:layout_width="0dp"
  209.                    android:layout_height="wrap_content"
  210.                    android:layout_marginStart="8dp"
  211.                    android:layout_marginEnd="24dp"
  212.                    android:text="@string/indirizzo_riempito_dinamicamente"
  213.                    app:layout_constraintBottom_toBottomOf="@+id/imageViewIndirizzo"
  214.                    app:layout_constraintEnd_toEndOf="parent"
  215.                    app:layout_constraintStart_toEndOf="@+id/imageViewIndirizzo"
  216.                    app:layout_constraintTop_toTopOf="@+id/imageViewIndirizzo" />
  217.  
  218.                 <ImageView
  219.                    android:id="@+id/imageViewTelefono"
  220.                    android:layout_width="wrap_content"
  221.                    android:layout_height="wrap_content"
  222.                    android:layout_marginTop="8dp"
  223.                    app:layout_constraintStart_toStartOf="@+id/imageViewIndirizzo"
  224.                    app:layout_constraintTop_toBottomOf="@+id/imageViewIndirizzo"
  225.                    app:srcCompat="@drawable/ic_phone_black_24dp"
  226.                    android:contentDescription="@string/numero_di_telefono" />
  227.  
  228.                 <TextView
  229.                    android:id="@+id/textViewTelefono"
  230.                    android:textIsSelectable="true"
  231.                    android:layout_width="0dp"
  232.                    android:layout_height="wrap_content"
  233.                    android:layout_marginStart="8dp"
  234.                    android:layout_marginEnd="24dp"
  235.                    android:text="@string/numero_di_telefono_riempito_dinamicamente"
  236.                    app:layout_constraintBottom_toBottomOf="@+id/imageViewTelefono"
  237.                    app:layout_constraintEnd_toEndOf="parent"
  238.                    app:layout_constraintStart_toEndOf="@+id/imageViewTelefono"
  239.                    app:layout_constraintTop_toTopOf="@+id/imageViewTelefono" />
  240.  
  241.                 <ImageView
  242.                    android:id="@+id/imageViewEmail"
  243.                    android:layout_width="wrap_content"
  244.                    android:layout_height="wrap_content"
  245.                    android:layout_marginTop="8dp"
  246.                    app:layout_constraintStart_toStartOf="@+id/imageViewTelefono"
  247.                    app:layout_constraintTop_toBottomOf="@+id/imageViewTelefono"
  248.                    app:srcCompat="@drawable/ic_email_black_24dp"
  249.                    android:contentDescription="@string/email" />
  250.  
  251.                 <TextView
  252.                    android:id="@+id/textViewEmail"
  253.                    android:textIsSelectable="true"
  254.                    android:layout_width="0dp"
  255.                    android:layout_height="wrap_content"
  256.                    android:layout_marginStart="8dp"
  257.                    android:layout_marginEnd="24dp"
  258.                    android:text="@string/email_riempita_dinamicamente"
  259.                    app:layout_constraintBottom_toBottomOf="@+id/imageViewEmail"
  260.                    app:layout_constraintEnd_toEndOf="parent"
  261.                    app:layout_constraintStart_toEndOf="@+id/imageViewEmail"
  262.                    app:layout_constraintTop_toTopOf="@+id/imageViewEmail" />
  263.  
  264.                 <ImageView
  265.                    android:id="@+id/imageView12"
  266.                    android:layout_width="wrap_content"
  267.                    android:layout_height="wrap_content"
  268.                    android:layout_marginStart="24dp"
  269.                    android:layout_marginTop="8dp"
  270.                    app:layout_constraintStart_toStartOf="parent"
  271.                    app:layout_constraintTop_toBottomOf="@+id/imageViewEmail"
  272.                    app:srcCompat="@drawable/ic_web_black_24dp"
  273.                    android:contentDescription="@string/sito_web" />
  274.  
  275.                 <TextView
  276.                    android:id="@+id/textViewSitoWeb"
  277.                    android:textIsSelectable="true"
  278.                    android:layout_width="0dp"
  279.                    android:layout_height="wrap_content"
  280.                    android:layout_marginStart="8dp"
  281.                    android:layout_marginEnd="24dp"
  282.                    android:text="@string/sito_web"
  283.                    app:layout_constraintBottom_toBottomOf="@+id/imageView12"
  284.                    app:layout_constraintEnd_toEndOf="parent"
  285.                    app:layout_constraintStart_toEndOf="@+id/imageView12"
  286.                    app:layout_constraintTop_toTopOf="@+id/imageView12" />
  287.  
  288.                 <Button
  289.                    android:id="@+id/buttonFiltraRecensioni"
  290.                    style="@style/Widget.MaterialComponents.Button.OutlinedButton"
  291.                    android:layout_width="wrap_content"
  292.                    android:layout_height="wrap_content"
  293.                    android:layout_marginTop="20dp"
  294.                    android:layout_marginEnd="24dp"
  295.                    android:text="@string/filtri"
  296.                    app:layout_constraintEnd_toEndOf="parent"
  297.                    app:layout_constraintTop_toBottomOf="@+id/textViewSitoWeb" />
  298.  
  299.                 <Button
  300.                    android:id="@+id/buttonScriviRecensione"
  301.                    style="@android:style/Widget.Material.Button.Colored"
  302.                    android:layout_width="wrap_content"
  303.                    android:layout_height="wrap_content"
  304.                    android:layout_marginStart="24dp"
  305.                    android:layout_marginTop="6dp"
  306.                    android:text="@string/bottone_scrivi_nuova_recensione"
  307.                    app:layout_constraintStart_toStartOf="parent"
  308.                    app:layout_constraintTop_toBottomOf="@+id/buttonFiltraRecensioni" />
  309.  
  310.                 <TextView
  311.                    android:id="@+id/textViewAvvisoRecensione"
  312.                    android:layout_width="0dp"
  313.                    android:layout_height="wrap_content"
  314.                    android:layout_marginStart="8dp"
  315.                    android:layout_marginEnd="24dp"
  316.                    android:text="@string/avviso_scrittura_recensione_riempito_dinamicamente"
  317.                    app:layout_constraintBottom_toBottomOf="@+id/buttonScriviRecensione"
  318.                    app:layout_constraintEnd_toEndOf="parent"
  319.                    app:layout_constraintStart_toEndOf="@+id/buttonScriviRecensione"
  320.                    app:layout_constraintTop_toTopOf="@+id/buttonScriviRecensione" />
  321.  
  322. <android.support.v4.widget.NestedScrollView
  323.    android:layout_width="match_parent"
  324.    android:layout_height="match_parent"
  325.    android:scrollbars="none"
  326.    app:layout_behavior="@string/appbar_scrolling_view_behavior"
  327.    android:fillViewport="true"
  328.    >
  329.                 <ListView
  330.                    android:id="@+id/listViewRecensioni"
  331.                    android:layout_width="0dp"
  332.                    android:layout_height="400dp"
  333.                    android:layout_marginTop="6dp"
  334.                    android:nestedScrollingEnabled="true"
  335.                    app:layout_constraintBottom_toBottomOf="parent"
  336.                    app:layout_constraintEnd_toEndOf="parent"
  337.                    app:layout_constraintStart_toStartOf="parent"
  338.                    app:layout_constraintTop_toBottomOf="@+id/buttonScriviRecensione"
  339.                 />
  340. </android.support.v4.widget.NestedScrollView>
  341.  
  342.                 <Button
  343.                    android:id="@+id/buttonVisualizzaSuMappa"
  344.                    style="@style/Widget.MaterialComponents.Button.OutlinedButton"
  345.                    android:layout_width="0dp"
  346.                    android:layout_height="wrap_content"
  347.                    android:layout_marginStart="24dp"
  348.                    android:layout_marginTop="4dp"
  349.                    android:layout_marginEnd="24dp"
  350.                    android:text="@string/button_visualizza_su_mappa"
  351.                    app:layout_constraintEnd_toEndOf="parent"
  352.                    app:layout_constraintStart_toStartOf="parent"
  353.                    app:layout_constraintTop_toBottomOf="@+id/textViewDescrizione" />
  354.             </androidx.constraintlayout.widget.ConstraintLayout>
  355.         </ScrollView>
  356.     </androidx.constraintlayout.widget.ConstraintLayout>
  357. </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement