I'm having an issue how to organize the XML file to be as the following picture. I have spent enough time, I couldn't do it. If you could assist me what configuration I should do. There is no restriction on how to organize. but if it is possible to teach me new method instead of parent-child.
My XML is:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" tools:context="com.ahmed.bluetooth.DataAnalysis"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Peak Pressures" android:layout_weight="1"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Time in Sec." android:layout_weight="1"/> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_weight="1"> <TextView android:id="@+id/text_Index" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/Peaks_index" android:textColor="#040307" android:scrollbars="vertical"/> <TextView android:id="@+id/Peak_Num" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="Peaks" android:textColor="#040307" android:scrollbars="vertical"/> <Button android:id="@+id/button_Del" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="Delete File" android:background="@drawable/button" android:layout_margin="1dp" /> </LinearLayout> </LinearLayout>
No comments:
Post a Comment