# itsmohitchahal/evs-biodiversity architecture

> Architecture diagram of the GitHub repository itsmohitchahal/evs-biodiversity, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/itsmohitchahal/evs-biodiversity
- Repository: https://github.com/itsmohitchahal/evs-biodiversity

## Overview

This is an Android biodiversity reference app: a timed welcome screen leads to a region list, and selecting a region opens its biodiversity description. The sampled code supports the list-to-detail data handoff and HTML rendering; the manifest and resource contents were not sampled, so no launch-activity or external-service wiring is inferred.

Main entry points: [`app/src/main/java/com/mohitchahal/helloworld/RegionAdapter.java`](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/RegionAdapter.java) (Region list adapter), [`app/src/main/java/com/mohitchahal/helloworld/MainActivity.java`](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/MainActivity.java) (Region list screen), [`app/src/main/java/com/mohitchahal/helloworld/BiodiversityActivity.java`](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/BiodiversityActivity.java) (Biodiversity detail), [`app/src/main/java/com/mohitchahal/helloworld/Region.java`](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/Region.java) (Region record)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_screens["App screens"]
  node_welcome["Welcome screen"]
  node_welcome_layout["Welcome layout"]
  node_main["Region list screen<br/>[MainActivity.java]"]
  node_main_layout["List layout<br/>[activity_main.xml]"]
  node_detail["Biodiversity detail"]
  node_detail_layout["Detail layout"]
end

subgraph group_region_data["Region data"]
  node_region["Region record<br/>[Region.java]"]
end

subgraph group_presentation["List presentation"]
  node_adapter["Region list adapter<br/>[RegionAdapter.java]"]
  node_item_layout["Region row layout<br/>[item_region.xml]"]
end

node_user(("User"))

node_welcome -->|"sets content"| node_welcome_layout
node_welcome -->|"launches after delay"| node_main
node_main -->|"sets content"| node_main_layout
node_main -->|"creates records"| node_region
node_main -->|"supplies region list"| node_adapter
node_adapter -->|"inflates rows"| node_item_layout
node_user -->|"selects region"| node_adapter
node_adapter -->|"reads selection"| node_region
node_adapter -->|"starts with region"| node_detail
node_detail -->|"reads description"| node_region
node_detail -->|"sets content"| node_detail_layout

click node_welcome "https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/WelcomeActivity.java"
click node_welcome_layout "https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/res/layout/activity_welcome.xml"
click node_main "https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/MainActivity.java"
click node_main_layout "https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/res/layout/activity_main.xml"
click node_detail "https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/BiodiversityActivity.java"
click node_detail_layout "https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/res/layout/activity_biodiversity.xml"
click node_region "https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/Region.java"
click node_adapter "https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/RegionAdapter.java"
click node_item_layout "https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/res/layout/item_region.xml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_welcome,node_welcome_layout,node_main,node_main_layout,node_detail,node_detail_layout,node_user toneBlue
class node_region toneAmber
class node_adapter,node_item_layout toneMint
```

## Components

### App screens

- [Welcome screen](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/WelcomeActivity.java): `app/src/main/java/com/mohitchahal/helloworld/WelcomeActivity.java`
- [Welcome layout](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/res/layout/activity_welcome.xml): `app/src/main/res/layout/activity_welcome.xml`
- [Region list screen](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/MainActivity.java): `app/src/main/java/com/mohitchahal/helloworld/MainActivity.java`
- [List layout](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/res/layout/activity_main.xml): `app/src/main/res/layout/activity_main.xml`
- [Biodiversity detail](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/BiodiversityActivity.java): `app/src/main/java/com/mohitchahal/helloworld/BiodiversityActivity.java`
- [Detail layout](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/res/layout/activity_biodiversity.xml): `app/src/main/res/layout/activity_biodiversity.xml`

### Region data

- [Region record](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/Region.java): `app/src/main/java/com/mohitchahal/helloworld/Region.java`

### List presentation

- [Region list adapter](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/java/com/mohitchahal/helloworld/RegionAdapter.java): `app/src/main/java/com/mohitchahal/helloworld/RegionAdapter.java`
- [Region row layout](https://github.com/itsmohitchahal/evs-biodiversity/blob/master/app/src/main/res/layout/item_region.xml): `app/src/main/res/layout/item_region.xml`

### Other components

- **User**

## Connections

- Welcome screen → Welcome layout: sets content
- Welcome screen → Region list screen: launches after delay
- Region list screen → List layout: sets content
- Region list screen → Region record: creates records
- Region list screen → Region list adapter: supplies region list
- Region list adapter → Region row layout: inflates rows
- User → Region list adapter: selects region
- Region list adapter → Region record: reads selection
- Region list adapter → Biodiversity detail: starts with region
- Biodiversity detail → Region record: reads description
- Biodiversity detail → Detail layout: sets content
