how can I get the previous view (TextView) in the SlideButton view and the next view of the SlideButton view.
View SlideButton with identifier "remotelight". I can get a SlideButton view using the "findViewById" method. so after I get the SlideButton view, how to get the previous view and the next view without using the findViewById method.
Thank you very much.
below is the xml layout part:
<TableRow android:id="@+id/tableRow1" android:layout_width="wrap_content" android:layout_height="wrap_content" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" /> <com.ivn.SlideButton android:id="@+id/remotelight" android:layout_width="100dp" android:layout_height="50dp" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="" /> </TableRow>
source share