कैसे जो ViewGroup (लेआउट) में जोड़ा जाता है विशेष रूप से देख सकते हैं या ViewGroup के सूचकांक
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_margin="24dip"
android:text="Add Notes" />
<TableLayout android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_marginLeft="24dip"
android:layout_marginRight="24dip" android:id="@+id/tlNotes"
android:stretchColumns="0">
</TableLayout>
<Button android:id="@+id/bAddNoteLine"
android:layout_marginLeft="24dip" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="ADD">
</Button>
<LinearLayout android:id="@+id/llIndex"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_margin="21dip"
android:gravity="center">
<Button android:id="@+id/bSaveSubjectiveNote"
android:layout_width="192dip" android:layout_height="wrap_content"
android:text="Save" />
<Button android:id="@+id/bDiscardSubjectiveNote"
android:layout_width="192dip" android:layout_height="wrap_content"
android:layout_marginLeft="48dip" android:background="@drawable/button"
android:text="Discard" />
</LinearLayout>
कैसे जो "llIndex" है आईडी के रूप में LinearLayout के सूचकांक को पुनः प्राप्त करने के लिए। धन्यवाद
आपकी प्रतिक्रिया के लिए धन्यवाद ... लेकिन असल में मैं इंडेक्स चाहता हूं, अब इस उदाहरण में रैखिक लयआउट की अनुक्रमणिका जिसमें आईडी के रूप में "llIndex" है 3। मैं इसे एपीआई के माध्यम से पढ़ना चाहता हूं। – user373885
ठीक है मुझे लगता है कि मैं उलझन में हूं क्योंकि आप वास्तव में क्या चाहते हैं? क्या llAddNote किसी अन्य दृश्य में निहित है, और आपको यह जानने की आवश्यकता है कि यह कौन सा बच्चा # है? –