Design map for all main screens and components. All layouts are Android XML (no HTML).
| ID | Screen Filename | Function | Key Components |
|---|---|---|---|
| L1 | activity_main.xml |
Home Dashboard | CoordinatorLayout, CollapsingToolbar (Northern Pakistan header), NestedScrollView, FAB "Plan Trip" |
| L2 | item_destination_card.xml |
Destination Detail Card | ConstraintLayout, 20% Guideline, Barrier (Urdu/English), Chain (View Details | Add to Wishlist | Share), guide avatar, 12dp card |
| L3 | layout_bottom_nav.xml |
Bottom Navigation | LinearLayout weightSum=4, 4 tabs: Explore, My Trips, Saved, Profile; active state Pakistan green |
| L4 | activity_settings.xml |
Settings Row | RelativeLayout, location icon, "Enable GPS Tracking", Switch layout_alignParentEnd, divider shape |
| L5 | view_notification_badge.xml |
Trip Alerts Hub | FrameLayout, bell icon 24dp, red badge (#F44336), ripple |
| L6 | fragment_explore_grid.xml |
Pakistan Regions Grid | GridLayout columnCount=2, Northern Areas (span 2), Punjab/Sindh/KPK/Balochistan/Gilgit-Baltistan, trip counts |
| L7 | activity_booking_history.xml |
Booking History Table | TableLayout stretchColumns 1,3, headers Date | Destination | Status | Amount (PKR), status badges |
| L8 | layout_nearby_carousel.xml |
Nearby Attractions | HorizontalScrollView, cards 120dp: Food Street Lahore, Mohenjo-daro Ruins, Fairy Meadows Trek |
| L9 | dialog_filter_trips.xml |
Trip Filter | RadioGroup: Price Low–High, Top Rated, Nearest, Best Season; custom radio drawable; Apply ripple |
| L10 | layout_interest_tags.xml |
Travel Preferences | ConstraintLayout + Flow, chips: Adventure, Culture, Food, History, Nature, Photography |
| — | activity_map_view.xml |
Map Integration | FragmentContainerView (SupportMapFragment), overlay search + filter chips, bottom sheet nearby hotels, marker info: layout_marker_info.xml |
- Root:
CoordinatorLayout - App bar:
AppBarLayout(256dp) +CollapsingToolbarLayout; title "Roamist" (expanded → collapsed). - Header:
hunza_header_gradient.xml(blue sky → mountain blue); overlay gradient; parallax collapse. - Content:
NestedScrollViewwith "Trending in Pakistan" and repeateditem_destination_card. - FAB: "Plan Trip", Pakistan green,
ic_airplane.xml.
- Root:
CardView12dp radius, 8dp elevation. - Layout:
ConstraintLayoutwith vertical Guideline at 20% for image area. - Barrier: Keeps description from overlapping price/Urdu (
dest_price,dest_price_urdu). - Chain: View Details, Add to Wishlist, Share (spread).
- Assets: Guide avatar
ic_guide_placeholder.xml, card background.
- Root:
LinearLayouthorizontal,weightSum="4", four itemslayout_weight="1". - Tabs: Explore (compass), My Trips (calendar), Saved (heart), Profile (person).
- Active state:
nav_item_selector.xml(Pakistan green when selected).
- Root:
RelativeLayout. - Icon:
ic_location.xml,layout_alignParentStart,layout_centerVertical. - Text: "Enable GPS Tracking",
layout_toRightOficon. - Switch:
layout_alignParentEnd,layout_centerVertical. - Divider:
divider_line.xmlbelow row.
- Root:
FrameLayout,wrap_content, ripple foreground. - Layers: Bell vector 24dp; red oval badge
layout_gravity="top|end"with count (e.g. "3"),badge_background.xml(#F44336).
- Root:
ScrollView→GridLayoutcolumnCount="2". - Featured: "Northern Areas" card
layout_columnSpan="2",hunza_gradient, trip count. - Cards: Punjab (Lahore), Sindh (Karachi), KPK (Peshawar), Balochistan (Quetta), Gilgit-Baltistan (Hunza); icon + English + Urdu + trip count.
- Table:
TableLayoutstretchColumns="1,3". - Headers: Date | Destination | Status | Amount (PKR).
- Rows: e.g. 12 Mar 2024 | Hunza Valley | Completed | Rs. 45,000; 05 Feb 2024 | Skardu | Upcoming | Rs. 38,500.
- Badges:
badge_completed.xml(green),badge_upcoming.xml(orange).
- Root:
HorizontalScrollView(no scrollbars). - Cards: 120dp width, 8dp margin; Food Street Lahore (
ic_food), Mohenjo-daro Ruins (ic_monument), Fairy Meadows Trek (ic_mountain).
- RadioGroup: Price: Low to High (default), Top Rated (4.5+), Nearest to Me, Best Season: Mar–May.
- Drawable:
radio_button_selector.xml(Pakistan green when checked). - Button: "Apply Filters",
btn_ripple.xml.
- Root:
ConstraintLayout. - Title: "Travel Preferences".
- Flow:
flow_wrapMode="chain", referenced IDs for 6 chips (Adventure, Culture, Food, History, Nature, Photography);chip_background.xml.
- Map:
FragmentContainerViewSupportMapFragment. - Overlay: ConstraintLayout with search
EditTextand horizontal filter chips (Hotels, Restaurants, Attractions, Gas Stations). - Bottom sheet:
CardViewwithlayout_behavior="...BottomSheetBehavior", title "Nearby Stays",RecyclerView(item:item_destination_card). - Marker info: Custom info window layout:
layout_marker_info.xml(title, snippet, "View Details" link).
pakistan_green#01411Cpakistan_white#FFFFFFaccent_gold#FFD700mountain_blue#1E3A5Fdesert_sand#C2B280notification_badge_red#F44336status_completed#4CAF50status_upcoming#FF9800
ic_mountain.xml— Northern areasic_mosque.xml— Religious sitesic_food.xml— Foodic_transport.xml— Bus/trainic_weather.xml— Climateic_monument.xml— Mohenjo-daro / ruinsic_bell.xml— Notificationsic_airplane.xml— Plan trip FABic_location.xml— GPS / locationic_guide_placeholder.xml— Guide avatar
hunza_header_gradient.xml,hunza_overlay_gradient.xml— Headercard_background.xml,chip_background.xml— Cards/chipsbadge_background.xml(oval, red),badge_completed.xml,badge_upcoming.xmldivider_line.xml,fab_background.xml,btn_ripple.xml,radio_button_selector.xmlnav_item_selector.xml— Bottom nav active state
- Spacing (xs/sm/md/lg/xl), card radius/elevation/padding, header height, bottom nav height, carousel card width/margin.
TextAppearance.Roamist.ExpandedTitle/CollapsedTitlefor toolbar.- Theme uses
colorPrimary(pakistan_green),colorSecondary(accent_gold), status/nav bar.
- Destinations: Hunza, Skardu, Swat, Murree, Naran, Kaghan, Lahore Fort, Badshahi Mosque, Mohenjo-daro.
- Currency: PKR (Rs. X,XXX).
- Languages: English primary; Urdu in regions (e.g. پنجاب، سندھ، خیبر پختونخوا، بلوچستان، گلگت بلتستان).
- Seasons: "Best time to visit" (e.g. Mar–May for mountains).
- Transport: Daewoo bus, Pakistan Railways (placeholders in copy/strings).
| Path | Purpose |
|---|---|
res/layout/activity_main.xml |
L1 Home |
res/layout/item_destination_card.xml |
L2 Card |
res/layout/layout_bottom_nav.xml |
L3 Nav |
res/layout/activity_settings.xml |
L4 Settings |
res/layout/view_notification_badge.xml |
L5 Badge |
res/layout/fragment_explore_grid.xml |
L6 Grid |
res/layout/activity_booking_history.xml |
L7 Table |
res/layout/layout_nearby_carousel.xml |
L8 Carousel |
res/layout/dialog_filter_trips.xml |
L9 Filter |
res/layout/layout_interest_tags.xml |
L10 Tags |
res/layout/activity_map_view.xml |
Map |
res/layout/layout_marker_info.xml |
Marker info |
res/values/colors.xml |
Colors |
res/values/strings.xml |
Strings |
res/values/dimens.xml |
Dimens |
res/values/styles.xml |
Styles |
res/values/themes.xml |
Theme (Roamist) |
res/drawable/*.xml |
Vectors, shapes, selectors |