Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature compass calibration #1782

Merged
merged 70 commits into from
Aug 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
0870b15
Start implementation of the compass calibration screen
m4gr3d May 23, 2016
335e89f
Merge branches 'feature_compass_calibration' and 'feature_weather_wid…
m4gr3d May 28, 2016
557231f
Move the settings menu item to the navigation view footer
m4gr3d Jun 1, 2016
daccd4a
Update style for the weather widget
m4gr3d Jun 1, 2016
1d100e4
Implement compass calibration for solo vehicle
m4gr3d Jun 6, 2016
5b39f99
Merge branches 'feature_compass_calibration' and 'standalone' of gith…
m4gr3d Jun 9, 2016
48833fc
Enable the history screen
m4gr3d Jun 12, 2016
5ffd902
Create new tlog data viewer activity
m4gr3d Jun 12, 2016
4ac8791
Add recycler view adapter for the TLogRawViewer
m4gr3d Jun 14, 2016
bb236d0
Flesh out the TLogActivity
m4gr3d Jun 14, 2016
8a0a1ee
Merge branch 'feature_history_logs' of github.com:DroidPlanner/Tower …
m4gr3d Jun 14, 2016
95bb297
Implement TLogDataAdapter
m4gr3d Jun 14, 2016
46cddca
Implement TLogDataPicker
m4gr3d Jun 14, 2016
d68cafb
Complete the activity layer logic of opening the tlog file and loadin…
m4gr3d Jun 15, 2016
12433a8
Complete the implementation of the TLogRawViewer screen
m4gr3d Jun 16, 2016
56690c4
Save the loaded tlog events when the activity is destroyed and recreated
m4gr3d Jun 17, 2016
9e8da3d
Move the adapters into their own package
m4gr3d Jun 17, 2016
2503189
Update to the latest version of the dronekit-android client library
m4gr3d Jun 22, 2016
d36b523
Define interface for registering for clicks on tlog events
m4gr3d Jun 24, 2016
f06bf72
Update tlog package structure
m4gr3d Jun 25, 2016
9381232
Refactor map marker api
m4gr3d Jun 28, 2016
cd3d472
Remove unused collection class
m4gr3d Jun 29, 2016
9e8ca20
Remove unused projects
m4gr3d Jul 1, 2016
34794ba
Complete update to the map marker api
m4gr3d Jul 5, 2016
54021ec
Increase the max heap size
m4gr3d Jul 6, 2016
6de50a6
Increase the max heap size
m4gr3d Jul 6, 2016
7c7ee30
Fix mission markers rendering issue
m4gr3d Jul 7, 2016
5834d4b
Clean unused code logic
m4gr3d Jul 7, 2016
9a91474
Add support for map polyline creation
m4gr3d Jul 8, 2016
f0388c3
Merge branches 'develop' and 'map_internal_api_refactoring' of github…
m4gr3d Jul 8, 2016
def296e
Cleanup the path calculation logic
m4gr3d Jul 8, 2016
a31bcc9
Add markerinfo and polylineinfo for the elements displayed by the TLo…
m4gr3d Jul 10, 2016
ee545bc
Complete TLogEventMapFragment implementation
m4gr3d Jul 11, 2016
e15cf6b
Merge branches 'map_internal_api_refactoring' and 'standalone' of git…
m4gr3d Jul 12, 2016
7726450
Fix npe bug caused by passing a null icon to the marker
m4gr3d Jul 12, 2016
f15ff43
Fix issue with the Tlog activity layout
m4gr3d Jul 12, 2016
6a634f5
Add the icons for the 'jump to beginning', 'jump to end' button
m4gr3d Jul 12, 2016
0601fec
Update the ui when there's no available data
m4gr3d Jul 12, 2016
864614f
Add todo for the remaining tlog history task
m4gr3d Jul 12, 2016
41812b6
Restore the navigation entry for the droneshare status page
m4gr3d Jul 13, 2016
556de57
Add omitted java classes
m4gr3d Jul 13, 2016
6b6042e
Add the new components to the manifest file
m4gr3d Jul 13, 2016
8a44cf2
Merge branches 'feature_history_logs' and 'standalone' of github.com:…
m4gr3d Jul 13, 2016
f1aa37f
Fix issues with rendering the drone path on the tlog event map
m4gr3d Jul 18, 2016
c9f5fd8
Add 'go to user location' and 'go to drone location' map buttons
m4gr3d Jul 18, 2016
39b9dda
Add basic tlog event detail view
m4gr3d Jul 21, 2016
c6ae69e
Complete update to the tlog data uploader
m4gr3d Jul 25, 2016
ead73a6
Fix invocation of the commit method for the tlog data upload tasks
m4gr3d Jul 25, 2016
2a805cf
Fix a typo in the session data table create sql statement
m4gr3d Jul 25, 2016
b599530
Generate tlogs directory if it doesn't exist already
m4gr3d Jul 25, 2016
beb48f2
Bump client library version
m4gr3d Jul 25, 2016
bc293c7
Merge branches 'droneshare_restore' and 'feature_history_logs' of git…
m4gr3d Jul 25, 2016
9ac230d
Refactor the TLogDataAdapter to incorporate the updates to the client…
m4gr3d Jul 26, 2016
40286ad
Remove events buffering/dispatching logic
m4gr3d Jul 26, 2016
25c464b
Specify the drone telemetry events dispatching rate
m4gr3d Jul 28, 2016
5fa9616
Add a fast scroller to the tlog events list to allow quick navigation
m4gr3d Aug 1, 2016
0cfb2f0
Fix ui state on tlog load
m4gr3d Aug 1, 2016
7f923b3
Revert to a regular linear layout manager since we're no longer using…
m4gr3d Aug 1, 2016
c0df57f
Add support for async tlog events loading
m4gr3d Aug 1, 2016
817e084
Add option to delete drone session
m4gr3d Aug 2, 2016
5a816c2
Clean unused tables
m4gr3d Aug 2, 2016
7b0b652
Add tlog session title
m4gr3d Aug 3, 2016
4f13f58
Update the client lib version
m4gr3d Aug 3, 2016
8101419
Clean unused method
m4gr3d Aug 4, 2016
a36f97f
Merge branches 'feature_compass_calibration' and 'feature_history_log…
m4gr3d Aug 4, 2016
8a4c70c
Clean merge misc issues
m4gr3d Aug 4, 2016
9a0f9d5
Fix compass calibration handling of device screen rotation
m4gr3d Aug 5, 2016
4c4ee7a
Improve the logic to detect when the compass calibration process shou…
m4gr3d Aug 5, 2016
d81863c
Add compass calibration support detection logic
m4gr3d Aug 7, 2016
205d67b
Fix remaining issues with state transition while doing compass calibr…
m4gr3d Aug 7, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 38 additions & 32 deletions Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.droidplanner.android"
android:installLocation="auto">
<manifest package="org.droidplanner.android"
xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="auto">

