Opening a new screen from xml file text.
- by Clozecall
Hey all I'm looking to edit my app so that when a text within an xml file is selected, a new window opens. I've found various ways of making a new screen open via a class, but I need it done from a xml file. My program as a tablayout, and here is some of the stuff displayed within my first tab:
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:id="@+id/ScrollView01"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
<TextView
android:textColor="#FFFFFF"
android:text="First Header here"
android:textStyle="bold"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:textColor="#FFFFFF"
android:text="First body text here"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
So basically I need it so that when a text is selected, a new screen pops up. As said the reason this specifically has to be done in xml is because this is all apart of a tab layout, It would be great if the next within each tab could open a a new screen. Thanks.