0
我必须为每一个网格的自定义网格视图我使用显示两个图像之一的Android上面的另一个图像
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<View
android:layout_width="fill_parent"
android:layout_height="30sp"
android:layout_marginTop="85sp"
android:background="@drawable/shelf" />
<ImageView
android:id="@+id/imgThumb"
android:layout_width="47.5sp"
android:layout_height="76sp"
android:layout_centerHorizontal="true"
android:layout_marginTop="29sp"
android:background="@drawable/pic1" />
<ImageView
android:id="@+id/bookCover"
android:layout_width="60sp"
android:layout_height="80sp"
android:layout_marginLeft="127sp"
android:layout_marginTop="26sp"
android:background="@drawable/book_cover" />
它看起来像这样的图形布局之前在eclipse
但是当我在仿真器上运行它时,它看起来像
封面影像消失了,我在Android的新请不要哪里出了问题,该如何解决呢
** FrameLayout里也没有工作**
不可能我需要把 '机器人:layout_height = “30sp” 机器人:layout_marginTop = “85sp”' @绘制/架viewtag内 – Anirban