<supports-screens
android:requiresSmallestWidthDp="320"/>
<supports-screens android:requiresSmallestWidthDp="320"/>

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
Expand All @@ -15,7 +14,7 @@
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>

<uses-feature android:name="android.hardware.screen.portrait"/>

Expand Down Expand Up @@ -50,8 +49,7 @@
android:icon="@drawable/ic_launcher"
android:label="@string/app_title"
android:theme="@style/CustomActionBarTheme"
android:windowSoftInputMode="adjustPan"
>
android:windowSoftInputMode="adjustPan">

<!-- You must insert your own Google Maps for Android API v2 key in here. -->
<meta-data
Expand All @@ -60,16 +58,14 @@
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>

<meta-data
android:name="io.fabric.ApiKey"
android:value="${fabricApiKey}" />
android:value="${fabricApiKey}"/>

<activity
android:name=".activities.AccountActivity"
android:launchMode="singleTop"
android:label="@string/account_label"/>

android:label="@string/account_label"
android:launchMode="singleTop"/>
<activity
android:name=".activities.FlightActivity"
android:launchMode="singleTask"
Expand All @@ -81,14 +77,14 @@

<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>

</activity>
<activity
android:name=".activities.EditorActivity"
android:label="@string/editor"
android:launchMode="singleTop"
android:theme="@style/CustomActionBarTheme.Transparent"
android:windowSoftInputMode="adjustNothing">

<!-- Intent for opening mission files -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
Expand All @@ -100,59 +96,69 @@
</activity>
<activity
android:name=".activities.ConfigurationActivity"
android:windowSoftInputMode="adjustPan"
android:label="@string/menu_drone_setup"
android:launchMode="singleTop"
android:label="@string/menu_drone_setup"/>

android:windowSoftInputMode="adjustPan"/>
<activity
android:name=".activities.SettingsActivity"
android:launchMode="singleTop"
android:label="@string/settings"/>

