After reading 2 books on Android programming, I am trying to port an iOS Word game app:
Both classes should be composed of an
ImageView (id: "image") and 2
TextViews (ids: "letter" and "value").
The difference between them is that BigTile will be draggable and its "image" has a shadow.
<?xml version="1.0" encoding="utf-8"?> <ImageView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/image" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/small_tile.png" > </ImageView>
But I get the error
No resource found that matches the given name (at 'src' with value '@drawable/small_tile.png')
as you can see in the Eclipse-screenshot (here fullscreen):
I have tried other paths for my assets as well - for example
Also another question: how to load the layout files from a
There is only an
ImageView in the res/layout/small_tile.xml right now, but I'd like to add the two
TextViews there too (for the letter and its numerical value) - and then load it from the SmallTile.java.
From the programming books I know how to load a layout from
Fragment - call
onCreate - but where and what to call in a