TextView
の隣に権利を持たせようとしていImageButton
ます。ただし、TextView
うまく整列していません。と同じトップ位置から開始したいImageButton
。
これが今の様子です:
これが私のレイアウトです:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="10dp"
android:layout_marginLeft="10dp"
android:orientation="horizontal">
<ImageButton
android:id="@+id/myimage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#FFFFFF"
android:src="@drawable/myimage"/>
<TextView
android:id="@+id/mytexview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14dp"
android:text="My Text"
android:textStyle="bold"
android:layout_marginLeft="5dp"
android:textColor="#DF533B"
/>
</LinearLayout>