Improve track list empty view
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
@@ -23,12 +23,51 @@ limitations under the License.
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1.0"
|
android:layout_weight="1.0"
|
||||||
android:layout_width="0dp" />
|
android:layout_width="0dp" />
|
||||||
<TextView
|
<RelativeLayout
|
||||||
android:id="@+id/track_list_empty_view"
|
android:id="@+id/track_list_empty_view"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1.0"
|
android:layout_weight="1.0"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp" >
|
||||||
android:text="@string/track_list_empty_message"
|
<LinearLayout
|
||||||
style="@style/ListEmptyTextView" >
|
android:id="@+id/track_list_arrow_long"
|
||||||
</TextView>
|
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>
|
</LinearLayout>
|
||||||
@@ -23,13 +23,53 @@ limitations under the License.
|
|||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1.0"
|
android:layout_weight="1.0"
|
||||||
android:layout_width="match_parent" />
|
android:layout_width="match_parent" />
|
||||||
<TextView
|
<RelativeLayout
|
||||||
android:id="@+id/track_list_empty_view"
|
android:id="@+id/track_list_empty_view"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1.0"
|
android:layout_weight="1.0"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent" >
|
||||||
android:text="@string/track_list_empty_message"
|
<LinearLayout
|
||||||
style="@style/ListEmptyTextView" >
|
android:id="@+id/track_list_arrow_long"
|
||||||
</TextView>
|
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" />
|
<include layout="@layout/track_controller" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -2222,7 +2222,7 @@ limitations under the License.
|
|||||||
<string name="track_list_empty_message"
|
<string name="track_list_empty_message"
|
||||||
translation_description="When the track list is empty, the message informing the user to click
|
translation_description="When the track list is empty, the message informing the user to click
|
||||||
on the record button to start a new recording">
|
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>
|
||||||
<string name="track_list_record_error"
|
<string name="track_list_record_error"
|
||||||
translation_description="When starting a new track recording, the error message informing the
|
translation_description="When starting a new track recording, the error message informing the
|
||||||
|
|||||||