layout adjustments

This commit is contained in:
daniel oeh 2012-09-13 11:39:31 +02:00
parent 2c9bbe9e87
commit c97c21990a
3 changed files with 18 additions and 15 deletions

View File

@ -54,46 +54,48 @@
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/txtvLenSize"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentLeft="true" />
<LinearLayout
android:id="@+id/enc_icons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/txtvLenSize"
android:layout_height="@dimen/enc_icons_size"
android:layout_alignParentRight="true"
android:layout_alignTop="@id/txtvLenSize"
android:layout_centerVertical="true"
android:orientation="horizontal" >
<ImageView
android:id="@+id/imgvType"
android:layout_width="wrap_content"
android:layout_width="@dimen/enc_icons_size"
android:layout_height="match_parent" />
<ImageView
android:id="@+id/imgvInPlaylist"
android:layout_width="wrap_content"
android:layout_width="@dimen/enc_icons_size"
android:layout_height="match_parent"
android:src="@drawable/stat_playlist"
android:visibility="gone" />
<ImageView
android:id="@+id/imgvDownloaded"
android:layout_width="wrap_content"
android:layout_width="@dimen/enc_icons_size"
android:layout_height="match_parent"
android:src="@drawable/av_download"
android:visibility="gone" />
<ImageView
android:id="@+id/imgvDownloading"
android:layout_width="wrap_content"
android:layout_width="@dimen/enc_icons_size"
android:layout_height="match_parent"
android:src="@drawable/navigation_refresh"
android:visibility="gone" />
</LinearLayout>
<TextView
android:id="@+id/txtvLenSize"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@id/enc_icons"
android:maxLines="2" />
</RelativeLayout>
</LinearLayout>

View File

@ -3,5 +3,6 @@
<dimen name="widget_margin">8dp</dimen>
<dimen name="thumbnail_length">55dp</dimen>
<dimen name="external_player_height">55dp</dimen>
<dimen name="enc_icons_size">20dp</dimen>
</resources>

View File

@ -176,10 +176,10 @@ public class DownloadActivity extends SherlockListActivity implements
public boolean onCreateOptionsMenu(Menu menu) {
menu.add(Menu.NONE, MENU_SHOW_LOG, Menu.NONE,
R.string.show_download_log).setShowAsAction(
MenuItem.SHOW_AS_ACTION_IF_ROOM);
MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);
menu.add(Menu.NONE, MENU_CANCEL_ALL_DOWNLOADS, Menu.NONE,
R.string.cancel_all_downloads_label).setShowAsAction(
MenuItem.SHOW_AS_ACTION_IF_ROOM);
MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);
return true;
}