android:label="@string/settings"
android:launchMode="singleTop"/>
<activity
android:name=".activities.helpers.MapPreferencesActivity"
android:launchMode="singleTop"
android:label="@string/activity_title_map_provider_preferences"
android:launchMode="singleTop"
android:parentActivityName=".activities.SettingsActivity">

<!-- Parent activity meta-data to support API level 7+ -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.SettingsActivity"/>
</activity>

<activity
android:name=".activities.LocatorActivity"
android:label="@string/locator"
android:launchMode="singleTop"
android:theme="@style/CustomActionBarTheme.Transparent"/>

<activity
android:name=".tlog.TLogActivity"
android:label="@string/locator"
android:launchMode="singleTop"
android:theme="@style/CustomActionBarTheme.Transparent"/>
<activity
android:name=".activities.WidgetActivity"
android:launchMode="singleTop"
android:parentActivityName=".activities.FlightActivity"
>
android:parentActivityName=".activities.FlightActivity">

<!-- Parent activity meta-data to support API level 7+ -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.FlightActivity"/>
</activity>

<activity
android:name=".activities.helpers.BluetoothDevicesActivity"
android:noHistory="true"
android:excludeFromRecents="true"
android:launchMode="singleTask"
android:noHistory="true"
android:theme="@style/CustomDialogTheme"/>

<activity
android:name=".maps.providers.google_map.DownloadMapboxMapActivity"
android:noHistory="true"
android:excludeFromRecents="true"
android:theme="@style/CustomActionBarTheme.Transparent"
android:launchMode="singleTask"/>
android:launchMode="singleTask"
android:noHistory="true"
android:theme="@style/CustomActionBarTheme.Transparent"/>

<receiver
android:name=".droneshare.NetworkConnectivityReceiver"
android:enabled="false">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
</intent-filter>

</receiver>

<service android:name=".AppService" />
<service android:name=".droneshare.UploaderService" />

</application>

