में एक और imageView के शीर्ष पर एक imageView जगह यह मेरा लेआउट जो मैं किसी भी सफलताकैसे एंड्रॉयड
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white">
<LinearLayout
android:id="@+id/lltest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_centerHorizontal="true">
<ImageView
android:id="@+id/inside_imageview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dip"
android:layout_marginBottom="5dip"
android:src="@drawable/frame"/>
</LinearLayout>
<ImageView
android:id="@+id/outside_imageview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/inside_imageview"
android:scaleType="fitXY"/>
</RelativeLayout>
क्या मैं वास्तव में चाहते हैं सटीक साथ inside_imageview की चोटी पर मेरी outside_imageview है बिना अब तक की कोशिश की है ऊंचाई और चौड़ाई ... लेआउट के माध्यम से इसे कैसे करें?
आप layout_alignLeft जोड़ने की कोशिश की = "है @ id/inside_imageview "alignTop के अलावा? – CSmith
@CSmith हाँ मैंने कोशिश की। –
समस्या यह थी कि उसके अंदर एक_रिएज व्यूइंग है जिसमें एक LinearLayout के अंदर दृश्य है 'layout_alignTop' संदर्भ आईडी को 'inside_imageView' में नहीं देख सकता है। 'बाहरी_imageview' लाइनरलाइट पर संरेखित होगा यदि आईडी संदर्भ इसके बजाय 'lltest' था। – DeeV