コードは次のとおりです。
<RelativeLayout
android:id="@+id/tc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/tc"
android:layout_marginLeft="185dip"
android:layout_marginTop="25dip"
>
<ImageView
android:id="@+id/tc_icon"
android:background="@drawable/count_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/tc"
android:layout_mar
/>
<TextView
android:id="@+id/tc_icon_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:text="1"
android:layout_gravity="bottom"
android:textColor="#f7e906"
android:textStyle="bold"
/>
</RelativeLayout>
私はどういうわけか、画像とテキストビューを互いに重ね合わせることができました(これは私が望んでいたことです)。ここで、それらを親の RelativeLayout (id 'tc') の左下隅に配置したいと思います。ただし、移動しません。
alignParentBottom.... を使用すると、相対レイアウト全体が画面全体に広がり、親の relativeLayout に揃えられます。
助けてください。ありがとう!:)