Improve style and usability of ImportAllTracks

Fix style issues pointed out in code review. Move acquireWakeLock method into
MyTracksUtils and call that from ImportAllTracks and ExportAllTracks. Replace
important Toast messages with dialogs.
This commit is contained in:
David Piggott
2011-02-14 10:53:37 +00:00
parent 59a05262a1
commit 0eb676d3cd
6 changed files with 162 additions and 183 deletions
+10 -10
View File
@@ -46,6 +46,16 @@ limitations under the License.
android:background="@drawable/list_bar"
android:layout_weight="0"
android:padding="3dip">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"/>
<Button android:id="@+id/tracklist_btn_import_all"
android:layout_width="wrap_content"
android:layout_height="48dip"
android:layout_gravity="left|top"
android:text="@string/tracklist_btn_import_all"
android:textSize="14dip"/>
<Button android:id="@+id/tracklist_btn_export_all"
android:layout_width="wrap_content"
android:layout_height="48dip"
@@ -58,15 +68,5 @@ limitations under the License.
android:layout_gravity="left|top"
android:text="@string/tracklist_btn_delete_all"
android:textSize="14dip"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"/>
<Button android:id="@+id/tracklist_btn_import_all"
android:layout_width="wrap_content"
android:layout_height="48dip"
android:layout_gravity="left|top"
android:text="@string/tracklist_btn_import_all"
android:textSize="14dip"/>
</LinearLayout>
</LinearLayout>