Advertisement
Guest User

Summary XML

a guest
Sep 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 20.74 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout>
  3.  
  4.     <android.support.constraint.ConstraintLayout
  5.        xmlns:android="http://schemas.android.com/apk/res/android"
  6.        xmlns:app="http://schemas.android.com/apk/res-auto"
  7.        xmlns:tools="http://schemas.android.com/tools"
  8.        android:layout_width="match_parent"
  9.        android:layout_height="match_parent"
  10.        android:background="@color/fragment_upper_part_dark_gray">
  11.  
  12.         <LinearLayout
  13.            android:id="@+id/status_holder"
  14.            android:layout_width="0dp"
  15.            android:layout_height="wrap_content"
  16.            android:layout_marginTop="@dimen/summary_holder_margin_top"
  17.            android:gravity="center"
  18.            android:orientation="horizontal"
  19.            app:layout_constraintLeft_toLeftOf="parent"
  20.            app:layout_constraintRight_toRightOf="parent"
  21.            app:layout_constraintTop_toTopOf="parent">
  22.  
  23.             <ImageView
  24.                android:id="@+id/deviceStatusIcon"
  25.                android:layout_width="@dimen/device_status_icon_size"
  26.                android:layout_height="@dimen/device_status_icon_size"
  27.                android:src="@drawable/status_safe"
  28.                tools:ignore="ContentDescription"/>
  29.  
  30.             <LinearLayout
  31.                android:layout_width="wrap_content"
  32.                android:layout_height="wrap_content"
  33.                android:orientation="vertical">
  34.  
  35.                 <TextView
  36.                    android:id="@+id/deviceStatusLabel"
  37.                    android:layout_width="wrap_content"
  38.                    android:layout_height="wrap_content"
  39.                    android:fontFamily="@font/lato_thin"
  40.                    android:text="@string/device_status_label"
  41.                    android:textColor="@color/colorAccent"
  42.                    android:textSize="@dimen/device_status_label_text_size"/>
  43.  
  44.                 <TextView
  45.                    android:id="@+id/deviceStatusValue"
  46.                    android:layout_width="wrap_content"
  47.                    android:layout_height="wrap_content"
  48.                    android:fontFamily="@font/lato_thin"
  49.                    android:text="@string/device_status"
  50.                    android:textColor="@color/colorAccent"
  51.                    android:textSize="@dimen/device_status_text_size"/>
  52.  
  53.             </LinearLayout>
  54.  
  55.         </LinearLayout>
  56.  
  57.         <RadioGroup
  58.            android:id="@+id/daysGroup"
  59.            android:layout_width="@dimen/days_group_width"
  60.            android:layout_height="@dimen/days_group_height"
  61.            android:layout_marginTop="@dimen/days_group_margin_top"
  62.            android:background="@drawable/rounded_radio_button_group"
  63.            android:orientation="horizontal"
  64.            app:layout_constraintLeft_toLeftOf="parent"
  65.            app:layout_constraintRight_toRightOf="parent"
  66.            app:layout_constraintTop_toBottomOf="@+id/status_holder">
  67.  
  68.             <RadioButton
  69.                android:id="@+id/sevenDaysRadioButton"
  70.                style="@style/RadioButton"
  71.                android:layout_width="0dp"
  72.                android:layout_height="wrap_content"
  73.                android:layout_weight="1"
  74.                android:background="@drawable/rounded_radio_button_blue_bordered"
  75.                android:fontFamily="@font/lato_regular"
  76.                android:text="@string/seven_days_alert"
  77.                android:textSize="@dimen/days_group_text_size"/>
  78.  
  79.             <RadioButton
  80.                android:id="@+id/thirtyDaysRadioButton"
  81.                style="@style/RadioButton"
  82.                android:layout_width="0dp"
  83.                android:layout_height="wrap_content"
  84.                android:layout_weight="1"
  85.                android:background="@drawable/rounded_radio_button_blue_bordered"
  86.                android:fontFamily="@font/lato_regular"
  87.                android:text="@string/twenty_days_alert"
  88.                android:textSize="@dimen/days_group_text_size"/>
  89.         </RadioGroup>
  90.  
  91.         <RelativeLayout
  92.            android:id="@+id/chart_holder"
  93.            android:layout_width="0dp"
  94.            android:layout_height="@dimen/bar_chart_holder_height"
  95.            app:layout_constraintBottom_toTopOf="@+id/info_holder"
  96.            app:layout_constraintLeft_toLeftOf="parent"
  97.            app:layout_constraintRight_toRightOf="parent"
  98.            app:layout_constraintTop_toBottomOf="@id/daysGroup">
  99.  
  100.             <android.support.constraint.ConstraintLayout
  101.                android:id="@+id/top_value_holder"
  102.                android:layout_width="match_parent"
  103.                android:layout_height="wrap_content">
  104.  
  105.                 <View
  106.                    android:layout_width="0dp"
  107.                    android:layout_height="1dp"
  108.                    android:layout_marginEnd="@dimen/bar_chart_margin"
  109.                    android:layout_marginTop="@dimen/top_bar_y_axis_margin_top"
  110.                    android:background="@color/separator_color"
  111.                    app:layout_constraintBottom_toBottomOf="parent"
  112.                    app:layout_constraintLeft_toLeftOf="parent"
  113.                    app:layout_constraintRight_toLeftOf="@+id/top_value"
  114.                    app:layout_constraintTop_toTopOf="parent"/>
  115.  
  116.                 <TextView
  117.                    android:id="@+id/top_value"
  118.                    android:layout_width="wrap_content"
  119.                    android:layout_height="wrap_content"
  120.                    android:layout_marginEnd="@dimen/bar_chart_margin"
  121.                    android:layout_marginTop="@dimen/top_bar_y_axis_margin_top"
  122.                    android:textSize="@dimen/bar_y_axis_text_size"
  123.                    app:layout_constraintBottom_toBottomOf="parent"
  124.                    app:layout_constraintRight_toRightOf="parent"
  125.                    app:layout_constraintTop_toTopOf="parent"
  126.                    tools:text="20"/>
  127.  
  128.             </android.support.constraint.ConstraintLayout>
  129.  
  130.             <android.support.constraint.ConstraintLayout
  131.                android:id="@+id/bot_value_holder"
  132.                android:layout_width="match_parent"
  133.                android:layout_height="wrap_content"
  134.                android:layout_alignParentBottom="true">
  135.  
  136.                 <View
  137.                    android:layout_width="0dp"
  138.                    android:layout_height="1dp"
  139.                    android:layout_marginBottom="@dimen/bot_bar_y_axis_margin_bot"
  140.                    android:layout_marginEnd="@dimen/bar_chart_margin"
  141.                    android:background="@color/separator_color"
  142.                    app:layout_constraintBottom_toBottomOf="parent"
  143.                    app:layout_constraintLeft_toLeftOf="parent"
  144.                    app:layout_constraintRight_toLeftOf="@+id/bot_value"
  145.                    app:layout_constraintTop_toTopOf="parent"/>
  146.  
  147.                 <TextView
  148.                    android:id="@+id/bot_value"
  149.                    android:layout_width="wrap_content"
  150.                    android:layout_height="wrap_content"
  151.                    android:layout_marginBottom="@dimen/bot_bar_y_axis_margin_bot"
  152.                    android:layout_marginEnd="@dimen/bar_chart_margin"
  153.                    android:textSize="@dimen/bar_y_axis_text_size"
  154.                    app:layout_constraintBottom_toBottomOf="parent"
  155.                    app:layout_constraintRight_toRightOf="parent"
  156.                    app:layout_constraintTop_toTopOf="parent"
  157.                    tools:text="20"/>
  158.  
  159.             </android.support.constraint.ConstraintLayout>
  160.  
  161.             <android.support.constraint.ConstraintLayout
  162.                android:id="@+id/second_value_holder"
  163.                android:layout_width="match_parent"
  164.                android:layout_height="wrap_content"
  165.                android:layout_below="@+id/top_value_holder"
  166.                android:layout_marginTop="@dimen/bar_y_axis_second_holder_margin_top">
  167.  
  168.                 <View
  169.                    android:layout_width="0dp"
  170.                    android:layout_height="1dp"
  171.                    android:layout_marginEnd="@dimen/bar_chart_margin"
  172.                    android:background="@color/separator_color"
  173.                    app:layout_constraintBottom_toBottomOf="parent"
  174.                    app:layout_constraintLeft_toLeftOf="parent"
  175.                    app:layout_constraintRight_toLeftOf="@+id/second_value"
  176.                    app:layout_constraintTop_toTopOf="parent"/>
  177.  
  178.                 <TextView
  179.                    android:id="@+id/second_value"
  180.                    android:layout_width="wrap_content"
  181.                    android:layout_height="wrap_content"
  182.                    android:layout_marginEnd="@dimen/bar_chart_margin"
  183.                    android:textSize="@dimen/bar_y_axis_text_size"
  184.                    app:layout_constraintBottom_toBottomOf="parent"
  185.                    app:layout_constraintRight_toRightOf="parent"
  186.                    app:layout_constraintTop_toTopOf="parent"
  187.                    tools:text="20"/>
  188.  
  189.             </android.support.constraint.ConstraintLayout>
  190.  
  191.             <android.support.constraint.ConstraintLayout
  192.                android:id="@+id/third_value_holder"
  193.                android:layout_width="match_parent"
  194.                android:layout_height="wrap_content"
  195.                android:layout_above="@+id/fourth_value_holder"
  196.                android:layout_marginBottom="@dimen/bar_y_axis_third_holder_margin_bottom">
  197.  
  198.                 <View
  199.                    android:layout_width="0dp"
  200.                    android:layout_height="1dp"
  201.                    android:layout_marginEnd="@dimen/bar_chart_margin"
  202.                    android:background="@color/separator_color"
  203.                    app:layout_constraintBottom_toBottomOf="parent"
  204.                    app:layout_constraintLeft_toLeftOf="parent"
  205.                    app:layout_constraintRight_toLeftOf="@+id/third_value"
  206.                    app:layout_constraintTop_toTopOf="parent"/>
  207.  
  208.                 <TextView
  209.                    android:id="@+id/third_value"
  210.                    android:layout_width="wrap_content"
  211.                    android:layout_height="wrap_content"
  212.                    android:layout_marginEnd="@dimen/bar_chart_margin"
  213.                    android:textSize="@dimen/bar_y_axis_text_size"
  214.                    app:layout_constraintBottom_toBottomOf="parent"
  215.                    app:layout_constraintRight_toRightOf="parent"
  216.                    app:layout_constraintTop_toTopOf="parent"
  217.                    tools:text="20"/>
  218.  
  219.             </android.support.constraint.ConstraintLayout>
  220.  
  221.             <android.support.constraint.ConstraintLayout
  222.                android:id="@+id/fourth_value_holder"
  223.                android:layout_width="match_parent"
  224.                android:layout_height="wrap_content"
  225.                android:layout_above="@+id/bot_value_holder"
  226.                android:layout_marginBottom="@dimen/bar_y_axis_third_holder_margin_bottom">
  227.  
  228.                 <View
  229.                    android:layout_width="0dp"
  230.                    android:layout_height="1dp"
  231.                    android:layout_marginEnd="@dimen/bar_chart_margin"
  232.                    android:background="@color/separator_color"
  233.                    app:layout_constraintBottom_toBottomOf="parent"
  234.                    app:layout_constraintLeft_toLeftOf="parent"
  235.                    app:layout_constraintRight_toLeftOf="@+id/fourth_value"
  236.                    app:layout_constraintTop_toTopOf="parent"/>
  237.  
  238.                 <TextView
  239.                    android:id="@+id/fourth_value"
  240.                    android:layout_width="wrap_content"
  241.                    android:layout_height="wrap_content"
  242.                    android:layout_marginEnd="@dimen/bar_chart_margin"
  243.                    android:textSize="@dimen/bar_y_axis_text_size"
  244.                    app:layout_constraintBottom_toBottomOf="parent"
  245.                    app:layout_constraintRight_toRightOf="parent"
  246.                    app:layout_constraintTop_toTopOf="parent"
  247.                    tools:text="20"/>
  248.  
  249.             </android.support.constraint.ConstraintLayout>
  250.  
  251.             <com.inpedio.mercury.dashboard.view.progressChart.ChartProgressBar
  252.                android:id="@+id/alertChart"
  253.                android:layout_width="match_parent"
  254.                android:layout_height="@dimen/bar_chart_height"
  255.                android:layout_marginBottom="@dimen/bar_chart_margin"
  256.                android:layout_marginEnd="@dimen/bar_chart_margin_end"
  257.                android:layout_marginStart="@dimen/bar_chart_margin_start"
  258.                android:layout_marginTop="@dimen/bar_chart_margin"
  259.                app:hdBarCanBeClick="true"
  260.                app:hdBarTitleColor="@color/colorAccent"
  261.                app:hdBarTitleSelectedColor="@color/colorAccent"
  262.                app:hdBarTitleTxtSize="@dimen/bar_x_axis_text_size"/>
  263.  
  264.         </RelativeLayout>
  265.  
  266.  
  267.         <RelativeLayout
  268.            android:id="@+id/info_holder"
  269.            android:layout_width="0dp"
  270.            android:layout_height="0dp"
  271.            android:background="@color/fragment_background_light"
  272.            app:layout_constraintBottom_toBottomOf="parent"
  273.            app:layout_constraintLeft_toLeftOf="parent"
  274.            app:layout_constraintRight_toRightOf="parent"
  275.            app:layout_constraintTop_toBottomOf="@+id/chart_holder">
  276.  
  277.             <TextView
  278.                android:id="@+id/applicationPermissionsText"
  279.                android:layout_width="wrap_content"
  280.                android:layout_height="wrap_content"
  281.                android:layout_margin="@dimen/status_row_margin"
  282.                android:drawablePadding="@dimen/status_row_drawable_padding"
  283.                android:drawableStart="@drawable/ic_alert_notice"
  284.                android:fontFamily="@font/lato_thin"
  285.                android:gravity="center"
  286.                android:text="@string/summary_application_permissions"
  287.                android:textColor="@color/colorAccent"
  288.                android:textSize="@dimen/summary_status_row_text_size"/>
  289.  
  290.             <View
  291.                android:id="@+id/first_separator"
  292.                android:layout_width="match_parent"
  293.                android:layout_height="1dp"
  294.                android:layout_below="@+id/applicationPermissionsText"
  295.                android:background="@color/separator_color"/>
  296.  
  297.             <TextView
  298.                android:id="@+id/lastScanLabel"
  299.                android:layout_width="wrap_content"
  300.                android:layout_height="wrap_content"
  301.                android:layout_below="@+id/first_separator"
  302.                android:layout_margin="@dimen/status_row_margin"
  303.                android:drawablePadding="@dimen/status_row_drawable_padding"
  304.                android:drawableStart="@drawable/ic_alert_notice"
  305.                android:fontFamily="@font/lato_thin"
  306.                android:gravity="center"
  307.                android:text="@string/summary_antivirus"
  308.                android:textColor="@color/colorAccent"
  309.                android:textSize="@dimen/summary_status_row_text_size"/>
  310.  
  311.             <TextView
  312.                android:id="@+id/lastScanValue"
  313.                android:layout_width="wrap_content"
  314.                android:layout_height="wrap_content"
  315.                android:layout_alignParentEnd="true"
  316.                android:layout_below="@+id/first_separator"
  317.                android:layout_gravity="center"
  318.                android:layout_margin="@dimen/status_row_margin"
  319.                android:layout_marginEnd="@dimen/last_scan_margin_right"
  320.                android:fontFamily="@font/lato_regular"
  321.                android:gravity="end"
  322.                android:textAllCaps="true"
  323.                android:textColor="@color/colorAccent"
  324.                android:textSize="12sp"
  325.                tools:text="LAST SCAN \n08/23/16 1:13 AM"/>
  326.  
  327.             <View
  328.                android:id="@+id/second_separator"
  329.                android:layout_width="match_parent"
  330.                android:layout_height="1dp"
  331.                android:layout_below="@+id/lastScanLabel"
  332.                android:background="@color/separator_color"/>
  333.  
  334.             <RelativeLayout
  335.                android:id="@+id/comment_holder"
  336.                android:layout_width="match_parent"
  337.                android:layout_height="wrap_content"
  338.                android:layout_below="@+id/first_separator"
  339.                android:layout_marginTop="@dimen/comment_holder_margin_top">
  340.  
  341.                 <TextView
  342.                    android:id="@+id/comment"
  343.                    android:layout_width="match_parent"
  344.                    android:layout_height="wrap_content"
  345.                    android:layout_margin="@dimen/rounded_comment_margin_padding"
  346.                    android:background="@drawable/rounded_comment_background"
  347.                    android:fontFamily="@font/lato_thin"
  348.                    android:gravity="center"
  349.                    android:padding="@dimen/rounded_comment_margin_padding"
  350.                    android:text="@string/secure_comms_turned_off"
  351.                    android:textColor="@color/white"
  352.                    android:textSize="@dimen/status_text_size"/>
  353.  
  354.                 <ImageView
  355.                    android:layout_width="@dimen/arrow_down_size"
  356.                    android:layout_height="@dimen/arrow_down_size"
  357.                    android:layout_below="@+id/comment"
  358.                    android:layout_marginStart="@dimen/arrow_down_margin_start"
  359.                    android:layout_marginTop="@dimen/arrow_down_margin_top"
  360.                    app:srcCompat="@drawable/ic_vector_arrow_down"
  361.                    tools:ignore="ContentDescription"/>
  362.  
  363.             </RelativeLayout>
  364.  
  365.             <TextView
  366.                android:id="@+id/secure_communications"
  367.                android:layout_width="wrap_content"
  368.                android:layout_height="wrap_content"
  369.                android:layout_below="@+id/second_separator"
  370.                android:layout_gravity="center"
  371.                android:layout_margin="@dimen/status_row_margin"
  372.                android:drawablePadding="@dimen/status_row_drawable_padding"
  373.                android:drawableStart="@drawable/ic_alert_notice"
  374.                android:fontFamily="@font/lato_thin"
  375.                android:gravity="center"
  376.                android:text="@string/summary_secured_communications"
  377.                android:textColor="@color/colorAccent"
  378.                android:textSize="@dimen/summary_status_row_text_size"/>
  379.  
  380.             <Switch
  381.                android:id="@+id/onOffVpn"
  382.                android:layout_width="wrap_content"
  383.                android:layout_height="wrap_content"
  384.                android:layout_alignParentEnd="true"
  385.                android:layout_below="@+id/second_separator"
  386.                android:layout_gravity="center"
  387.                android:layout_marginEnd="@dimen/status_row_margin"
  388.                android:layout_marginTop="@dimen/secure_communications_switch_margin_top"/>
  389.  
  390.             <View
  391.                android:id="@+id/third_separator"
  392.                android:layout_width="match_parent"
  393.                android:layout_height="1dp"
  394.                android:layout_below="@+id/secure_communications"
  395.                android:background="@color/separator_color"/>
  396.  
  397.             <TextView
  398.                android:id="@+id/applicationSecurityLabel"
  399.                android:layout_width="wrap_content"
  400.                android:layout_height="wrap_content"
  401.                android:layout_below="@id/third_separator"
  402.                android:layout_gravity="center"
  403.                android:layout_margin="@dimen/status_row_margin"
  404.                android:drawablePadding="@dimen/status_row_drawable_padding"
  405.                android:drawableStart="@drawable/ic_alert_notice"
  406.                android:fontFamily="@font/lato_thin"
  407.                android:gravity="center"
  408.                android:text="@string/summary_applications_security"
  409.                android:textColor="@color/colorAccent"
  410.                android:textSize="@dimen/summary_status_row_text_size"/>
  411.  
  412.             <TextView
  413.                android:id="@+id/applicationSecurityValue"
  414.                android:layout_width="wrap_content"
  415.                android:layout_height="wrap_content"
  416.                android:layout_alignParentEnd="true"
  417.                android:layout_below="@+id/third_separator"
  418.                android:layout_gravity="center"
  419.                android:layout_marginEnd="@dimen/last_scan_margin_right"
  420.                android:layout_marginTop="@dimen/applications_security_margin_top"
  421.                android:fontFamily="@font/lato_regular"
  422.                android:gravity="end"
  423.                android:textColor="@color/colorAccent"
  424.                android:textSize="@dimen/status_text_size"
  425.                tools:text="4/50"/>
  426.  
  427.         </RelativeLayout>
  428.  
  429.     </android.support.constraint.ConstraintLayout>
  430. </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement