【发布时间】:2013-12-02 21:49:35
【问题描述】:
我从以下教程中导入了源代码:
http://blog.blundell-apps.com/show-youtube-user-videos-in-a-listview/
https://github.com/blundell/YouTubeUserFeed/tree/master/res/layout
但我似乎无法增加缩略图的大小 - 我尝试将我的 XML 中的 userVideoThumbImageView 更改为:
android:layout_width="wrap_content"
android:layout_height="wrap_content"
到
android:layout_width="80dip"
android:layout_height="80dip"
but it only seems to increase the size of the black space around the thumbnail.
XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal" >
<com.blundell.tut.ui.widget.UrlImageView
android:id="@+id/userVideoThumbImageView"
android:layout_width="80dip"
android:layout_height="80dip"
android:contentDescription="YouTube video thumbnail"
android:src="@drawable/ic_launcher" />
<TextView
android:id="@+id/userVideoTitleTextView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Video Title Not Found" />
</LinearLayout>
屏幕截图:
【问题讨论】:
标签: java android xml youtube android-ui