Facebook
From Yoenas, 3 Years ago, written in XML.
">

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

from

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

- view diff
Embed
Download Paste or View Raw
Hits: 175
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout 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:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    tools:context=".MainActivity">
  8.  
  9.  
  10.     <TextView
  11.        android:id="@+id/txt_title"
  12.        android:layout_width="wrap_content"
  13.        android:layout_height="wrap_content"
  14.        android:layout_marginStart="8dp"
  15.        android:layout_marginTop="8dp"
  16.        android:layout_marginEnd="8dp"
  17.        android:text="@string/app_name"
  18.        android:textColor="@color/colorPrimaryDark"
  19.        android:textSize="@dimen/sp20"
  20.        android:textStyle="bold" />
  21.  
  22.     <LinearLayout
  23.        android:id="@+id/lay_search"
  24.        android:layout_width="match_parent"
  25.        android:layout_height="wrap_content"
  26.        android:layout_below="@id/txt_title"
  27.        android:layout_marginStart="@dimen/dp8"
  28.        android:layout_marginEnd="@dimen/dp8"
  29.        android:orientation="horizontal">
  30.  
  31.         <androidx.appcompat.widget.SearchView
  32.            android:id="@+id/search_view"
  33.            android:layout_width="match_parent"
  34.            android:layout_height="wrap_content"
  35.            android:layout_marginTop="8dp"
  36.            android:layout_marginBottom="8dp"
  37.            android:layout_weight="1"
  38.            android:background="@drawable/box_search_country"
  39.            android:textCursorDrawable="@null"
  40.            app:actionViewClass="android.widget.SearchView"
  41.            app:iconifiedByDefault="false"
  42.            app:queryBackground="@null"
  43.            app:queryHint="Cari Negara" />
  44.  
  45.         <Button
  46.            android:id="@+id/btn_sequence"
  47.            android:layout_width="match_parent"
  48.            android:layout_height="wrap_content"
  49.            android:layout_marginStart="@dimen/dp2"
  50.            android:layout_marginTop="@dimen/dp8"
  51.            android:layout_marginEnd="@dimen/dp2"
  52.            android:layout_marginBottom="@dimen/dp8"
  53.            android:layout_weight="5"
  54.            android:background="@drawable/ic_sequence" />
  55.     </LinearLayout>
  56.  
  57.     <LinearLayout
  58.        android:id="@+id/lay_globe"
  59.        android:layout_width="match_parent"
  60.        android:layout_height="wrap_content"
  61.        android:layout_below="@+id/lay_search"
  62.        android:layout_marginStart="@dimen/dp8"
  63.        android:layout_marginEnd="@dimen/dp8"
  64.        android:background="@drawable/bg_purple"
  65.        android:orientation="horizontal">
  66.  
  67.         <!--        region Text Confirmed-->
  68.         <LinearLayout
  69.            android:layout_width="0dp"
  70.            android:layout_height="wrap_content"
  71.            android:layout_marginStart="@dimen/dp8"
  72.            android:layout_marginEnd="@dimen/dp8"
  73.            android:layout_weight="1"
  74.            android:orientation="vertical">
  75.  
  76.             <TextView
  77.                android:layout_width="match_parent"
  78.                android:layout_height="wrap_content"
  79.                android:layout_marginTop="@dimen/dp8"
  80.                android:text="Confirmed"
  81.                android:textColor="@android:color/white"
  82.                android:textSize="16sp" />
  83.  
  84.             <TextView
  85.                android:id="@+id/txt_confirmed_glode"
  86.                android:layout_width="match_parent"
  87.                android:layout_height="wrap_content"
  88.                android:layout_marginBottom="@dimen/dp8"
  89.                android:text="12.000.000"
  90.                android:textColor="@android:color/white"
  91.                android:textSize="18sp"
  92.                android:textStyle="bold" />
  93.         </LinearLayout>
  94.         <!--        endregion-->
  95.  
  96.         <LinearLayout
  97.            android:layout_width="0dp"
  98.            android:layout_height="wrap_content"
  99.            android:layout_marginStart="@dimen/dp8"
  100.            android:layout_marginEnd="@dimen/dp8"
  101.            android:layout_weight="1"
  102.            android:orientation="vertical">
  103.  
  104.             <TextView
  105.                android:layout_width="match_parent"
  106.                android:layout_height="wrap_content"
  107.                android:layout_marginTop="@dimen/dp8"
  108.                android:text="Recovered"
  109.                android:textColor="@android:color/white"
  110.                android:textSize="16sp" />
  111.  
  112.             <TextView
  113.                android:id="@+id/txt_recovered_globe"
  114.                android:layout_width="match_parent"
  115.                android:layout_height="wrap_content"
  116.                android:layout_marginBottom="@dimen/dp8"
  117.                android:text="12.000.000"
  118.                android:textColor="@android:color/white"
  119.                android:textSize="18sp"
  120.                android:textStyle="bold" />
  121.         </LinearLayout>
  122.  
  123.         <LinearLayout
  124.            android:layout_width="0dp"
  125.            android:layout_height="wrap_content"
  126.            android:layout_marginStart="@dimen/dp8"
  127.            android:layout_marginEnd="@dimen/dp8"
  128.            android:layout_weight="1"
  129.            android:orientation="vertical">
  130.  
  131.             <TextView
  132.                android:layout_width="match_parent"
  133.                android:layout_height="wrap_content"
  134.                android:layout_marginTop="@dimen/dp8"
  135.                android:text="Deaths"
  136.                android:textColor="@android:color/white"
  137.                android:textSize="16sp" />
  138.  
  139.             <TextView
  140.                android:id="@+id/txt_deaths_glode"
  141.                android:layout_width="match_parent"
  142.                android:layout_height="wrap_content"
  143.                android:layout_marginBottom="@dimen/dp8"
  144.                android:text="12.000.000"
  145.                android:textColor="@android:color/white"
  146.                android:textSize="18sp"
  147.                android:textStyle="bold" />
  148.         </LinearLayout>
  149.     </LinearLayout>
  150.  
  151.     <LinearLayout
  152.        android:id="@+id/lay_header"
  153.        android:layout_width="match_parent"
  154.        android:layout_height="wrap_content"
  155.        android:layout_below="@id/lay_globe"
  156.        android:layout_marginStart="@dimen/dp16"
  157.        android:layout_marginTop="@dimen/dp8"
  158.        android:layout_marginEnd="@dimen/dp16"
  159.        android:orientation="horizontal">
  160.  
  161.         <TextView
  162.            android:layout_width="match_parent"
  163.            android:layout_height="wrap_content"
  164.            android:layout_marginTop="@dimen/dp8"
  165.            android:layout_weight="4"
  166.            android:text="Countries"
  167.            android:textColor="@android:color/black"
  168.            android:textSize="@dimen/sp12"
  169.            android:textStyle="bold" />
  170.  
  171.         <TextView
  172.            android:layout_width="match_parent"
  173.            android:layout_height="wrap_content"
  174.            android:layout_marginTop="@dimen/dp8"
  175.            android:layout_weight="5"
  176.            android:text="Cases"
  177.            android:textColor="@android:color/black"
  178.            android:textSize="@dimen/sp12"
  179.            android:textStyle="bold" />
  180.  
  181.         <TextView
  182.            android:layout_width="match_parent"
  183.            android:layout_height="wrap_content"
  184.            android:layout_marginTop="@dimen/dp8"
  185.            android:layout_weight="5"
  186.            android:text="Recovered"
  187.            android:textColor="@android:color/black"
  188.            android:textSize="@dimen/sp12"
  189.            android:textStyle="bold" />
  190.  
  191.         <TextView
  192.            android:layout_width="match_parent"
  193.            android:layout_height="wrap_content"
  194.            android:layout_marginTop="@dimen/dp8"
  195.            android:layout_weight="5"
  196.            android:text="Deaths"
  197.            android:textColor="@android:color/black"
  198.            android:textSize="@dimen/sp12"
  199.            android:textStyle="bold" />
  200.     </LinearLayout>
  201.  
  202.     <ProgressBar
  203.        android:id="@+id/progress_bar"
  204.        android:layout_width="wrap_content"
  205.        android:layout_height="wrap_content"
  206.        android:layout_centerInParent="true"
  207.        android:indeterminate="true" />
  208.  
  209.     <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
  210.        android:id="@+id/swipe_refresh"
  211.        android:layout_width="match_parent"
  212.        android:layout_height="wrap_content"
  213.        android:layout_below="@id/lay_header"
  214.        android:layout_marginTop="@dimen/dp4"
  215.        android:layout_marginBottom="@dimen/dp4">
  216.  
  217.         <androidx.recyclerview.widget.RecyclerView
  218.            android:id="@+id/rv_country"
  219.            android:layout_width="match_parent"
  220.            android:layout_height="match_parent"
  221.            tools:listitem="@layout/list_country" />
  222.     </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
  223.  
  224. </RelativeLayout>