Improve track list empty view

This commit is contained in:
Jimmy Shih
2014-01-10 11:15:55 -08:00
parent a5c01977bd
commit e62e821fc3
11 changed files with 90 additions and 11 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

+44 -5
View File
@@ -23,12 +23,51 @@ limitations under the License.
android:layout_height="match_parent"
android:layout_weight="1.0"
android:layout_width="0dp" />
<TextView
<RelativeLayout
android:id="@+id/track_list_empty_view"
android:layout_height="match_parent"
android:layout_weight="1.0"
android:layout_width="0dp"
android:text="@string/track_list_empty_message"
style="@style/ListEmptyTextView" >
</TextView>
android:layout_width="0dp" >
<LinearLayout
android:id="@+id/track_list_arrow_long"
android:layout_alignParentLeft="true"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:orientation="vertical"
android:paddingLeft="12dp"
android:paddingRight="16dp" >
<View
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="match_parent" />
<ImageView
android:layout_height="0dp"
android:layout_weight="10"
android:layout_width="wrap_content"
android:src="@drawable/ic_arrow_long" />
<View
android:layout_height="0dp"
android:layout_weight="17"
android:layout_width="match_parent" />
</LinearLayout>
<LinearLayout
android:layout_height="match_parent"
android:paddingRight="20dp"
android:layout_toRightOf="@id/track_list_arrow_long"
android:layout_width="wrap_content"
android:orientation="vertical" >
<View
android:layout_height="0dp"
android:layout_weight="4"
android:layout_width="match_parent" />
<TextView
android:gravity="left"
android:layout_height="0dp"
android:layout_weight="24"
android:layout_width="wrap_content"
android:text="@string/track_list_empty_message"
style="@style/TextLarge" >
</TextView>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
+45 -5
View File
@@ -23,13 +23,53 @@ limitations under the License.
android:layout_height="0dp"
android:layout_weight="1.0"
android:layout_width="match_parent" />
<TextView
<RelativeLayout
android:id="@+id/track_list_empty_view"
android:layout_height="0dp"
android:layout_weight="1.0"
android:layout_width="match_parent"
android:text="@string/track_list_empty_message"
style="@style/ListEmptyTextView" >
</TextView>
android:layout_width="match_parent" >
<LinearLayout
android:id="@+id/track_list_arrow_long"
android:layout_alignParentBottom="true"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:paddingBottom="12dp"
android:paddingTop="16dp" >
<View
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_width="0dp" />
<ImageView
android:layout_height="wrap_content"
android:layout_weight="10"
android:layout_width="0dp"
android:src="@drawable/ic_arrow_long" />
<View
android:layout_height="match_parent"
android:layout_weight="17"
android:layout_width="0dp" />
</LinearLayout>
<LinearLayout
android:layout_above="@id/track_list_arrow_long"
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<View
android:layout_height="match_parent"
android:layout_weight="5"
android:layout_width="0dp" />
<TextView
android:gravity="left"
android:layout_height="wrap_content"
android:layout_weight="22"
android:layout_width="0dp"
android:text="@string/track_list_empty_message"
style="@style/TextLarge" >
</TextView>
<View
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_width="0dp" />
</LinearLayout>
</RelativeLayout>
<include layout="@layout/track_controller" />
</LinearLayout>
+1 -1
View File
@@ -2222,7 +2222,7 @@ limitations under the License.
<string name="track_list_empty_message"
translation_description="When the track list is empty, the message informing the user to click
on the record button to start a new recording">
Click on the record button to start recording your next adventure
Start recording your next adventure here
</string>
<string name="track_list_record_error"
translation_description="When starting a new track recording, the error message informing the