【发布时间】:2011-02-19 19:08:24
【问题描述】:
嗨 我正在从 Web 读取 XML 并将它们显示在列表视图中。 xml 包含一个图像位置,因此我将图像与文本一起显示。 图片尺寸为 48*48 像素,建议 here。但是当我在实际设备中看到列表视图时,图像看起来非常小。关于如何使该图像有点大的任何想法?有没有标准的图片和文字大小?? 这是我的布局:-
<ImageView
android:id="@+id/logo"
android:layout_gravity="left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/name"
android:textSize="16sp"
android:textStyle="bold"
android:textColor="#2B2B2B"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="5dp"
android:layout_toRightOf="@id/logo"
/>
【问题讨论】:
标签: android listview android-layout