forked from upstream-mirrors/OpenTracks
Improve empty track list view
This commit is contained in:
@@ -55,21 +55,29 @@ limitations under the License.
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_toRightOf="@id/track_list_arrow_long"
|
android:layout_toRightOf="@id/track_list_arrow_long"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical" >
|
||||||
android:paddingRight="20dp" >
|
|
||||||
<View
|
<View
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="4"
|
android:layout_weight="4"
|
||||||
android:layout_width="match_parent" />
|
android:layout_width="match_parent" />
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:gravity="left"
|
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="24"
|
android:layout_weight="24"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent" >
|
||||||
android:text="@string/track_list_empty_message"
|
<TextView
|
||||||
style="@style/TextLarge" >
|
android:layout_height="wrap_content"
|
||||||
</TextView>
|
android:layout_weight=".7"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:text="@string/track_list_empty_message"
|
||||||
|
android:textColor="@color/list_empty_text"
|
||||||
|
style="@style/TextLarge" >
|
||||||
|
</TextView>
|
||||||
|
<View
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight=".3"
|
||||||
|
android:layout_width="0dp" />
|
||||||
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -64,6 +64,7 @@ limitations under the License.
|
|||||||
android:layout_weight="22"
|
android:layout_weight="22"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:text="@string/track_list_empty_message"
|
android:text="@string/track_list_empty_message"
|
||||||
|
android:textColor="@color/list_empty_text"
|
||||||
style="@style/TextLarge" >
|
style="@style/TextLarge" >
|
||||||
</TextView>
|
</TextView>
|
||||||
<View
|
<View
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ limitations under the License.
|
|||||||
<color name="chart_speed_border">#FF0066FF</color> <!-- blue -->
|
<color name="chart_speed_border">#FF0066FF</color> <!-- blue -->
|
||||||
<color name="chart_speed_fill">#40C8E0FF</color> <!-- transparent blue -->
|
<color name="chart_speed_fill">#40C8E0FF</color> <!-- transparent blue -->
|
||||||
<color name="holo_orange_dark">#FFFF8800</color>
|
<color name="holo_orange_dark">#FFFF8800</color>
|
||||||
|
<color name="list_empty_text">#FFCCCCCC</color>
|
||||||
<color name="recording_text">#FFBE161B</color> <!-- red -->
|
<color name="recording_text">#FFBE161B</color> <!-- red -->
|
||||||
<color name="stats_large_label">#FFFAAD2C</color> <!-- orange -->
|
<color name="stats_large_label">#FFFAAD2C</color> <!-- orange -->
|
||||||
<color name="stats_separator">#99999999</color> <!-- light gray -->
|
<color name="stats_separator">#99999999</color> <!-- light gray -->
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ limitations under the License.
|
|||||||
<item name="android:gravity">center</item>
|
<item name="android:gravity">center</item>
|
||||||
<item name="android:layout_gravity">center</item>
|
<item name="android:layout_gravity">center</item>
|
||||||
<item name="android:padding">8dp</item>
|
<item name="android:padding">8dp</item>
|
||||||
|
<item name="android:textColor">@color/list_empty_text</item>
|
||||||
</style>
|
</style>
|
||||||
<!-- list item -->
|
<!-- list item -->
|
||||||
<style name="ListItem" />
|
<style name="ListItem" />
|
||||||
|
|||||||
Reference in New Issue
Block a user