के शीर्ष पर एक सीमा आकर्षित करने के लिए का पालन किया है: http://www.connorgarvey.com/blog/?p=34मैं ढाल विभाजक के लिए में उदाहरण कैसे रेखीय लेआउट
मैं अपने रैखिक लेआउट के तल पर एक क्षैतिज रेखा आकर्षित करने के लिए कोशिश की है।
यहाँ मेरी रेखीय लेआउट फ़ाइल है:
<LinearLayout android:id="@+id/test" android:layout_width="fill_parent"
android:layout_height="wrap_content>
<ImageView android:id="@+id/icon1"
android:layout_width="32dip"
android:layout_height="32dip"
/>
और मैं
<View
android:background="@drawable/black_white_gradient"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_above="@id/test"
/>
जोड़ने किया था लेकिन मैं LinearLayout के शीर्ष पर किसी भी लाइन नहीं दिख रहा। और जब मैं पदानुक्रम देखने के लिए जाता हूं और देखता हूं कि वह देखता है (हॉर्ट सेपरेटर के लिए), getWidth() 0 है, जबकि getHeight() 0 है।
क्या आप कृपया मुझे बता सकते हैं कि मुझे क्या याद आ रही है?
धन्यवाद।
किसी को भी कोई विचार है? – n179911