Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <layout>
- <android.support.constraint.ConstraintLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/fragment_upper_part_dark_gray">
- <LinearLayout
- android:id="@+id/status_holder"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginTop="@dimen/summary_holder_margin_top"
- android:gravity="center"
- android:orientation="horizontal"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <ImageView
- android:id="@+id/deviceStatusIcon"
- android:layout_width="@dimen/device_status_icon_size"
- android:layout_height="@dimen/device_status_icon_size"
- android:src="@drawable/status_safe"
- tools:ignore="ContentDescription"/>
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <TextView
- android:id="@+id/deviceStatusLabel"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:fontFamily="@font/lato_thin"
- android:text="@string/device_status_label"
- android:textColor="@color/colorAccent"
- android:textSize="@dimen/device_status_label_text_size"/>
- <TextView
- android:id="@+id/deviceStatusValue"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:fontFamily="@font/lato_thin"
- android:text="@string/device_status"
- android:textColor="@color/colorAccent"
- android:textSize="@dimen/device_status_text_size"/>
- </LinearLayout>
- </LinearLayout>
- <RadioGroup
- android:id="@+id/daysGroup"
- android:layout_width="@dimen/days_group_width"
- android:layout_height="@dimen/days_group_height"
- android:layout_marginTop="@dimen/days_group_margin_top"
- android:background="@drawable/rounded_radio_button_group"
- android:orientation="horizontal"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/status_holder">
- <RadioButton
- android:id="@+id/sevenDaysRadioButton"
- style="@style/RadioButton"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="@drawable/rounded_radio_button_blue_bordered"
- android:fontFamily="@font/lato_regular"
- android:text="@string/seven_days_alert"
- android:textSize="@dimen/days_group_text_size"/>
- <RadioButton
- android:id="@+id/thirtyDaysRadioButton"
- style="@style/RadioButton"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="@drawable/rounded_radio_button_blue_bordered"
- android:fontFamily="@font/lato_regular"
- android:text="@string/twenty_days_alert"
- android:textSize="@dimen/days_group_text_size"/>
- </RadioGroup>
- <RelativeLayout
- android:id="@+id/chart_holder"
- android:layout_width="0dp"
- android:layout_height="@dimen/bar_chart_holder_height"
- app:layout_constraintBottom_toTopOf="@+id/info_holder"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toBottomOf="@id/daysGroup">
- <android.support.constraint.ConstraintLayout
- android:id="@+id/top_value_holder"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_marginEnd="@dimen/bar_chart_margin"
- android:layout_marginTop="@dimen/top_bar_y_axis_margin_top"
- android:background="@color/separator_color"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@+id/top_value"
- app:layout_constraintTop_toTopOf="parent"/>
- <TextView
- android:id="@+id/top_value"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/bar_chart_margin"
- android:layout_marginTop="@dimen/top_bar_y_axis_margin_top"
- android:textSize="@dimen/bar_y_axis_text_size"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:text="20"/>
- </android.support.constraint.ConstraintLayout>
- <android.support.constraint.ConstraintLayout
- android:id="@+id/bot_value_holder"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true">
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_marginBottom="@dimen/bot_bar_y_axis_margin_bot"
- android:layout_marginEnd="@dimen/bar_chart_margin"
- android:background="@color/separator_color"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@+id/bot_value"
- app:layout_constraintTop_toTopOf="parent"/>
- <TextView
- android:id="@+id/bot_value"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/bot_bar_y_axis_margin_bot"
- android:layout_marginEnd="@dimen/bar_chart_margin"
- android:textSize="@dimen/bar_y_axis_text_size"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:text="20"/>
- </android.support.constraint.ConstraintLayout>
- <android.support.constraint.ConstraintLayout
- android:id="@+id/second_value_holder"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/top_value_holder"
- android:layout_marginTop="@dimen/bar_y_axis_second_holder_margin_top">
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_marginEnd="@dimen/bar_chart_margin"
- android:background="@color/separator_color"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@+id/second_value"
- app:layout_constraintTop_toTopOf="parent"/>
- <TextView
- android:id="@+id/second_value"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/bar_chart_margin"
- android:textSize="@dimen/bar_y_axis_text_size"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:text="20"/>
- </android.support.constraint.ConstraintLayout>
- <android.support.constraint.ConstraintLayout
- android:id="@+id/third_value_holder"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_above="@+id/fourth_value_holder"
- android:layout_marginBottom="@dimen/bar_y_axis_third_holder_margin_bottom">
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_marginEnd="@dimen/bar_chart_margin"
- android:background="@color/separator_color"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@+id/third_value"
- app:layout_constraintTop_toTopOf="parent"/>
- <TextView
- android:id="@+id/third_value"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/bar_chart_margin"
- android:textSize="@dimen/bar_y_axis_text_size"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:text="20"/>
- </android.support.constraint.ConstraintLayout>
- <android.support.constraint.ConstraintLayout
- android:id="@+id/fourth_value_holder"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_above="@+id/bot_value_holder"
- android:layout_marginBottom="@dimen/bar_y_axis_third_holder_margin_bottom">
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_marginEnd="@dimen/bar_chart_margin"
- android:background="@color/separator_color"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@+id/fourth_value"
- app:layout_constraintTop_toTopOf="parent"/>
- <TextView
- android:id="@+id/fourth_value"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/bar_chart_margin"
- android:textSize="@dimen/bar_y_axis_text_size"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:text="20"/>
- </android.support.constraint.ConstraintLayout>
- <com.inpedio.mercury.dashboard.view.progressChart.ChartProgressBar
- android:id="@+id/alertChart"
- android:layout_width="match_parent"
- android:layout_height="@dimen/bar_chart_height"
- android:layout_marginBottom="@dimen/bar_chart_margin"
- android:layout_marginEnd="@dimen/bar_chart_margin_end"
- android:layout_marginStart="@dimen/bar_chart_margin_start"
- android:layout_marginTop="@dimen/bar_chart_margin"
- app:hdBarCanBeClick="true"
- app:hdBarTitleColor="@color/colorAccent"
- app:hdBarTitleSelectedColor="@color/colorAccent"
- app:hdBarTitleTxtSize="@dimen/bar_x_axis_text_size"/>
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/info_holder"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:background="@color/fragment_background_light"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/chart_holder">
- <TextView
- android:id="@+id/applicationPermissionsText"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="@dimen/status_row_margin"
- android:drawablePadding="@dimen/status_row_drawable_padding"
- android:drawableStart="@drawable/ic_alert_notice"
- android:fontFamily="@font/lato_thin"
- android:gravity="center"
- android:text="@string/summary_application_permissions"
- android:textColor="@color/colorAccent"
- android:textSize="@dimen/summary_status_row_text_size"/>
- <View
- android:id="@+id/first_separator"
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_below="@+id/applicationPermissionsText"
- android:background="@color/separator_color"/>
- <TextView
- android:id="@+id/lastScanLabel"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/first_separator"
- android:layout_margin="@dimen/status_row_margin"
- android:drawablePadding="@dimen/status_row_drawable_padding"
- android:drawableStart="@drawable/ic_alert_notice"
- android:fontFamily="@font/lato_thin"
- android:gravity="center"
- android:text="@string/summary_antivirus"
- android:textColor="@color/colorAccent"
- android:textSize="@dimen/summary_status_row_text_size"/>
- <TextView
- android:id="@+id/lastScanValue"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_below="@+id/first_separator"
- android:layout_gravity="center"
- android:layout_margin="@dimen/status_row_margin"
- android:layout_marginEnd="@dimen/last_scan_margin_right"
- android:fontFamily="@font/lato_regular"
- android:gravity="end"
- android:textAllCaps="true"
- android:textColor="@color/colorAccent"
- android:textSize="12sp"
- tools:text="LAST SCAN \n08/23/16 1:13 AM"/>
- <View
- android:id="@+id/second_separator"
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_below="@+id/lastScanLabel"
- android:background="@color/separator_color"/>
- <RelativeLayout
- android:id="@+id/comment_holder"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/first_separator"
- android:layout_marginTop="@dimen/comment_holder_margin_top">
- <TextView
- android:id="@+id/comment"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="@dimen/rounded_comment_margin_padding"
- android:background="@drawable/rounded_comment_background"
- android:fontFamily="@font/lato_thin"
- android:gravity="center"
- android:padding="@dimen/rounded_comment_margin_padding"
- android:text="@string/secure_comms_turned_off"
- android:textColor="@color/white"
- android:textSize="@dimen/status_text_size"/>
- <ImageView
- android:layout_width="@dimen/arrow_down_size"
- android:layout_height="@dimen/arrow_down_size"
- android:layout_below="@+id/comment"
- android:layout_marginStart="@dimen/arrow_down_margin_start"
- android:layout_marginTop="@dimen/arrow_down_margin_top"
- app:srcCompat="@drawable/ic_vector_arrow_down"
- tools:ignore="ContentDescription"/>
- </RelativeLayout>
- <TextView
- android:id="@+id/secure_communications"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/second_separator"
- android:layout_gravity="center"
- android:layout_margin="@dimen/status_row_margin"
- android:drawablePadding="@dimen/status_row_drawable_padding"
- android:drawableStart="@drawable/ic_alert_notice"
- android:fontFamily="@font/lato_thin"
- android:gravity="center"
- android:text="@string/summary_secured_communications"
- android:textColor="@color/colorAccent"
- android:textSize="@dimen/summary_status_row_text_size"/>
- <Switch
- android:id="@+id/onOffVpn"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_below="@+id/second_separator"
- android:layout_gravity="center"
- android:layout_marginEnd="@dimen/status_row_margin"
- android:layout_marginTop="@dimen/secure_communications_switch_margin_top"/>
- <View
- android:id="@+id/third_separator"
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_below="@+id/secure_communications"
- android:background="@color/separator_color"/>
- <TextView
- android:id="@+id/applicationSecurityLabel"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/third_separator"
- android:layout_gravity="center"
- android:layout_margin="@dimen/status_row_margin"
- android:drawablePadding="@dimen/status_row_drawable_padding"
- android:drawableStart="@drawable/ic_alert_notice"
- android:fontFamily="@font/lato_thin"
- android:gravity="center"
- android:text="@string/summary_applications_security"
- android:textColor="@color/colorAccent"
- android:textSize="@dimen/summary_status_row_text_size"/>
- <TextView
- android:id="@+id/applicationSecurityValue"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_below="@+id/third_separator"
- android:layout_gravity="center"
- android:layout_marginEnd="@dimen/last_scan_margin_right"
- android:layout_marginTop="@dimen/applications_security_margin_top"
- android:fontFamily="@font/lato_regular"
- android:gravity="end"
- android:textColor="@color/colorAccent"
- android:textSize="@dimen/status_text_size"
- tools:text="4/50"/>
- </RelativeLayout>
- </android.support.constraint.ConstraintLayout>
- </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement