forked from upstream-mirrors/OpenTracks
33118568bc
- use fill_parent since we are still supporting api level 7. - on the TrackListActivity, hide the empty view content until the check unit dialog has been showned. - fix the ChartView height. ChartView is no longer displayed on the full canvas. The new design has a tab bar and a zoom control. - In TrackDetailActivity, only call methods of a tab fragment if it is the current tab.
46 lines
1.6 KiB
XML
46 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2010 Google Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_height="fill_parent"
|
|
android:layout_width="fill_parent" >
|
|
<ListView
|
|
android:id="@+id/track_list"
|
|
android:layout_height="fill_parent"
|
|
android:layout_width="fill_parent" />
|
|
<LinearLayout
|
|
android:gravity="center"
|
|
android:id="@+id/track_list_empty"
|
|
android:layout_height="fill_parent"
|
|
android:layout_width="fill_parent"
|
|
android:orientation="vertical" >
|
|
<TextView
|
|
android:id="@+id/track_list_empty_message"
|
|
android:text="@string/track_list_empty_message"
|
|
android:visibility="gone"
|
|
style="@style/ListEmptyTextView" >
|
|
</TextView>
|
|
<ImageButton
|
|
android:contentDescription="@string/menu_record_track"
|
|
android:id="@+id/track_list_record_button"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:padding="16dp"
|
|
android:src="@drawable/menu_record_track"
|
|
android:visibility="gone"
|
|
style="@android:style/Widget.DeviceDefault.ImageButton" />
|
|
</LinearLayout>
|
|
</merge> |