Когда я перемещаю мышь над LinearLayout
Я получаю предупреждение, как я могу избавиться от него?Этот тег и его дети могут быть заменены на один <TextView/> и compund drawable
Этот тег и его дети могут быть заменены одним TextView /> и compund вытяжке
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
>
<ImageView
android:id="@+id/frag1_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/frag1_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
Извините за мой поздний ответ, я был занят школой. Я попытался заставить его работать, но я просто не могу объединить TextView с ImageView ... У меня нет каких-либо чертежей в этих двух. Я посмотрел на Google, чтобы сделать это, но не нашел ... – Alec
drawable необходим для сложного вида. –