tuttelikz

activity_ffmpeg_record.xml [vs1]

Jun 11th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 35.23 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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:id="@+id/recordVideoLayout"
  6.     android:layout_width="match_parent"
  7.     android:layout_height="match_parent"
  8.     android:keepScreenOn="true"
  9.     android:orientation="vertical"
  10.     android:paddingBottom="@dimen/activity_vertical_margin"
  11.     android:paddingLeft="@dimen/activity_horizontal_margin"
  12.     android:paddingRight="@dimen/activity_horizontal_margin"
  13.     android:paddingTop="@dimen/activity_vertical_margin"
  14.     android:background="@color/colorBg"
  15.     android:weightSum="10"
  16.     tools:context=".FFmpegRecordActivity">
  17.  
  18.     <RelativeLayout
  19.         android:layout_width="match_parent"
  20.         android:layout_height="wrap_content">
  21.  
  22.         <Button
  23.             android:id="@+id/btn_reset"
  24.             android:layout_width="wrap_content"
  25.             android:layout_height="wrap_content"
  26.             android:layout_alignParentLeft="true"
  27.             android:text="@string/reset"
  28.             android:visibility="invisible" />
  29.  
  30.         <Button
  31.             android:id="@+id/btn_switch_camera"
  32.             android:layout_width="wrap_content"
  33.             android:layout_height="wrap_content"
  34.             android:layout_alignParentRight="true"
  35.             android:text="@string/switch_camera" />
  36.     </RelativeLayout>
  37.  
  38. <!--    <FrameLayout
  39.         android:layout_width="match_parent"
  40.         android:layout_height="wrap_content">
  41.  
  42. &lt;!&ndash;        <com.soialab.askaruly.camera_sensor.FixedRatioCroppedTextureView
  43.             android:id="@+id/camera_preview"
  44.             android:layout_width="match_parent"
  45.             android:layout_height="wrap_content" />&ndash;&gt;
  46.         <com.soialab.askaruly.camera_sensor.FixedRatioCroppedTextureView
  47.             android:id="@+id/camera_preview"
  48.             android:layout_width="200dp"
  49.             android:layout_height="200dp"
  50.             android:layout_gravity="center_horizontal"
  51.             />
  52.     </FrameLayout>-->
  53.  
  54.     <FrameLayout
  55.         android:layout_width="match_parent"
  56.         android:layout_height="wrap_content">
  57.  
  58.         <!--        <com.soialab.askaruly.camera_sensor.FixedRatioCroppedTextureView
  59.                     android:id="@+id/camera_preview"
  60.                     android:layout_width="match_parent"
  61.                     android:layout_height="wrap_content" />-->
  62.         <com.soialab.askaruly.camera_sensor.FixedRatioCroppedTextureView
  63.             android:id="@+id/camera_preview"
  64.             android:layout_width="50dp"
  65.             android:layout_height="50dp"
  66.             android:layout_gravity="center_horizontal"
  67.             />
  68.     </FrameLayout>
  69.  
  70.     <LinearLayout
  71.         android:layout_width="match_parent"
  72.         android:layout_height="wrap_content"
  73.         android:layout_alignParentBottom="true"
  74.         android:orientation="horizontal">
  75.  
  76.         <Button
  77.             android:id="@+id/btn_resume_or_pause"
  78.             android:layout_width="0dp"
  79.             android:layout_height="wrap_content"
  80.             android:layout_weight="1"
  81.             android:text="@string/resume" />
  82.  
  83.         <Button
  84.             android:id="@+id/btn_done"
  85.             android:layout_width="0dp"
  86.             android:layout_height="wrap_content"
  87.             android:layout_weight="1"
  88.             android:text="@string/done" />
  89.  
  90.     </LinearLayout>
  91.  
  92.  
  93.  
  94.     <RelativeLayout
  95.         android:layout_width="match_parent"
  96.         android:layout_height="wrap_content">
  97.  
  98.         <ScrollView
  99.             android:id="@+id/scrollView"
  100.             android:layout_width="match_parent"
  101.             android:layout_height="50dp">
  102.             <TextView
  103.                 android:id="@+id/text"
  104.                 android:layout_width="fill_parent"
  105.                 android:layout_height="wrap_content"
  106.                 android:gravity="bottom"
  107.                 android:textColor="@color/colorGrayText"
  108.                 />
  109.         </ScrollView>
  110.         <Button
  111.             android:id="@+id/send"
  112.             android:text="Send"
  113.             android:layout_width="wrap_content"
  114.             android:layout_height="wrap_content"
  115.             android:layout_alignParentRight="true"
  116.             android:layout_alignParentEnd="true"
  117.             android:layout_below="@id/scrollView"
  118.             />
  119.     </RelativeLayout>
  120.  
  121.  
  122.     <RelativeLayout
  123.         android:layout_width="wrap_content"
  124.         android:layout_height="wrap_content">
  125.  
  126.         <Switch
  127.             android:id="@+id/model_switch"
  128.             android:layout_width="wrap_content"
  129.             android:layout_height="wrap_content"
  130.             android:textOff="OFF"
  131.             android:textOn="ON"/>
  132.  
  133.     </RelativeLayout>
  134.  
  135.  
  136.     <FrameLayout
  137.         android:layout_width="match_parent"
  138.         android:layout_height="match_parent">
  139.  
  140.  
  141.  
  142.         <GridLayout
  143.             android:columnCount="3"
  144.             android:rowCount="3"
  145.             android:alignmentMode="alignMargins"
  146.             android:columnOrderPreserved="false"
  147.             android:layout_width="match_parent"
  148.             android:layout_height="match_parent"
  149.             android:padding="0dp"
  150.             android:id="@+id/sensorsGridLayout"
  151.             >
  152.  
  153.             <!--        android:layout_width="match_parent"
  154.                     android:layout_height="match_parent"-->
  155.  
  156.             <!--Row 1-->
  157.             <!--Column 1-->
  158.             <!--Time -->
  159.             <android.support.v7.widget.CardView
  160.                 android:layout_width="0dp"
  161.                 android:layout_height="0dp"
  162.                 android:layout_columnWeight="1"
  163.                 android:layout_rowWeight="1"
  164.                 android:layout_marginBottom="0dp"
  165.                 android:layout_marginLeft="0dp"
  166.                 android:layout_marginRight="0dp"
  167.                 app:cardElevation="8dp"
  168.                 app:cardCornerRadius="0dp"
  169.                 app:cardBackgroundColor="@color/colorCardBg">
  170.  
  171.                 <LinearLayout
  172.                     android:layout_gravity="center_horizontal|center_vertical"
  173.                     android:layout_margin="16dp"
  174.                     android:orientation="vertical"
  175.                     android:layout_width="wrap_content"
  176.                     android:layout_height="wrap_content"
  177.                     >
  178.  
  179.                     <!--<ImageView-->
  180.                     <!--android:src="@drawable/bb"-->
  181.                     <!--android:layout_gravity="center_horizontal"-->
  182.                     <!--android:layout_width="30dp"-->
  183.                     <!--android:layout_height="30dp" />-->
  184.  
  185.  
  186.  
  187.                     <TextView
  188.                         android:id="@+id/timeStat"
  189.                         android:text="#"
  190.                         android:textAlignment="center"
  191.                         android:textColor="@android:color/white"
  192.                         android:textSize="@dimen/sensor_text_size"
  193.                         android:textStyle="bold"
  194.                         android:layout_width="wrap_content"
  195.                         android:layout_height="wrap_content"
  196.                         android:layout_gravity="center"/>
  197.  
  198.                     <TextView
  199.                         android:id="@+id/timeStatLabel"
  200.                         android:layout_width="wrap_content"
  201.                         android:layout_height="wrap_content"
  202.                         android:text="Time"
  203.                         android:textSize="@dimen/sensorlabel_text_size"
  204.                         android:textColor="@color/colorGrayText"
  205.                         android:layout_below="@id/timeStat"
  206.                         android:layout_gravity="center"
  207.                         />
  208.  
  209.                 </LinearLayout>
  210.  
  211.             </android.support.v7.widget.CardView>
  212.  
  213.             <!--Row 1-->
  214.             <!--Column 2-->
  215.             <!--Heart Rate -->
  216.             <android.support.v7.widget.CardView
  217.                 android:layout_width="0dp"
  218.                 android:layout_height="0dp"
  219.                 android:layout_columnWeight="1"
  220.                 android:layout_rowWeight="1"
  221.                 android:layout_marginBottom="@dimen/sensor_padding_value"
  222.                 android:layout_marginLeft="@dimen/sensor_padding_value"
  223.                 android:layout_marginRight="@dimen/sensor_padding_value"
  224.                 app:cardElevation="8dp"
  225.                 app:cardCornerRadius="@dimen/card_corner_radius"
  226.                 app:cardBackgroundColor="@color/colorCardBg"
  227.                 >
  228.  
  229.                 <LinearLayout
  230.                     android:layout_gravity="center_horizontal|center_vertical"
  231.                     android:layout_margin="16dp"
  232.                     android:orientation="vertical"
  233.                     android:layout_width="wrap_content"
  234.                     android:layout_height="wrap_content">
  235.  
  236.                     <!--<ImageView-->
  237.                     <!--android:src="@drawable/bb"-->
  238.                     <!--android:layout_gravity="center_horizontal"-->
  239.                     <!--android:layout_width="30dp"-->
  240.                     <!--android:layout_height="30dp" />-->
  241.  
  242.                     <TextView
  243.                         android:id="@+id/hrStat"
  244.                         android:text="#"
  245.                         android:textAlignment="center"
  246.                         android:textColor="@android:color/white"
  247.                         android:textSize="@dimen/sensor_text_size"
  248.                         android:textStyle="bold"
  249.                         android:layout_width="wrap_content"
  250.                         android:layout_height="wrap_content"
  251.                         android:layout_gravity="center"/>
  252.  
  253.                     <TextView
  254.                         android:id="@+id/hrStatLabel"
  255.                         android:layout_width="wrap_content"
  256.                         android:layout_height="wrap_content"
  257.                         android:text="Heart Rate (bpm)"
  258.                         android:textSize="@dimen/sensorlabel_text_size"
  259.                         android:textColor="@color/colorGrayText"
  260.                         android:layout_below="@id/hrStat"
  261.                         android:layout_gravity="center"
  262.                         />
  263.                 </LinearLayout>
  264.  
  265.             </android.support.v7.widget.CardView>
  266.  
  267.             <!--Row 1-->
  268.             <!--Column 3-->
  269.             <!--Oxygen Saturation -->
  270.             <android.support.v7.widget.CardView
  271.                 android:layout_width="0dp"
  272.                 android:layout_height="0dp"
  273.                 android:layout_columnWeight="1"
  274.                 android:layout_rowWeight="1"
  275.                 android:layout_marginBottom="@dimen/sensor_padding_value"
  276.                 android:layout_marginLeft="@dimen/sensor_padding_value"
  277.                 android:layout_marginRight="@dimen/sensor_padding_value"
  278.                 app:cardElevation="8dp"
  279.                 app:cardCornerRadius="@dimen/card_corner_radius"
  280.                 app:cardBackgroundColor="@color/colorCardBg"
  281.                 >
  282.  
  283.                 <LinearLayout
  284.                     android:layout_gravity="center_horizontal|center_vertical"
  285.                     android:layout_margin="16dp"
  286.                     android:orientation="vertical"
  287.                     android:layout_width="wrap_content"
  288.                     android:layout_height="wrap_content">
  289.  
  290.                     <!--<ImageView-->
  291.                     <!--android:src="@drawable/bb"-->
  292.                     <!--android:layout_gravity="center_horizontal"-->
  293.                     <!--android:layout_width="30dp"-->
  294.                     <!--android:layout_height="30dp" />-->
  295.  
  296.                     <TextView
  297.                         android:id="@+id/oxStat"
  298.                         android:text="#"
  299.                         android:textAlignment="center"
  300.                         android:textColor="@android:color/white"
  301.                         android:textSize="@dimen/sensor_text_size"
  302.                         android:textStyle="bold"
  303.                         android:layout_width="wrap_content"
  304.                         android:layout_height="wrap_content"
  305.                         android:layout_gravity="center"/>
  306.  
  307.                     <TextView
  308.                         android:id="@+id/oxStatLabel"
  309.                         android:layout_width="wrap_content"
  310.                         android:layout_height="wrap_content"
  311.                         android:text="Oxygen Sat (%)"
  312.                         android:textSize="@dimen/sensorlabel_text_size"
  313.                         android:textColor="@color/colorGrayText"
  314.                         android:layout_below="@id/oxStat"
  315.                         android:layout_gravity="center"
  316.                         />
  317.                 </LinearLayout>
  318.  
  319.             </android.support.v7.widget.CardView>
  320.  
  321.             <!--Row 2-->
  322.             <!--Column 1-->
  323.             <!--Temperature -->
  324.             <android.support.v7.widget.CardView
  325.                 android:layout_width="0dp"
  326.                 android:layout_height="0dp"
  327.                 android:layout_columnWeight="1"
  328.                 android:layout_rowWeight="1"
  329.                 android:layout_marginBottom="@dimen/sensor_padding_value"
  330.                 android:layout_marginLeft="@dimen/sensor_padding_value"
  331.                 android:layout_marginRight="@dimen/sensor_padding_value"
  332.                 app:cardElevation="8dp"
  333.                 app:cardCornerRadius="@dimen/card_corner_radius"
  334.                 app:cardBackgroundColor="@color/colorCardBg"
  335.                 >
  336.  
  337.                 <LinearLayout
  338.                     android:layout_gravity="center_horizontal|center_vertical"
  339.                     android:layout_margin="16dp"
  340.                     android:orientation="vertical"
  341.                     android:layout_width="wrap_content"
  342.                     android:layout_height="wrap_content">
  343.  
  344.                     <!--<ImageView-->
  345.                     <!--android:src="@drawable/bb"-->
  346.                     <!--android:layout_gravity="center_horizontal"-->
  347.                     <!--android:layout_width="30dp"-->
  348.                     <!--android:layout_height="30dp" />-->
  349.  
  350.                     <TextView
  351.                         android:id="@+id/tempStat"
  352.                         android:text="#"
  353.  
  354.                         android:textColor="@android:color/white"
  355.                         android:textSize="@dimen/sensor_text_size"
  356.                         android:textStyle="bold"
  357.                         android:layout_width="wrap_content"
  358.                         android:layout_height="wrap_content"
  359.                         android:layout_gravity="center"
  360.                         />
  361.  
  362.                     <TextView
  363.                         android:id="@+id/tempStatLabel"
  364.                         android:layout_width="wrap_content"
  365.                         android:layout_height="wrap_content"
  366.                         android:text="Temperature (C)"
  367.                         android:textSize="@dimen/sensorlabel_text_size"
  368.                         android:textColor="@color/colorGrayText"
  369.                         android:layout_below="@id/tempStat"
  370.                         android:layout_gravity="center"
  371.                         />
  372.                 </LinearLayout>
  373.  
  374.             </android.support.v7.widget.CardView>
  375.  
  376.             <!--Row 2-->
  377.             <!--Column 2-->
  378.             <!--Stretch -->
  379.             <android.support.v7.widget.CardView
  380.                 android:layout_width="0dp"
  381.                 android:layout_height="0dp"
  382.                 android:layout_columnWeight="1"
  383.                 android:layout_rowWeight="1"
  384.                 android:layout_marginBottom="@dimen/sensor_padding_value"
  385.                 android:layout_marginLeft="@dimen/sensor_padding_value"
  386.                 android:layout_marginRight="@dimen/sensor_padding_value"
  387.                 app:cardElevation="8dp"
  388.                 app:cardCornerRadius="@dimen/card_corner_radius"
  389.                 app:cardBackgroundColor="@color/colorCardBg"
  390.                 >
  391.  
  392.                 <LinearLayout
  393.                     android:layout_gravity="center_horizontal|center_vertical"
  394.                     android:layout_margin="16dp"
  395.                     android:orientation="vertical"
  396.                     android:layout_width="wrap_content"
  397.                     android:layout_height="wrap_content">
  398.  
  399.                     <!--<ImageView-->
  400.                     <!--android:src="@drawable/bb"-->
  401.                     <!--android:layout_gravity="center_horizontal"-->
  402.                     <!--android:layout_width="30dp"-->
  403.                     <!--android:layout_height="30dp" />-->
  404.  
  405.                     <TextView
  406.                         android:id="@+id/stretchStat"
  407.                         android:text="#"
  408.                         android:textAlignment="center"
  409.                         android:textColor="@android:color/white"
  410.                         android:textSize="@dimen/sensor_text_size"
  411.                         android:textStyle="bold"
  412.                         android:layout_width="wrap_content"
  413.                         android:layout_height="wrap_content"
  414.                         android:layout_gravity="center"
  415.                         />
  416.  
  417.                     <TextView
  418.                         android:id="@+id/stretchStatLabel"
  419.                         android:layout_width="wrap_content"
  420.                         android:layout_height="wrap_content"
  421.                         android:text="Stretch"
  422.                         android:textSize="@dimen/sensorlabel_text_size"
  423.                         android:textColor="@color/colorGrayText"
  424.                         android:layout_below="@id/stretchStat"
  425.                         android:layout_gravity="center"
  426.                         />
  427.  
  428.                 </LinearLayout>
  429.  
  430.             </android.support.v7.widget.CardView>
  431.  
  432.  
  433.             <!--Row 2-->
  434.             <!--Column 3-->
  435.             <!--Audio -->
  436.             <android.support.v7.widget.CardView
  437.                 android:layout_width="0dp"
  438.                 android:layout_height="0dp"
  439.                 android:layout_columnWeight="1"
  440.                 android:layout_rowWeight="1"
  441.                 android:layout_marginBottom="@dimen/sensor_padding_value"
  442.                 android:layout_marginLeft="@dimen/sensor_padding_value"
  443.                 android:layout_marginRight="@dimen/sensor_padding_value"
  444.                 app:cardElevation="8dp"
  445.                 app:cardCornerRadius="@dimen/card_corner_radius"
  446.                 app:cardBackgroundColor="@color/colorCardBg"
  447.                 >
  448.  
  449.                 <LinearLayout
  450.                     android:layout_gravity="center_horizontal|center_vertical"
  451.                     android:layout_margin="16dp"
  452.                     android:orientation="vertical"
  453.                     android:layout_width="wrap_content"
  454.                     android:layout_height="wrap_content">
  455.  
  456.                     <!--<ImageView-->
  457.                     <!--android:src="@drawable/bb"-->
  458.                     <!--android:layout_gravity="center_horizontal"-->
  459.                     <!--android:layout_width="30dp"-->
  460.                     <!--android:layout_height="30dp" />-->
  461.  
  462.                     <TextView
  463.                         android:id="@+id/audioStat"
  464.                         android:text="#"
  465.                         android:textAlignment="center"
  466.                         android:textColor="@android:color/white"
  467.                         android:textSize="@dimen/sensor_text_size"
  468.                         android:textStyle="bold"
  469.                         android:layout_width="wrap_content"
  470.                         android:layout_height="wrap_content"
  471.                         android:layout_gravity="center"
  472.                         />
  473.  
  474.                     <TextView
  475.                         android:id="@+id/audioStatLabel"
  476.                         android:layout_width="wrap_content"
  477.                         android:layout_height="wrap_content"
  478.                         android:text="Audio"
  479.                         android:textSize="@dimen/sensorlabel_text_size"
  480.                         android:textColor="@color/colorGrayText"
  481.                         android:layout_below="@id/audioStat"
  482.                         android:layout_gravity="center"
  483.                         />
  484.  
  485.                 </LinearLayout>
  486.  
  487.             </android.support.v7.widget.CardView>
  488.  
  489.  
  490.             <!--Row 3-->
  491.             <!--Column 1-->
  492.             <!--Yaw -->
  493.             <android.support.v7.widget.CardView
  494.                 android:layout_width="0dp"
  495.                 android:layout_height="0dp"
  496.                 android:layout_columnWeight="1"
  497.                 android:layout_rowWeight="1"
  498.                 android:layout_marginBottom="@dimen/sensor_padding_value"
  499.                 android:layout_marginLeft="@dimen/sensor_padding_value"
  500.                 android:layout_marginRight="@dimen/sensor_padding_value"
  501.                 app:cardElevation="8dp"
  502.                 app:cardCornerRadius="@dimen/card_corner_radius"
  503.                 app:cardBackgroundColor="@color/colorCardBg"
  504.                 >
  505.  
  506.                 <LinearLayout
  507.                     android:layout_gravity="center_horizontal|center_vertical"
  508.                     android:layout_margin="16dp"
  509.                     android:orientation="vertical"
  510.                     android:layout_width="wrap_content"
  511.                     android:layout_height="wrap_content">
  512.  
  513.                     <!--<ImageView-->
  514.                     <!--android:src="@drawable/bb"-->
  515.                     <!--android:layout_gravity="center_horizontal"-->
  516.                     <!--android:layout_width="30dp"-->
  517.                     <!--android:layout_height="30dp" />-->
  518.  
  519.                     <TextView
  520.                         android:id="@+id/yawStat"
  521.                         android:text="#"
  522.                         android:textAlignment="center"
  523.                         android:textColor="@android:color/white"
  524.                         android:textSize="@dimen/sensor_text_size"
  525.                         android:textStyle="bold"
  526.                         android:layout_width="wrap_content"
  527.                         android:layout_height="wrap_content"
  528.                         android:layout_gravity="center"
  529.                         />
  530.  
  531.                     <TextView
  532.                         android:id="@+id/yawStatLabel"
  533.                         android:layout_width="wrap_content"
  534.                         android:layout_height="wrap_content"
  535.                         android:text="Yaw"
  536.                         android:textSize="@dimen/sensorlabel_text_size"
  537.                         android:textColor="@color/colorGrayText"
  538.                         android:layout_below="@id/yawStat"
  539.                         android:layout_gravity="center"
  540.                         />
  541.  
  542.                 </LinearLayout>
  543.  
  544.             </android.support.v7.widget.CardView>
  545.  
  546.  
  547.             <!--Row 3-->
  548.             <!--Column 2-->
  549.             <!--Pitch -->
  550.             <android.support.v7.widget.CardView
  551.                 android:layout_width="0dp"
  552.                 android:layout_height="0dp"
  553.                 android:layout_columnWeight="1"
  554.                 android:layout_rowWeight="1"
  555.                 android:layout_marginBottom="@dimen/sensor_padding_value"
  556.                 android:layout_marginLeft="@dimen/sensor_padding_value"
  557.                 android:layout_marginRight="@dimen/sensor_padding_value"
  558.                 app:cardElevation="8dp"
  559.                 app:cardCornerRadius="@dimen/card_corner_radius"
  560.                 app:cardBackgroundColor="@color/colorCardBg"
  561.                 >
  562.  
  563.                 <LinearLayout
  564.                     android:layout_gravity="center_horizontal|center_vertical"
  565.                     android:layout_margin="16dp"
  566.                     android:orientation="vertical"
  567.                     android:layout_width="wrap_content"
  568.                     android:layout_height="wrap_content">
  569.  
  570.                     <!--<ImageView-->
  571.                     <!--android:src="@drawable/bb"-->
  572.                     <!--android:layout_gravity="center_horizontal"-->
  573.                     <!--android:layout_width="30dp"-->
  574.                     <!--android:layout_height="30dp" />-->
  575.  
  576.                     <TextView
  577.                         android:id="@+id/pitchStat"
  578.                         android:text="#"
  579.                         android:textAlignment="center"
  580.                         android:textColor="@android:color/white"
  581.                         android:textSize="@dimen/sensor_text_size"
  582.                         android:textStyle="bold"
  583.                         android:layout_width="wrap_content"
  584.                         android:layout_height="wrap_content"
  585.                         android:layout_gravity="center"
  586.                         />
  587.  
  588.                     <TextView
  589.                         android:id="@+id/pitchStatLabel"
  590.                         android:layout_width="wrap_content"
  591.                         android:layout_height="wrap_content"
  592.                         android:text="Pitch"
  593.                         android:textSize="@dimen/sensorlabel_text_size"
  594.                         android:textColor="@color/colorGrayText"
  595.                         android:layout_below="@id/pitchStat"
  596.                         android:layout_gravity="center"
  597.                         />
  598.  
  599.                 </LinearLayout>
  600.  
  601.             </android.support.v7.widget.CardView>
  602.  
  603.  
  604.             <!--Row 3-->/
  605.             <!--Column 3-->
  606.             <!--Roll -->
  607.             <android.support.v7.widget.CardView
  608.                 android:layout_width="0dp"
  609.                 android:layout_height="0dp"
  610.                 android:layout_columnWeight="1"
  611.                 android:layout_rowWeight="1"
  612.                 android:layout_marginBottom="@dimen/sensor_padding_value"
  613.                 android:layout_marginLeft="@dimen/sensor_padding_value"
  614.                 android:layout_marginRight="@dimen/sensor_padding_value"
  615.                 app:cardElevation="8dp"
  616.                 app:cardCornerRadius="@dimen/card_corner_radius"
  617.                 app:cardBackgroundColor="@color/colorCardBg"
  618.                 >
  619.  
  620.                 <LinearLayout
  621.                     android:layout_gravity="center_horizontal|center_vertical"
  622.                     android:layout_margin="16dp"
  623.                     android:orientation="vertical"
  624.                     android:layout_width="wrap_content"
  625.                     android:layout_height="wrap_content">
  626.  
  627.                     <!--<ImageView-->
  628.                     <!--android:src="@drawable/bb"-->
  629.                     <!--android:layout_gravity="center_horizontal"-->
  630.                     <!--android:layout_width="30dp"-->
  631.                     <!--android:layout_height="30dp" />-->
  632.  
  633.                     <TextView
  634.                         android:id="@+id/rollStat"
  635.                         android:text="#"
  636.                         android:textAlignment="center"
  637.                         android:textColor="@android:color/white"
  638.                         android:textSize="@dimen/sensor_text_size"
  639.                         android:textStyle="bold"
  640.                         android:layout_width="wrap_content"
  641.                         android:layout_height="wrap_content"
  642.                         android:layout_gravity="center"
  643.                         />
  644.  
  645.                     <TextView
  646.                         android:id="@+id/rollStatLabel"
  647.                         android:layout_width="wrap_content"
  648.                         android:layout_height="wrap_content"
  649.                         android:text="Roll"
  650.                         android:textSize="@dimen/sensorlabel_text_size"
  651.                         android:textColor="@color/colorGrayText"
  652.                         android:layout_below="@id/rollStat"
  653.                         android:layout_centerInParent="true"
  654.                         android:layout_gravity="center"
  655.                         />
  656.  
  657.                 </LinearLayout>
  658.  
  659.             </android.support.v7.widget.CardView>
  660.  
  661.         </GridLayout>
  662.  
  663.  
  664.         <RelativeLayout
  665.             android:layout_width="match_parent"
  666.             android:layout_height="wrap_content"
  667.             android:id="@+id/linechartLayout"
  668.             >
  669.  
  670.             <com.github.mikephil.charting.charts.LineChart
  671.                 android:id="@+id/mChart1"
  672.                 android:layout_width="match_parent"
  673.                 android:layout_height="50dp"
  674.                 />
  675.             <!--            android:layout_marginTop="280dp"
  676.                 android:layout_marginLeft="20dp"
  677.                 android:layout_marginRight="20dp"
  678.                 android:layout_marginBottom="0dp"-->
  679.  
  680.             <!--            android:layout_marginTop="350dp"
  681.                         android:layout_marginLeft="20dp"
  682.                         android:layout_marginRight="20dp"
  683.                         android:layout_marginBottom="0dp"-->
  684.  
  685.  
  686.         </RelativeLayout>
  687.  
  688.     </FrameLayout>
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.     <!--<RelativeLayout-->
  699.         <!--android:layout_width="match_parent"-->
  700.         <!--android:layout_height="wrap_content">-->
  701.  
  702.         <!--<Button-->
  703.             <!--android:id="@+id/btn_ex1"-->
  704.             <!--android:layout_width="wrap_content"-->
  705.             <!--android:layout_height="wrap_content"-->
  706.             <!--android:layout_alignParentLeft="true"-->
  707.             <!--android:text="@string/reset"-->
  708.             <!--android:visibility="invisible" />-->
  709.  
  710.         <!--<Button-->
  711.             <!--android:id="@+id/btn_ex2"-->
  712.             <!--android:layout_width="wrap_content"-->
  713.             <!--android:layout_height="wrap_content"-->
  714.             <!--android:layout_alignParentRight="true"-->
  715.             <!--android:text="@string/switch_camera" />-->
  716.     <!--</RelativeLayout>-->
  717.  
  718. </LinearLayout>
  719.  
  720.  
  721.     <!--android:layout_weight="8"-->
  722.     <!--android:layout_height="0dp"-->
  723.     <!--<RelativeLayout-->
  724.     <!--android:layout_width="match_parent"-->
  725.     <!--android:layout_height="wrap_content">-->
  726.  
  727.     <!--<TextView-->
  728.     <!--android:id="@+id/timeStatLabel"-->
  729.     <!--android:layout_width="wrap_content"-->
  730.     <!--android:layout_height="match_parent"-->
  731.     <!--android:text="TIME:"-->
  732.     <!--android:layout_marginTop="100dp"-->
  733.     <!--android:textSize="20dp"-->
  734.     <!--/>-->
  735.     <!--<TextView-->
  736.     <!--android:id="@+id/timeStat"-->
  737.     <!--android:layout_width="wrap_content"-->
  738.     <!--android:layout_height="match_parent"-->
  739.     <!--android:text="##"-->
  740.     <!--android:layout_marginTop="100dp"-->
  741.     <!--android:textSize="20dp"-->
  742.     <!--android:layout_toRightOf="@id/timeStatLabel"-->
  743.     <!--/>-->
  744.     <!--<TextView-->
  745.     <!--android:id="@+id/hrStatLabel"-->
  746.     <!--android:layout_width="wrap_content"-->
  747.     <!--android:layout_height="match_parent"-->
  748.     <!--android:text="HR:"-->
  749.     <!--android:layout_marginTop="120dp"-->
  750.     <!--android:textSize="20dp"-->
  751.     <!--/>-->
  752.     <!--<TextView-->
  753.     <!--android:id="@+id/hrStat"-->
  754.     <!--android:layout_width="wrap_content"-->
  755.     <!--android:layout_height="match_parent"-->
  756.     <!--android:text="###"-->
  757.     <!--android:layout_marginTop="120dp"-->
  758.     <!--android:textSize="20dp"-->
  759.     <!--android:layout_toRightOf="@id/hrStatLabel"-->
  760.     <!--/>-->
  761.     <!--<TextView-->
  762.     <!--android:id="@+id/oxStatLabel"-->
  763.     <!--android:layout_width="wrap_content"-->
  764.     <!--android:layout_height="match_parent"-->
  765.     <!--android:text="OX:"-->
  766.     <!--android:layout_marginTop="140dp"-->
  767.     <!--android:textSize="20dp"-->
  768.     <!--/>-->
  769.     <!--<TextView-->
  770.     <!--android:id="@+id/oxStat"-->
  771.     <!--android:layout_width="wrap_content"-->
  772.     <!--android:layout_height="match_parent"-->
  773.     <!--android:text="###"-->
  774.     <!--android:layout_marginTop="140dp"-->
  775.     <!--android:textSize="20dp"-->
  776.     <!--android:layout_toRightOf="@id/oxStatLabel"-->
  777.     <!--/>-->
  778.     <!--<TextView-->
  779.     <!--android:id="@+id/tempStatLabel"-->
  780.     <!--android:layout_width="wrap_content"-->
  781.     <!--android:layout_height="match_parent"-->
  782.     <!--android:text="TEMP:"-->
  783.     <!--android:layout_marginTop="160dp"-->
  784.     <!--android:textSize="20dp"-->
  785.     <!--/>-->
  786.     <!--<TextView-->
  787.     <!--android:id="@+id/tempStat"-->
  788.     <!--android:layout_width="wrap_content"-->
  789.     <!--android:layout_height="match_parent"-->
  790.     <!--android:text="##"-->
  791.     <!--android:layout_marginTop="160dp"-->
  792.     <!--android:textSize="20dp"-->
  793.     <!--android:layout_toRightOf="@id/tempStatLabel"-->
  794.     <!--/>-->
  795.     <!--<TextView-->
  796.     <!--android:id="@+id/yawStatLabel"-->
  797.     <!--android:layout_width="wrap_content"-->
  798.     <!--android:layout_height="match_parent"-->
  799.     <!--android:text="YAW:"-->
  800.     <!--android:layout_marginTop="180dp"-->
  801.     <!--android:textSize="20dp"-->
  802.     <!--/>-->
  803.     <!--<TextView-->
  804.     <!--android:id="@+id/yawStat"-->
  805.     <!--android:layout_width="wrap_content"-->
  806.     <!--android:layout_height="match_parent"-->
  807.     <!--android:text="##"-->
  808.     <!--android:layout_marginTop="180dp"-->
  809.     <!--android:textSize="20dp"-->
  810.     <!--android:layout_toRightOf="@id/yawStatLabel"-->
  811.     <!--/>-->
  812.     <!--<TextView-->
  813.     <!--android:id="@+id/pitchStatLabel"-->
  814.     <!--android:layout_width="wrap_content"-->
  815.     <!--android:layout_height="match_parent"-->
  816.     <!--android:text="PITCH:"-->
  817.     <!--android:layout_marginTop="200dp"-->
  818.     <!--android:textSize="20dp"-->
  819.     <!--/>-->
  820.     <!--<TextView-->
  821.     <!--android:id="@+id/pitchStat"-->
  822.     <!--android:layout_width="wrap_content"-->
  823.     <!--android:layout_height="match_parent"-->
  824.     <!--android:text="##"-->
  825.     <!--android:layout_marginTop="200dp"-->
  826.     <!--android:textSize="20dp"-->
  827.     <!--android:layout_toRightOf="@id/pitchStatLabel"-->
  828.     <!--/>-->
  829.     <!--<TextView-->
  830.     <!--android:id="@+id/rollStatLabel"-->
  831.     <!--android:layout_width="wrap_content"-->
  832.     <!--android:layout_height="match_parent"-->
  833.     <!--android:text="ROLL:"-->
  834.     <!--android:layout_marginTop="220dp"-->
  835.     <!--android:textSize="20dp"-->
  836.     <!--/>-->
  837.     <!--<TextView-->
  838.     <!--android:id="@+id/rollStat"-->
  839.     <!--android:layout_width="wrap_content"-->
  840.     <!--android:layout_height="match_parent"-->
  841.     <!--android:text="##"-->
  842.     <!--android:layout_marginTop="220dp"-->
  843.     <!--android:textSize="20dp"-->
  844.     <!--android:layout_toRightOf="@id/rollStatLabel"-->
  845.     <!--/>-->
  846.     <!--<TextView-->
  847.     <!--android:id="@+id/audioStatLabel"-->
  848.     <!--android:layout_width="wrap_content"-->
  849.     <!--android:layout_height="match_parent"-->
  850.     <!--android:text="AUDIO:"-->
  851.     <!--android:layout_marginTop="240dp"-->
  852.     <!--android:textSize="20dp"-->
  853.     <!--/>-->
  854.     <!--<TextView-->
  855.     <!--android:id="@+id/audioStat"-->
  856.     <!--android:layout_width="wrap_content"-->
  857.     <!--android:layout_height="match_parent"-->
  858.     <!--android:text="##"-->
  859.     <!--android:layout_marginTop="240dp"-->
  860.     <!--android:textSize="20dp"-->
  861.     <!--android:layout_toRightOf="@id/audioStatLabel"-->
  862.     <!--/>-->
  863.     <!--<TextView-->
  864.     <!--android:id="@+id/stretchStatLabel"-->
  865.     <!--android:layout_width="wrap_content"-->
  866.     <!--android:layout_height="match_parent"-->
  867.     <!--android:text="STRETCH:"-->
  868.     <!--android:layout_marginTop="260dp"-->
  869.     <!--android:textSize="20dp"-->
  870.     <!--/>-->
  871.     <!--<TextView-->
  872.     <!--android:id="@+id/stretchStat"-->
  873.     <!--android:layout_width="wrap_content"-->
  874.     <!--android:layout_height="match_parent"-->
  875.     <!--android:text="##"-->
  876.     <!--android:layout_marginTop="260dp"-->
  877.     <!--android:textSize="20dp"-->
  878.     <!--android:layout_toRightOf="@id/stretchStatLabel"-->
  879.     <!--/>-->
  880.     <!---->
  881.     <!--</RelativeLayout>-->
Advertisement
Add Comment
Please, Sign In to add comment