</manifest>
</manifest>
4 changes: 2 additions & 2 deletions Android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ dependencies {
compile 'com.github.gabrielemariotti.changeloglib:changelog:2.0.0'

//DroneKit-Android client lib
compile 'com.o3dr.android:dronekit-android:3.0.0-alpha4'
compile 'com.o3dr.android:dronekit-android:3.0.0-alpha6'
//Comment line above, and uncomment line below to use your local version of the dronekit-android client lib
//Don't forget to uncomment the lines in the settings.gradle file as well.
/* compile project(':ClientLib') */
// compile project(':ClientLib')

compile 'me.grantland:autofittextview:0.2.1'
compile(name:'shimmer-android-release', ext:'aar')
Expand Down
5 changes: 5 additions & 0 deletions Android/res/color/black_text.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/light_grey" android:state_enabled="false"/>
<item android:color="@android:color/black"/>
</selector>
Binary file added Android/res/drawable-hdpi/complete_check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-hdpi/failed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-hdpi/remove_props.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-mdpi/complete_check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-mdpi/failed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-mdpi/remove_props.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-xhdpi/complete_check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-xhdpi/failed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-xhdpi/remove_props.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-xxhdpi/complete_check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-xxhdpi/failed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-xxhdpi/remove_props.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-xxxhdpi/complete_check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-xxxhdpi/failed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-xxxhdpi/remove_props.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions Android/res/drawable/compass_calibration_steps.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/remove_props" android:maxLevel="0" />
<item android:drawable="@drawable/complete_check" android:maxLevel="1" />
<item android:drawable="@drawable/failed" android:maxLevel="2" />
</level-list>
16 changes: 16 additions & 0 deletions Android/res/drawable/fastscroller_handle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">

<corners
android:topLeftRadius="@dimen/fastscroller_handle_corner"
android:topRightRadius="@dimen/fastscroller_handle_corner"
android:bottomLeftRadius="@dimen/fastscroller_handle_corner"
android:bottomRightRadius="0dp" />

<solid android:color="@android:color/holo_green_dark" />

<size
android:height="@dimen/fastscroller_handle_size"
android:width="@dimen/fastscroller_handle_size" />
</shape>
6 changes: 6 additions & 0 deletions Android/res/drawable/green_clickable_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/dark_green" android:state_pressed="true"/>
<item android:drawable="@color/light_grey" android:state_enabled="false"/>
<item android:drawable="@color/medium_green"/>
</selector>
12 changes: 12 additions & 0 deletions Android/res/drawable/horizontal_fastscroller_bubble.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">

<corners android:radius="@dimen/fastscroller_reack_corner" />

<solid android:color="@android:color/holo_green_dark" />

<size
android:height="@dimen/fastscroller_track_height"
android:width="@dimen/fastscroller_track_width" />
</shape>
13 changes: 13 additions & 0 deletions Android/res/drawable/horizontal_fastscroller_handle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">

<corners
android:radius="4dp" />

<solid android:color="@android:color/holo_green_dark" />

<size
android:height="30dp"
android:width="48dp" />
</shape>
9 changes: 9 additions & 0 deletions Android/res/drawable/ic_clear_black_24dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="@android:color/darker_gray"
android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/>
</vector>
5 changes: 5 additions & 0 deletions Android/res/drawable/list_item_tlog_data_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/holo_green_light" android:state_activated="true"/>
<item android:drawable="@android:color/transparent"/>
</selector>
10 changes: 10 additions & 0 deletions Android/res/drawable/navigation_entry_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/light_grey" android:state_pressed="true"/>
<item android:drawable="@color/light_grey" android:state_activated="true"/>
<item android:drawable="@color/light_grey" android:state_hovered="true"/>
<item android:drawable="@color/light_grey" android:state_focused="true"/>
<item android:drawable="@color/light_grey" android:state_selected="true"/>
<item android:drawable="@color/light_grey" android:state_enabled="false"/>
<item android:drawable="@color/white"/>
</selector>
7 changes: 7 additions & 0 deletions Android/res/drawable/position_event_thumbnail_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/holo_green_light" android:state_activated="true"/>
<item android:drawable="@android:color/darker_gray" android:state_pressed="true"/>
<item android:drawable="@android:color/holo_green_light" android:state_selected="true"/>
<item android:drawable="@android:color/white"/>
</selector>
6 changes: 6 additions & 0 deletions Android/res/drawable/settings_button_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/light_grey" android:state_pressed="true"/>
<item android:drawable="@color/light_grey" android:state_enabled="false"/>
<item android:drawable="@color/white"/>
</selector>
12 changes: 12 additions & 0 deletions Android/res/drawable/vertical_fastscroller_bubble.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">

<corners android:radius="@dimen/fastscroller_reack_corner" />

<solid android:color="@android:color/holo_green_dark" />

<size
android:height="@dimen/fastscroller_track_width"
android:width="@dimen/fastscroller_track_height" />
</shape>
15 changes: 14 additions & 1 deletion Android/res/layout/activity_drawer_navigation_ui.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,27 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:orientation="vertical"
android:id="@+id/navigation_drawer"
android:fitsSystemWindows="true">

<android.support.design.widget.NavigationView
android:id="@+id/navigation_drawer_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/navigation_drawer_items" />

<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="@color/transparent_light_grey"/>

<android.support.design.widget.NavigationView
android:id="@+id/navigation_drawer_settings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:menu="@menu/navigation_drawer_settings"/>
</LinearLayout>
</android.support.v4.widget.DrawerLayout>
59 changes: 59 additions & 0 deletions Android/res/layout/activity_tlog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@+id/main_content"
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:fitsSystemWindows="true"
android:theme="@style/CustomActionBarTheme.AppBarOverlay"
tools:context=".tlog.TLogActivity">

<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_alignParentTop="true"
android:background="?attr/colorPrimary"
app:popupTheme="@style/CustomActionBarTheme.PopupOverlay"/>

<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/toolbar"
android:background="?attr/colorPrimary"
app:tabGravity="fill"
app:tabMaxWidth="0dp"
app:tabMode="fixed"
app:tabSelectedTextColor="@color/navigation_entry_color"
app:tabTextColor="@color/navigation_entry_color"/>

<android.support.v4.view.ViewPager
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/tabs"/>

<TextView
android:id="@+id/tlog_session_title"
android:layout_width="match_parent"
android:layout_height="24dp"
tools:text="11/11/2011 12:12:12"
android:layout_below="@+id/tabs"
android:gravity="center"
android:visibility="gone"
tools:visibility="visible"
android:background="@color/transparent_dark"/>

<ProgressBar
android:id="@+id/progress_bar_container"
style="?android:progressBarStyleHorizontal"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_below="@+id/tabs"
android:indeterminate="true"/>


</RelativeLayout>
Loading