├── .idea ├── .name ├── vcs.xml ├── runConfigurations.xml ├── gradle.xml ├── misc.xml └── codeStyles │ └── Project.xml ├── app ├── .gitignore ├── src │ ├── main │ │ ├── githubI-web.png │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── web.png │ │ │ │ ├── ic_icon.png │ │ │ │ ├── phone_logo.png │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-v24 │ │ │ │ ├── doc.png │ │ │ │ ├── faq.png │ │ │ │ ├── list.png │ │ │ │ ├── stop.jpg │ │ │ │ ├── cough.png │ │ │ │ ├── covid10.jpg │ │ │ │ ├── covid11.jpg │ │ │ │ ├── covid12.jpg │ │ │ │ ├── covid16.jpg │ │ │ │ ├── covid17.jpg │ │ │ │ ├── covid5.jpg │ │ │ │ ├── covid6.jpg │ │ │ │ ├── fever.png │ │ │ │ ├── github.png │ │ │ │ ├── graphic.png │ │ │ │ ├── ndiamap.png │ │ │ │ ├── picture.bmp │ │ │ │ ├── testing.jpg │ │ │ │ ├── virus.png │ │ │ │ ├── worlmap.png │ │ │ │ ├── document.png │ │ │ │ ├── facebook.png │ │ │ │ ├── freefood.jpg │ │ │ │ ├── gray_down.jpg │ │ │ │ ├── headache.png │ │ │ │ ├── helpline.png │ │ │ │ ├── hospital.jpg │ │ │ │ ├── nightmode.png │ │ │ │ ├── search_tr.png │ │ │ │ ├── up_arrow.png │ │ │ │ ├── wear_mask.png │ │ │ │ ├── web_icon.png │ │ │ │ ├── cough_elbow.png │ │ │ │ ├── down_arrow.png │ │ │ │ ├── down_arroww.bmp │ │ │ │ ├── phone_icon.png │ │ │ │ ├── sore_throat.png │ │ │ │ ├── virus_icon.png │ │ │ │ ├── wash_hands.png │ │ │ │ ├── down_arrowdark.jpg │ │ │ │ ├── social_distance.png │ │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── font │ │ │ │ └── latoregular.ttf │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_icon.png │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_icon.png │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_icon.png │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_icon.png │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable │ │ │ │ ├── round2.xml │ │ │ │ ├── green.xml │ │ │ │ ├── orange.xml │ │ │ │ ├── red.xml │ │ │ │ ├── round.xml │ │ │ │ ├── round4.xml │ │ │ │ ├── btn_round2.xml │ │ │ │ ├── edit_round.xml │ │ │ │ ├── light_round.xml │ │ │ │ ├── btn_round.xml │ │ │ │ ├── corner_round.xml │ │ │ │ ├── best_item.xml │ │ │ │ ├── round3.xml │ │ │ │ ├── custom_expandable.xml │ │ │ │ ├── custom_spinner.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── layout │ │ │ │ ├── custom_spinner_item.xml │ │ │ │ ├── list_item.xml │ │ │ │ ├── custom_marker_view.xml │ │ │ │ ├── list_group.xml │ │ │ │ ├── activity_national.xml │ │ │ │ ├── activity_splash_screen.xml │ │ │ │ ├── activity_faqs.xml │ │ │ │ ├── activity_global.xml │ │ │ │ ├── activity_about.xml │ │ │ │ ├── fragment_national_cases.xml │ │ │ │ ├── activity_description.xml │ │ │ │ ├── fragment_national_stats.xml │ │ │ │ ├── activity_advise.xml │ │ │ │ ├── activity_data.xml │ │ │ │ ├── single_item.xml │ │ │ │ ├── activity_covid.xml │ │ │ │ └── activity_district.xml │ │ │ ├── menu │ │ │ │ ├── menu.xml │ │ │ │ └── menu2.xml │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── covid_19tracker │ │ │ │ ├── AdvisoryActivity.java │ │ │ │ ├── CategoryItems.java │ │ │ │ ├── SplashScreenActivity.java │ │ │ │ ├── PagerAdapter.java │ │ │ │ ├── CovidActivity.java │ │ │ │ ├── themeUtils.java │ │ │ │ ├── AboutActivity.java │ │ │ │ ├── ListItems.java │ │ │ │ ├── MyMarkerView.java │ │ │ │ ├── ActivityFAQs.java │ │ │ │ ├── AdaptorActivityList.java │ │ │ │ ├── NationalActivity.java │ │ │ │ ├── AdaptorActivityResources.java │ │ │ │ ├── CustomExpandableAdapter.java │ │ │ │ ├── DataActivity.java │ │ │ │ ├── ExpandableListDataPump.java │ │ │ │ ├── GlobalActivity.java │ │ │ │ ├── NationalCases.java │ │ │ │ └── DistrictActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── covid_19tracker │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── example │ │ └── covid_19tracker │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── google-services.json └── build.gradle ├── settings.gradle ├── COVID-19 Tracker.apk ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── README.md └── gradlew /.idea/.name: -------------------------------------------------------------------------------- 1 | Covid-19Tracker -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name='Covid-19Tracker' 3 | -------------------------------------------------------------------------------- /COVID-19 Tracker.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/COVID-19 Tracker.apk -------------------------------------------------------------------------------- /app/src/main/githubI-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/githubI-web.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-hdpi/web.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/doc.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/faq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/faq.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/list.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/stop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/stop.jpg -------------------------------------------------------------------------------- /app/src/main/res/font/latoregular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/font/latoregular.ttf -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/cough.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/cough.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/covid10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/covid10.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/covid11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/covid11.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/covid12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/covid12.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/covid16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/covid16.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/covid17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/covid17.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/covid5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/covid5.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/covid6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/covid6.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/fever.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/fever.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/github.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/graphic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/graphic.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ndiamap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/ndiamap.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/picture.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/picture.bmp -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/testing.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/testing.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/virus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/virus.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/worlmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/worlmap.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-hdpi/ic_icon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-mdpi/ic_icon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-xhdpi/ic_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/document.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/document.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/facebook.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/freefood.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/freefood.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/gray_down.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/gray_down.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/headache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/headache.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/helpline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/helpline.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/hospital.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/hospital.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/nightmode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/nightmode.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/search_tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/search_tr.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/up_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/up_arrow.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/wear_mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/wear_mask.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/web_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/web_icon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/phone_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-hdpi/phone_logo.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-xxhdpi/ic_icon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/cough_elbow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/cough_elbow.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/down_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/down_arrow.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/down_arroww.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/down_arroww.bmp -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/phone_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/phone_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/sore_throat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/sore_throat.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/virus_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/virus_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/wash_hands.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/wash_hands.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/down_arrowdark.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/down_arrowdark.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/social_distance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starboi02/Covid19-Tracker/HEAD/app/src/main/res/drawable-v24/social_distance.png -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/round2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/green.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/orange.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/red.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/round4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/btn_round2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/edit_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/light_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/btn_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/corner_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Apr 29 16:52:09 IST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/best_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/round3.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/custom_spinner_item.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/test/java/com/example/covid_19tracker/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu2.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 13 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ec625f 4 | #00574B 5 | #D81B60 6 | 7 | 8 | #ffcdd2 9 | #e57373 10 | #FFFFFF 11 | #1b1b26 12 | #f0ece2 13 | #121212 14 | 15 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/AdvisoryActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import android.os.Bundle; 4 | 5 | import androidx.appcompat.app.AppCompatActivity; 6 | import androidx.appcompat.widget.Toolbar; 7 | 8 | public class AdvisoryActivity extends AppCompatActivity { 9 | @Override 10 | protected void onCreate(Bundle savedInstanceState) { 11 | super.onCreate(savedInstanceState); 12 | themeUtils.onActivityCreateSetTheme(this); 13 | setContentView(R.layout.activity_advise); 14 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 15 | 16 | toolbar.setTitle("Advisory"); 17 | setSupportActionBar(toolbar); 18 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); 19 | getSupportActionBar().setDisplayShowHomeEnabled(true); 20 | } 21 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/list_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 17 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/custom_expandable.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/custom_marker_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/covid_19tracker/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | 25 | assertEquals("com.example.covid_19tracker", appContext.getPackageName()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/CategoryItems.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | public class CategoryItems { 4 | private String category; 5 | private String name; 6 | private String description; 7 | private String phoneNumber; 8 | private String link; 9 | 10 | 11 | public CategoryItems(String category, String name, String description, String phoneNumber, String link){ 12 | this.category = category; 13 | this.name=name; 14 | this.description=description; 15 | this.phoneNumber=phoneNumber; 16 | this.link=link; 17 | } 18 | public String getCategory(){ 19 | return category; 20 | } 21 | public String getname(){ 22 | return name; 23 | } 24 | public String getDescription(){ 25 | return description; 26 | } 27 | public String getPhoneNumber(){ 28 | return phoneNumber; 29 | } 30 | public String getLink(){ return link;} 31 | } 32 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx1536m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app's APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=true 18 | # Automatically convert third-party libraries to use AndroidX 19 | android.enableJetifier=true 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/SplashScreenActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import androidx.appcompat.app.AppCompatActivity; 4 | 5 | import android.os.Bundle; 6 | 7 | import android.content.Intent; 8 | import android.os.Handler; 9 | import android.view.WindowManager; 10 | 11 | public class SplashScreenActivity extends AppCompatActivity { 12 | 13 | private static int SPLASH_SCREEN_TIME_OUT=2000; 14 | @Override 15 | protected void onCreate(Bundle savedInstanceState) { 16 | super.onCreate(savedInstanceState); 17 | 18 | getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 19 | WindowManager.LayoutParams.FLAG_FULLSCREEN); 20 | 21 | setContentView(R.layout.activity_splash_screen); 22 | 23 | new Handler().postDelayed(new Runnable() { 24 | @Override 25 | public void run() { 26 | Intent i=new Intent(SplashScreenActivity.this, 27 | DataActivity.class); 28 | 29 | startActivity(i); 30 | 31 | finish(); 32 | } 33 | }, SPLASH_SCREEN_TIME_OUT); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | COVID-19 3 | \u2022 World Health Organisation 4 | \u2022 Ministry of Health and Family Affairs 5 | \u2022 Guidelines for isolation of mild symptomatic patients 6 | U+2191 7 | U+2193 8 | \u25B6 9 | Stopping the spread of COVID-19 10 | Covid-19 Outbreak 11 | Symptoms 12 | Some useful links 13 | Prevention 14 | 15 | 16 | Hello blank fragment 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/PagerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import androidx.fragment.app.Fragment; 4 | import androidx.fragment.app.FragmentManager; 5 | import androidx.fragment.app.FragmentStatePagerAdapter; 6 | 7 | public class PagerAdapter extends FragmentStatePagerAdapter { 8 | 9 | int mNoOfTabs; 10 | // private final Bundle fragmentBundle; 11 | 12 | public PagerAdapter(FragmentManager fm, int NumberOfTabs) 13 | { 14 | super(fm); 15 | // fragmentBundle=data; 16 | this.mNoOfTabs = NumberOfTabs; 17 | } 18 | 19 | 20 | @Override 21 | public Fragment getItem(int position) { 22 | switch(position) 23 | { 24 | 25 | case 0: 26 | NationalCases nationalCases = new NationalCases(); 27 | return nationalCases; 28 | case 1: 29 | NationalStats nationalStats = new NationalStats(); 30 | // nationalStats.setArguments(this.fragmentBundle); 31 | return nationalStats; 32 | default: 33 | return null; 34 | } 35 | } 36 | 37 | @Override 38 | public int getCount() { 39 | return mNoOfTabs; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/custom_spinner.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 16 | 21 | 22 | 23 | 26 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/layout/list_group.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 20 | 30 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/CovidActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import androidx.appcompat.app.AppCompatActivity; 4 | import androidx.appcompat.widget.Toolbar; 5 | 6 | import android.os.Bundle; 7 | import android.text.method.LinkMovementMethod; 8 | import android.widget.TextView; 9 | 10 | public class CovidActivity extends AppCompatActivity { 11 | int j=0; 12 | @Override 13 | protected void onCreate(Bundle savedInstanceState) { 14 | super.onCreate(savedInstanceState); 15 | themeUtils.onActivityCreateSetTheme(this); 16 | setContentView(R.layout.activity_covid); 17 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 18 | 19 | toolbar.setTitle("Covid-19 Outbreak"); 20 | setSupportActionBar(toolbar); 21 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); 22 | getSupportActionBar().setDisplayShowHomeEnabled(true); 23 | 24 | TextView t1 = (TextView) findViewById(R.id.link1); 25 | t1.setMovementMethod(LinkMovementMethod.getInstance()); 26 | 27 | TextView t2 = (TextView) findViewById(R.id.link2); 28 | t2.setMovementMethod(LinkMovementMethod.getInstance()); 29 | 30 | TextView t3 = (TextView) findViewById(R.id.link3); 31 | t3.setMovementMethod(LinkMovementMethod.getInstance()); 32 | 33 | } 34 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/themeUtils.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import android.app.Activity; 4 | 5 | import android.content.Intent; 6 | 7 | import androidx.fragment.app.Fragment; 8 | import androidx.fragment.app.FragmentActivity; 9 | 10 | 11 | public class themeUtils { 12 | private static int currentTheme; 13 | public final static int LIGHT = 1; 14 | public final static int DARK = 0; 15 | public static void changeToTheme(Activity activity, int theme) 16 | { 17 | currentTheme = theme; 18 | activity.finish(); 19 | activity.startActivity(new Intent(activity, activity.getClass())); 20 | } 21 | public static void onActivityCreateSetTheme(Activity activity) { 22 | switch (currentTheme){ 23 | default: 24 | case DARK: 25 | activity.setTheme(R.style.AppTheme); 26 | break; 27 | case LIGHT: 28 | activity.setTheme(R.style.LightTheme); 29 | break; 30 | } 31 | } 32 | public static void onFragmentCreateSetTheme(FragmentActivity activity) { 33 | switch (currentTheme){ 34 | default: 35 | case DARK: 36 | activity.setTheme(R.style.AppTheme); 37 | break; 38 | case LIGHT: 39 | activity.setTheme(R.style.LightTheme); 40 | break; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/AboutActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import androidx.appcompat.app.AppCompatActivity; 4 | import androidx.appcompat.widget.Toolbar; 5 | 6 | import android.content.Intent; 7 | import android.net.Uri; 8 | import android.os.Bundle; 9 | import android.view.View; 10 | 11 | public class AboutActivity extends AppCompatActivity { 12 | 13 | 14 | 15 | @Override 16 | protected void onCreate(Bundle savedInstanceState) { 17 | super.onCreate(savedInstanceState); 18 | themeUtils.onActivityCreateSetTheme(this); 19 | setContentView(R.layout.activity_about); 20 | 21 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 22 | 23 | toolbar.setTitle("Covid-19 Tracker"); 24 | setSupportActionBar(toolbar); 25 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); 26 | getSupportActionBar().setDisplayShowHomeEnabled(true); 27 | } 28 | 29 | public void github( View v){ 30 | 31 | Uri uri = Uri.parse("https://github.com/starboi02"); // missing 'http://' will cause crashed 32 | Intent intent = new Intent(Intent.ACTION_VIEW, uri); 33 | startActivity(intent); 34 | } 35 | 36 | public void facebook( View v){ 37 | 38 | Uri uri = Uri.parse("https://www.facebook.com/varunbhardwaj.064"); // missing 'http://' will cause crashed 39 | Intent intent = new Intent(Intent.ACTION_VIEW, uri); 40 | startActivity(intent); 41 | } 42 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/ListItems.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | public class ListItems { 4 | private String state; 5 | private String active; 6 | private String newActive; 7 | private String recovered; 8 | private String dead; 9 | private String inc_active; 10 | private String inc_new; 11 | private String inc_recovered; 12 | private String inc_deceased; 13 | 14 | public ListItems( String state,String active,String newActive,String recovered,String dead,String inc_active,String inc_new,String inc_recovered,String inc_deceased){ 15 | this.state = state; 16 | this.active=active; 17 | this.newActive=newActive; 18 | this.recovered=recovered; 19 | this.dead=dead; 20 | this.inc_active= inc_active; 21 | this.inc_new=inc_new; 22 | this.inc_recovered=inc_recovered; 23 | this.inc_deceased=inc_deceased; 24 | } 25 | public String getState(){ 26 | return state; 27 | } 28 | public String getActive(){ 29 | return active; 30 | } 31 | public String getNew(){return newActive;} 32 | public String getRecovered(){ 33 | return recovered; 34 | } 35 | public String getDead(){ 36 | return dead; 37 | } 38 | public String getInc_active(){ 39 | return inc_active; 40 | } 41 | public String getInc_new(){return inc_new;} 42 | public String getInc_recovered(){ 43 | return inc_recovered; 44 | } 45 | public String getInc_deceased(){ 46 | return inc_deceased; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/MyMarkerView.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import android.content.Context; 4 | import android.widget.TextView; 5 | 6 | import com.github.mikephil.charting.components.MarkerView; 7 | import com.github.mikephil.charting.data.Entry; 8 | import com.github.mikephil.charting.highlight.Highlight; 9 | import com.github.mikephil.charting.utils.MPPointF; 10 | 11 | import java.util.ArrayList; 12 | 13 | public class MyMarkerView extends MarkerView { 14 | private TextView tvContent; 15 | ArrayList mXLabels; 16 | public MyMarkerView(Context context, int layoutResource, ArrayList xLabels) { 17 | super(context, layoutResource); 18 | // find your layout components 19 | tvContent = (TextView) findViewById(R.id.tvContent); 20 | mXLabels = xLabels; 21 | } 22 | // callbacks everytime the MarkerView is redrawn, can be used to update the 23 | // content (user-interface) 24 | @Override 25 | public void refreshContent(Entry e, Highlight highlight) { 26 | String xVal= mXLabels.get((int)e.getX()); 27 | tvContent.setText(xVal + "\n" + (int)e.getY()); 28 | // this will perform necessary layouting 29 | super.refreshContent(e, highlight); 30 | } 31 | private MPPointF mOffset; 32 | @Override 33 | public MPPointF getOffset() { 34 | if(mOffset == null) { 35 | // center the marker horizontally and vertically 36 | mOffset = new MPPointF(-(getWidth() / 2), -getHeight()); 37 | } 38 | return mOffset; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "760383489304", 4 | "firebase_url": "https://covid-19tracker-97d28.firebaseio.com", 5 | "project_id": "covid-19tracker-97d28", 6 | "storage_bucket": "covid-19tracker-97d28.appspot.com" 7 | }, 8 | "client": [ 9 | { 10 | "client_info": { 11 | "mobilesdk_app_id": "1:760383489304:android:7711df6d0b02a216ce4a6d", 12 | "android_client_info": { 13 | "package_name": "com.example.covid_19tracker" 14 | } 15 | }, 16 | "oauth_client": [ 17 | { 18 | "client_id": "760383489304-c3v19ihm2v9kmn82epf1133gr75mrnia.apps.googleusercontent.com", 19 | "client_type": 1, 20 | "android_info": { 21 | "package_name": "com.example.covid_19tracker", 22 | "certificate_hash": "d1ef02f313f1204896bfffb50890bda7611b3cff" 23 | } 24 | }, 25 | { 26 | "client_id": "760383489304-gu8rendrsclrrmrhjaib2tqaldlvjkq1.apps.googleusercontent.com", 27 | "client_type": 3 28 | } 29 | ], 30 | "api_key": [ 31 | { 32 | "current_key": "AIzaSyDBdy5ph7bwJTH-ODVPbc0GJUBPxN9-W0I" 33 | } 34 | ], 35 | "services": { 36 | "appinvite_service": { 37 | "other_platform_oauth_client": [ 38 | { 39 | "client_id": "760383489304-gu8rendrsclrrmrhjaib2tqaldlvjkq1.apps.googleusercontent.com", 40 | "client_type": 3 41 | } 42 | ] 43 | } 44 | } 45 | } 46 | ], 47 | "configuration_version": "1" 48 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_national.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 32 | 33 | 34 | 39 | 40 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply plugin: 'com.google.gms.google-services' 3 | 4 | android { 5 | compileSdkVersion 29 6 | buildToolsVersion "29.0.2" 7 | defaultConfig { 8 | applicationId "com.example.covid_19tracker" 9 | minSdkVersion 16 10 | targetSdkVersion 29 11 | versionCode 1 12 | versionName "1.0" 13 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 14 | } 15 | buildTypes { 16 | release { 17 | minifyEnabled false 18 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 19 | } 20 | } 21 | } 22 | 23 | dependencies { 24 | implementation fileTree(dir: 'libs', include: ['*.jar']) 25 | implementation 'androidx.appcompat:appcompat:1.1.0' 26 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 27 | implementation 'com.google.firebase:firebase-auth:19.3.1' 28 | implementation 'androidx.legacy:legacy-support-v4:1.0.0' 29 | testImplementation 'junit:junit:4.12' 30 | androidTestImplementation 'androidx.test.ext:junit:1.1.1' 31 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' 32 | 33 | implementation "androidx.cardview:cardview:1.0.0" 34 | implementation 'com.google.android.material:material:1.1.0' 35 | implementation 'androidx.appcompat:appcompat:1.1.0' 36 | 37 | implementation 'com.android.volley:volley:1.1.1' 38 | 39 | implementation 'androidx.recyclerview:recyclerview:1.1.0' 40 | 41 | // implementation 'com.google.firebase:firebase-database:19.3.0' 42 | // 43 | implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3' 44 | implementation 'com.synnapps:carouselview:0.1.4' 45 | 46 | implementation 'com.intuit.ssp:ssp-android:1.0.6' 47 | } 48 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 18 | 23 | 29 | 30 | 35 | 38 | 39 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 22 | 23 | 40 | 41 | 52 | 53 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_faqs.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 16 | 21 | 26 | 37 | 46 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/ActivityFAQs.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import android.os.Bundle; 4 | import android.view.View; 5 | import android.widget.ExpandableListAdapter; 6 | import android.widget.ExpandableListView; 7 | import android.widget.ImageView; 8 | 9 | import androidx.appcompat.app.AppCompatActivity; 10 | import androidx.appcompat.widget.Toolbar; 11 | 12 | import java.util.ArrayList; 13 | import java.util.LinkedHashMap; 14 | import java.util.List; 15 | 16 | public class ActivityFAQs extends AppCompatActivity { 17 | 18 | ExpandableListView expandableListView; 19 | ImageView drop ; 20 | ExpandableListAdapter expandableListAdapter; 21 | List expandableListTitle; 22 | LinkedHashMap> expandableListDetail; 23 | @Override 24 | protected void onCreate(Bundle savedInstanceState) { 25 | super.onCreate(savedInstanceState); 26 | themeUtils.onActivityCreateSetTheme(this); 27 | setContentView(R.layout.activity_faqs); 28 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 29 | 30 | toolbar.setTitle("Covid-19 FAQs"); 31 | setSupportActionBar(toolbar); 32 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); 33 | getSupportActionBar().setDisplayShowHomeEnabled(true); 34 | 35 | expandableListView = (ExpandableListView) findViewById(R.id.expandableListView); 36 | expandableListDetail = ExpandableListDataPump.getData(); 37 | expandableListTitle = new ArrayList(expandableListDetail.keySet()); 38 | expandableListAdapter = new CustomExpandableAdapter(this, expandableListTitle, expandableListDetail); 39 | expandableListView.setAdapter(expandableListAdapter); 40 | expandableListView.setOnGroupExpandListener(new ExpandableListView.OnGroupExpandListener() { 41 | @Override 42 | public void onGroupExpand(int groupPosition) { 43 | } 44 | }); 45 | 46 | expandableListView.setOnGroupCollapseListener(new ExpandableListView.OnGroupCollapseListener() { 47 | 48 | @Override 49 | public void onGroupCollapse(int groupPosition) { 50 | 51 | 52 | } 53 | }); 54 | 55 | expandableListView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() { 56 | @Override 57 | public boolean onChildClick(ExpandableListView parent, View v, 58 | int groupPosition, int childPosition, long id) { 59 | return false; 60 | } 61 | }); 62 | } 63 | 64 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Covid-19 Tracker 2 | 3 | A Java based app to track Covid-19. 4 | This app is made with the main motive of spreading awareness and providing statistical data related to Covid-19 Pandemic. 5 | 6 | ## Screenshots 7 | 8 | ![](https://user-images.githubusercontent.com/58038202/98368539-888e3300-205d-11eb-9554-240e357527ec.jpeg) 9 | 10 | 11 | ![](https://user-images.githubusercontent.com/58038202/98368590-9f348a00-205d-11eb-98dc-e76393619164.jpeg) 12 | 13 | 14 | ![](https://user-images.githubusercontent.com/58038202/98368640-b2dff080-205d-11eb-8c3b-caea336af987.jpeg) 15 | 16 | 17 | ![](https://user-images.githubusercontent.com/58038202/98368729-cee39200-205d-11eb-9ad9-c2207d1e2d07.jpeg) 18 | 19 | 20 | ![](https://user-images.githubusercontent.com/58038202/98368764-e0c53500-205d-11eb-8227-50ff9d31dc36.jpeg) 21 | 22 | 23 | ## Using the Application 24 | 25 | This application is 100% safe (unlike Arogya Setu App ;) ) as it does not store or ask for any personal data. 26 | 27 | ## Built with 28 | 29 | * [MPAndroidChart](https://github.com/PhilJay/MPAndroidChart) - For Bar and Line charts used in the app. 30 | * [Sayyam CarouselView](https://github.com/sayyam/carouselview) - For Carousel View used in the app. 31 | * [Intuit SSP](https://github.com/intuit/ssp) - For Screen size based text sizing. 32 | 33 | ## JSON APIs Used 34 | 35 | * [Global Data](https://api.covid19api.com/summary) 36 | * [National Data](https://api.covid19india.org/data.json) 37 | * [State Data](https://api.covid19india.org/state_district_wise.json) 38 | * [National Stats](https://api.covid19india.org/data.json) 39 | * [District Data](https://api.covid19india.org/state_district_wise.json) 40 | * [Zones](https://api.covid19india.org/zones.json) 41 | * [Resources](https://api.covid19india.org/resources/resources.json) 42 | 43 | ## Resouces used in the app 44 | 45 | * [Infographic vector](https://www.freepik.com/free-photos-vectors/infographic) created by [freepik](www.freepik.com). 46 | * [Illustration vector](https://www.freepik.com/free-photos-vectors/illustration) created by [freepik](www.freepik.com). 47 | * [Infographic vector](https://www.freepik.com/free-photos-vectors/infographic) created by [freepik](www.freepik.com). 48 | * [Design vector](https://www.freepik.com/free-photos-vectors/design) created by [freepik](www.freepik.com). 49 | * [Heart vector](https://www.freepik.com/free-photos-vectors/heart) created by [starline](www.freepik.com). 50 | * [Medical vector](https://www.freepik.com/free-photos-vectors/medical) created by [freepik](www.freepik.com). 51 | * [Map vector](https://www.freepik.com/free-photos-vectors/map) created by [freepik](www.freepik.com). 52 | * [Map vector](https://www.freepik.com/free-photos-vectors/map) created by [freepik](www.freepik.com). 53 | * [Health vector](https://www.freepik.com/free-photos-vectors/health) created by [freepik](www.freepik.com). 54 | 55 | ## Acknowledgements 56 | 57 | * App Icon made by [Freepik](https://www.freepik.com/) from [flaticon](https://flaticon.com) 58 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/AdaptorActivityList.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.TextView; 8 | import androidx.annotation.NonNull; 9 | import androidx.recyclerview.widget.RecyclerView; 10 | 11 | import java.util.List; 12 | 13 | public class AdaptorActivityList extends RecyclerView.Adapter { 14 | 15 | private List listItems; 16 | private List searchList; 17 | private Context context; 18 | 19 | AdaptorActivityList(List listItems, Context context) { 20 | this.listItems = listItems; 21 | this.context = context; 22 | } 23 | 24 | @NonNull 25 | @Override 26 | public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { 27 | View v = LayoutInflater.from(parent.getContext()) 28 | .inflate(R.layout.single_item, parent, false); 29 | return new ViewHolder(v); 30 | } 31 | 32 | @Override 33 | public void onBindViewHolder(@NonNull ViewHolder holder, int position) { 34 | ListItems listItem = listItems.get(position); 35 | holder.main_state.setText(listItem.getState()); 36 | holder.main_active.setText(listItem.getActive()); 37 | holder.main_new.setText(listItem.getNew()); 38 | holder.main_recovered.setText(listItem.getRecovered()); 39 | holder.main_deceased.setText(listItem.getDead()); 40 | holder.inc_active.setText(listItem.getInc_active()); 41 | holder.inc_new.setText(listItem.getInc_new()); 42 | holder.inc_recovered.setText(listItem.getInc_recovered()); 43 | holder.inc_deceased.setText(listItem.getInc_deceased()); 44 | } 45 | 46 | @Override 47 | public int getItemCount() { 48 | return listItems.size(); 49 | } 50 | 51 | class ViewHolder extends RecyclerView.ViewHolder { 52 | 53 | TextView main_state; 54 | TextView main_active; 55 | TextView main_new; 56 | TextView main_recovered; 57 | TextView main_deceased; 58 | TextView inc_active; 59 | TextView inc_new; 60 | TextView inc_recovered; 61 | TextView inc_deceased; 62 | 63 | ViewHolder(@NonNull View itemView) { 64 | super(itemView); 65 | main_state = itemView.findViewById(R.id.main_state); 66 | main_active = itemView.findViewById(R.id.main_active); 67 | main_new=itemView.findViewById(R.id.main_new); 68 | main_recovered = itemView.findViewById(R.id.main_recovered); 69 | main_deceased = itemView.findViewById(R.id.main_deceased); 70 | inc_active = itemView.findViewById(R.id.inc_active); 71 | inc_new=itemView.findViewById(R.id.inc_new); 72 | inc_recovered = itemView.findViewById(R.id.inc_recovered); 73 | inc_deceased = itemView.findViewById(R.id.inc_deceased); 74 | } 75 | } 76 | 77 | } 78 | 79 | 80 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/NationalActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import android.graphics.Color; 4 | import android.graphics.PorterDuff; 5 | import android.net.Uri; 6 | import android.os.Bundle; 7 | 8 | import androidx.appcompat.app.AppCompatActivity; 9 | import androidx.appcompat.widget.Toolbar; 10 | import androidx.viewpager.widget.ViewPager; 11 | 12 | import com.google.android.material.tabs.TabLayout; 13 | 14 | public class NationalActivity extends AppCompatActivity implements NationalCases.OnFragmentInteractionListener, NationalStats.OnFragmentInteractionListener{ 15 | 16 | private static int j; 17 | @Override 18 | protected void onCreate(Bundle savedInstanceState) { 19 | super.onCreate(savedInstanceState); 20 | themeUtils.onActivityCreateSetTheme(this); 21 | setContentView(R.layout.activity_national); 22 | 23 | // Intent mIntent = getIntent(); 24 | // j = mIntent.getIntExtra("ThemeValue", 222); 25 | // 26 | // 27 | // Bundle b = new Bundle(); 28 | // b.putInt("Theme", j); 29 | // NationalStats fragment =new NationalStats(); 30 | // fragment.setArguments(b); 31 | 32 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 33 | 34 | toolbar.setTitle("National Data"); 35 | setSupportActionBar(toolbar); 36 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); 37 | getSupportActionBar().setDisplayShowHomeEnabled(true); 38 | 39 | final int icons[]={R.drawable.list,R.drawable.graphic}; 40 | 41 | TabLayout tabLayout = (TabLayout)findViewById(R.id.tablayout); 42 | tabLayout.addTab(tabLayout.newTab().setIcon(icons[0])); 43 | tabLayout.addTab(tabLayout.newTab().setIcon(icons[1])); 44 | tabLayout.getTabAt(0).getIcon().setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_IN); 45 | tabLayout.getTabAt(1).getIcon().setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_IN); 46 | 47 | tabLayout.setTabGravity(TabLayout.GRAVITY_FILL); 48 | 49 | 50 | final ViewPager viewPager = (ViewPager)findViewById(R.id.pager); 51 | final PagerAdapter adapter = new PagerAdapter(getSupportFragmentManager(),tabLayout.getTabCount()); 52 | viewPager.setAdapter(adapter); 53 | viewPager.setOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout)); 54 | 55 | tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() { 56 | @Override 57 | public void onTabSelected(TabLayout.Tab tab) { 58 | tab.getIcon().setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_IN); 59 | viewPager.setCurrentItem(tab.getPosition()); 60 | } 61 | 62 | @Override 63 | public void onTabUnselected(TabLayout.Tab tab) { 64 | tab.getIcon().setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_IN); 65 | } 66 | 67 | @Override 68 | public void onTabReselected(TabLayout.Tab tab) { 69 | 70 | } 71 | }); 72 | 73 | } 74 | 75 | @Override 76 | public void onFragmentInteraction(Uri uri) { 77 | } 78 | } -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 24 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/AdaptorActivityResources.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import android.content.Context; 4 | import android.content.Intent; 5 | import android.net.Uri; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.widget.ImageView; 10 | import android.widget.TextView; 11 | 12 | import androidx.annotation.NonNull; 13 | import androidx.recyclerview.widget.RecyclerView; 14 | 15 | import java.util.List; 16 | 17 | public class AdaptorActivityResources extends RecyclerView.Adapter { 18 | 19 | private List CategoryItems; 20 | private Context context; 21 | 22 | AdaptorActivityResources(List CategoryItems, Context context) { 23 | this.CategoryItems = CategoryItems; 24 | this.context = context; 25 | } 26 | 27 | @NonNull 28 | @Override 29 | public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { 30 | View v = LayoutInflater.from(parent.getContext()) 31 | .inflate(R.layout.activity_description, parent, false); 32 | return new ViewHolder(v); 33 | } 34 | 35 | @Override 36 | public void onBindViewHolder(@NonNull ViewHolder holder, int position) { 37 | final CategoryItems CatItem = CategoryItems.get(position); 38 | if(CatItem.getCategory().contains("Testing")){ 39 | holder.image.setImageResource(R.drawable.testing); 40 | } 41 | else if(CatItem.getCategory().contains("Food")){ 42 | holder.image.setImageResource(R.drawable.freefood); 43 | } 44 | else{ 45 | holder.image.setImageResource(R.drawable.hospital); 46 | } 47 | holder.nameoforg.setText(CatItem.getname()); 48 | holder.description.setText(CatItem.getDescription()); 49 | holder.phoneNumber.setOnClickListener(new View.OnClickListener() { 50 | @Override 51 | public void onClick(View v) { 52 | String phone= CatItem.getPhoneNumber(); 53 | Uri uri = Uri.parse("tel:" + phone.substring(0,10)); 54 | Intent intent = new Intent(Intent.ACTION_DIAL, uri); 55 | v.getContext().startActivity(intent); 56 | } 57 | }); 58 | holder.contact.setOnClickListener(new View.OnClickListener() { 59 | @Override 60 | public void onClick(View v) { 61 | String url = CatItem.getLink(); 62 | Intent intent = new Intent(Intent.ACTION_VIEW); 63 | intent.setData(Uri.parse(url)); 64 | v.getContext().startActivity(intent); 65 | } 66 | }); 67 | } 68 | 69 | @Override 70 | public int getItemCount() { 71 | return CategoryItems.size(); 72 | } 73 | 74 | class ViewHolder extends RecyclerView.ViewHolder { 75 | 76 | TextView nameoforg,description; 77 | ImageView contact,phoneNumber,image; 78 | 79 | ViewHolder(@NonNull View itemView) { 80 | super(itemView); 81 | image=itemView.findViewById(R.id.image_type); 82 | nameoforg=itemView.findViewById(R.id.nameOforg); 83 | description=itemView.findViewById(R.id.description); 84 | phoneNumber=itemView.findViewById(R.id.phoneNumber); 85 | contact=itemView.findViewById(R.id.location); 86 | } 87 | } 88 | 89 | } 90 | 91 | 92 | -------------------------------------------------------------------------------- /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | xmlns:android 14 | 15 | ^$ 16 | 17 | 18 | 19 |
20 |
21 | 22 | 23 | 24 | xmlns:.* 25 | 26 | ^$ 27 | 28 | 29 | BY_NAME 30 | 31 |
32 |
33 | 34 | 35 | 36 | .*:id 37 | 38 | http://schemas.android.com/apk/res/android 39 | 40 | 41 | 42 |
43 |
44 | 45 | 46 | 47 | .*:name 48 | 49 | http://schemas.android.com/apk/res/android 50 | 51 | 52 | 53 |
54 |
55 | 56 | 57 | 58 | name 59 | 60 | ^$ 61 | 62 | 63 | 64 |
65 |
66 | 67 | 68 | 69 | style 70 | 71 | ^$ 72 | 73 | 74 | 75 |
76 |
77 | 78 | 79 | 80 | .* 81 | 82 | ^$ 83 | 84 | 85 | BY_NAME 86 | 87 |
88 |
89 | 90 | 91 | 92 | .* 93 | 94 | http://schemas.android.com/apk/res/android 95 | 96 | 97 | ANDROID_ATTRIBUTE_ORDER 98 | 99 |
100 |
101 | 102 | 103 | 104 | .* 105 | 106 | .* 107 | 108 | 109 | BY_NAME 110 | 111 |
112 |
113 |
114 |
115 |
116 |
-------------------------------------------------------------------------------- /app/src/main/res/layout/activity_global.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 19 | 20 | 29 | 30 | 38 | 50 | 51 | 61 | 70 | 71 | 82 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/covid_19tracker/CustomExpandableAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.covid_19tracker; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | import android.widget.BaseExpandableListAdapter; 9 | import android.widget.ImageView; 10 | import android.widget.TextView; 11 | 12 | import java.util.HashMap; 13 | import java.util.LinkedHashMap; 14 | import java.util.List; 15 | 16 | public class CustomExpandableAdapter extends BaseExpandableListAdapter { 17 | 18 | private Context context; 19 | private List expandableListTitle; 20 | private LinkedHashMap> expandableListDetail; 21 | 22 | public CustomExpandableAdapter(Context context, List expandableListTitle, 23 | LinkedHashMap> expandableListDetail) { 24 | this.context = context; 25 | this.expandableListTitle = expandableListTitle; 26 | this.expandableListDetail = expandableListDetail; 27 | } 28 | 29 | @Override 30 | public Object getChild(int listPosition, int expandedListPosition) { 31 | return this.expandableListDetail.get(this.expandableListTitle.get(listPosition)) 32 | .get(expandedListPosition); 33 | } 34 | 35 | @Override 36 | public long getChildId(int listPosition, int expandedListPosition) { 37 | return expandedListPosition; 38 | } 39 | 40 | @Override 41 | public View getChildView(int listPosition, final int expandedListPosition, 42 | boolean isLastChild, View convertView, ViewGroup parent) { 43 | final String expandedListText = (String) getChild(listPosition, expandedListPosition); 44 | if (convertView == null) { 45 | LayoutInflater layoutInflater = (LayoutInflater) this.context 46 | .getSystemService(Context.LAYOUT_INFLATER_SERVICE); 47 | convertView = layoutInflater.inflate(R.layout.list_item, null); 48 | } 49 | TextView expandedListTextView = (TextView) convertView 50 | .findViewById(R.id.expandedListItem); 51 | expandedListTextView.setText(expandedListText); 52 | return convertView; 53 | } 54 | 55 | @Override 56 | public int getChildrenCount(int listPosition) { 57 | return this.expandableListDetail.get(this.expandableListTitle.get(listPosition)) 58 | .size(); 59 | } 60 | 61 | @Override 62 | public Object getGroup(int listPosition) { 63 | return this.expandableListTitle.get(listPosition); 64 | } 65 | 66 | @Override 67 | public int getGroupCount() { 68 | return this.expandableListTitle.size(); 69 | } 70 | 71 | @Override 72 | public long getGroupId(int listPosition) { 73 | return listPosition; 74 | } 75 | 76 | @Override 77 | public View getGroupView(int listPosition, boolean isExpanded, 78 | View convertView, ViewGroup parent) { 79 | String listTitle = (String) getGroup(listPosition); 80 | if (convertView == null) { 81 | LayoutInflater layoutInflater = (LayoutInflater) this.context. 82 | getSystemService(Context.LAYOUT_INFLATER_SERVICE); 83 | convertView = layoutInflater.inflate(R.layout.list_group, null); 84 | } 85 | TextView listTitleTextView = (TextView) convertView 86 | .findViewById(R.id.listTitle); 87 | ImageView imageView = convertView.findViewById(R.id.drop); 88 | listTitleTextView.setTypeface(null, Typeface.BOLD); 89 | listTitleTextView.setText(listTitle); 90 | if(isExpanded) 91 | imageView.setImageResource(R.drawable.up_arrow); 92 | else 93 | imageView.setImageResource(R.drawable.down_arrow); 94 | 95 | return convertView; 96 | } 97 | 98 | @Override 99 | public boolean hasStableIds() { 100 | return false; 101 | } 102 | 103 | @Override 104 | public boolean isChildSelectable(int listPosition, int expandedListPosition) { 105 | return true; 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_about.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 16 | 20 | 28 | 29 | 35 | 42 | 51 | 59 | 67 | 73 | 86 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_national_cases.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 19 | 27 | 28 | 35 | 36 | 46 | 47 | 57 | 58 | 69 | 70 | 82 | 83 | 89 | 90 | 91 | 102 | 103 |