This tag and its children can be replaced by one and a compound drawable [SOLVED]

to solve :

before:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
    
    <ImageView 
        android:id="@+id/imagepart"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:contentDescription="@string/imagedesc"
        />
    <TextView 
        android:id="@+id/textpart"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        />

</LinearLayout>

after:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
    
  
    <TextView 
        android:id="@+id/textpart"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:drawableTop="@+id/imagepart"
        />

</LinearLayout>

change imageView to drawable i think that solve your problem

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s