<?xml version="1.0" encoding="utf-8"?><!--  --><!-- Bluegiga's Bluetooth Smart Android SW for Bluegiga BLE modules --><!-- Contact: support@bluegiga.com. --><!--  --><!-- This is free software distributed under the terms of the MIT license reproduced below. --><!--  --><!-- Copyright (c) 2013, Bluegiga Technologies --><!--  --><!-- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files ("Software") --><!-- to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, --><!-- and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: --><!--  --><!-- THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF --><!-- ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT --><!-- NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A  PARTICULAR PURPOSE. --><!--  -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".features.scan.browser.activities.DeviceServicesActivity">


    <!-- Fake Status Bar View -->
    <View
        android:id="@+id/fakeStatusBar"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:background="@color/silabs_redtheme_status_bar_color" />

    <View
        android:layout_width="match_parent"
        android:layout_height="@dimen/matter_1dp"
        android:background="@color/grey" />

    <!-- Toolbar just below fake status bar -->
    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="@color/silabs_redtheme_tool_bar_color"
        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" />

    <FrameLayout
        android:id="@+id/fragment_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone"/>

    <LinearLayout
        android:id="@+id/services_container"
        android:layout_width="match_parent"
        android:orientation="vertical"
        android:layout_height="match_parent" >

        <RelativeLayout
            android:id="@+id/connection_info"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/bar_with_additional_info"
            android:paddingVertical="@dimen/space_XS"
            android:paddingHorizontal="@dimen/space_S">

            <LinearLayout
                android:id="@+id/tv_bond_state_with_rssi"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true" >

                <TextView
                    android:id="@+id/tv_bond_state"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textColor="@color/silabs_black"
                    tools:text="BONDED" />

                <TextView
                    android:id="@+id/separator"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/separator"
                    android:fontFamily="@font/stolzl_medium"
                    android:textColor="@color/silabs_black"
                    android:layout_marginHorizontal="@dimen/space_XXS" />

                <TextView
                    android:id="@+id/tv_rssi"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textColor="@color/silabs_black"
                    android:textSize="@dimen/rssi_indicator_text_size"
                    tools:text="- dBm"/>

            </LinearLayout>

            <TextView
                android:id="@+id/tv_ota_firmware"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:fontFamily="@font/stolzl_medium"
                android:background="?attr/selectableItemBackground"
                android:padding="@dimen/space_XS"
                android:text="@string/ota_firmware"
                android:textColor="@color/silabs_black"/>

        </RelativeLayout>

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1" >

            <androidx.fragment.app.FragmentContainerView
                android:id="@+id/services_fragment_container"
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
                android:id="@+id/btn_disconnect"
                style="@style/MyExtendedFabStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"

                android:layout_alignParentEnd="true"
                android:layout_alignParentBottom="true"
                android:layout_margin="@dimen/extended_fab_margin"
                android:text="@string/details_disconnect"
                android:visibility="visible"
                app:backgroundTint="@color/button_red"
                tools:visibility="visible" />


        </RelativeLayout>

        <com.siliconlabs.bledemo.common.views.FlyInBar
            android:id="@+id/fly_in_bar"
            android:layout_width="match_parent"
            android:layout_height="@dimen/scanning_animation_bar_height"
            android:visibility="gone"
            tools:visibility="visible"/>

        <com.google.android.material.bottomnavigation.BottomNavigationView
            android:id="@+id/services_bottom_nav"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:itemBackground="@drawable/bottom_navigation_ripple_device_services"
            app:menu="@menu/bottom_nav_device_services" />


    </LinearLayout>

</LinearLayout>
