Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r508 committed - Change layout to include horizontal scroll for summary, detailed and a...

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r508 committed - Change layout to include horizontal scroll for summary, detailed and a...


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r508 committed - Change layout to include horizontal scroll for summary, detailed and a...
  • Date: Mon, 22 Aug 2011 20:45:33 +0000

Revision: 508
Author:

Date: Mon Aug 22 13:45:02 2011
Log: Change layout to include horizontal scroll for summary, detailed and advanced results.
http://code.google.com/p/ndt/source/detail?r=508

Modified:
/branches/android/Android/res/layout/results.xml

=======================================
--- /branches/android/Android/res/layout/results.xml Tue Aug 16 13:12:16 2011
+++ /branches/android/Android/res/layout/results.xml Mon Aug 22 13:45:02 2011
@@ -1,111 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android";
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
-<LinearLayout
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
- <TextView android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:paddingTop="15sp"
- android:id="@+id/ResultsHeader"
- android:text="@string/results_header"
- style="@style/NdtHeader"/>
- <LinearLayout android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingTop="5sp"
- android:paddingBottom="5sp"
- android:paddingLeft="25sp"
- android:layout_marginTop="5sp"
- android:layout_marginLeft="35sp"
- android:layout_marginRight="35sp"
- android:background="@drawable/speed_box">
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingTop="10sp"
- android:id="@+id/UploadSpeedHeader"
- android:text="@string/results_upload_speed_header"
- style="@style/NdtResultsLabel" />
- <LinearLayout android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal">
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/UploadSpeed"
- android:text="0"
- android:layout_marginRight="5sp"
- style="@style/NdtResults" />
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/UploadSpeedMbps"
- android:text="@string/results_mpbs"
- style="@style/NdtResultsMbps" />
- </LinearLayout>
+ android:orientation="vertical" android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/VisibleResults">
+ <LinearLayout android:orientation="vertical"
+ android:layout_width="fill_parent"
android:layout_height="wrap_content">
+ <!-- header text -->
+ <TextView android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
android:paddingTop="15sp"
+ android:id="@+id/ResultsHeader"
android:text="@string/results_header"
+ style="@style/NdtHeader" />
+ <HorizontalScrollView android:orientation="horizontal"
+ android:layout_width="wrap_content"
android:layout_height="fill_parent">
+ <LinearLayout android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
android:orientation="horizontal">
+ <!-- summary results -->
+ <LinearLayout android:orientation="vertical"
+ android:layout_height="fill_parent" android:layout_width="wrap_content"
+ android="@+id/SummaryResults">
+ <!-- upload speed -->
+ <LinearLayout
android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
+ android:paddingTop="5sp"
android:paddingBottom="5sp"
+ android:paddingLeft="25sp"
android:layout_marginTop="5sp"
+ android:layout_marginLeft="35sp"
android:layout_marginRight="35sp"
+
android:background="@drawable/speed_box">
+ <TextView
android:layout_width="wrap_content"
+
android:layout_height="wrap_content" android:paddingTop="10sp"
+ android:id="@+id/UploadSpeedHeader" android:text="@string/results_upload_speed_header"
+
style="@style/NdtResultsLabel" />
+ <LinearLayout
android:layout_width="match_parent"
+ android:layout_height="match_parent" android:orientation="horizontal">
+ <TextView
android:layout_width="wrap_content"
+
android:layout_height="wrap_content" android:id="@+id/UploadSpeed"
+ android:text="0" android:layout_marginRight="5sp" style="@style/NdtResults" />
+ <TextView
android:layout_width="wrap_content"
+ android:layout_height="wrap_content" android:id="@+id/UploadSpeedMbps"
+ android:text="@string/results_mpbs" style="@style/NdtResultsMbps" />
+ </LinearLayout>
+ </LinearLayout>
+ <!-- download speed -->
+ <LinearLayout
android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
+ android:paddingTop="5sp"
android:paddingBottom="5sp"
+ android:paddingLeft="25sp"
android:layout_marginTop="10sp"
+ android:layout_marginLeft="35sp"
android:layout_marginRight="35sp"
+
android:background="@drawable/speed_box">
+ <TextView
android:layout_width="wrap_content"
+
android:layout_height="wrap_content" android:paddingTop="10sp"
+ android:id="@+id/DownloadSpeedHeader" android:text="@string/results_download_speed_header"
+
style="@style/NdtResultsLabel" />
+ <LinearLayout
android:layout_width="match_parent"
+ android:layout_height="match_parent" android:orientation="horizontal">
+ <TextView
android:layout_width="wrap_content"
+ android:layout_height="wrap_content" android:id="@+id/DownloadSpeed"
+ android:text="0" android:layout_marginRight="5sp" style="@style/NdtResults" />
+ <TextView
android:layout_width="wrap_content"
+ android:layout_height="wrap_content" android:id="@+id/DownloadSpeedMbps"
+ android:text="@string/results_mpbs" style="@style/NdtResultsMbps" />
+ </LinearLayout>
+ </LinearLayout>
+ <!-- latency -->
+ <LinearLayout
android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
android:orientation="horizontal"
+ android:paddingLeft="15sp">
+ <TextView
android:layout_width="wrap_content"
+
android:layout_height="wrap_content" android:paddingTop="15sp"
+ android:id="@+id/LatencyLabel" android:text="@string/results_latency_label"
+
style="@style/NdtResultsMoreLabel" />
+ <TextView
android:layout_width="wrap_content"
+
android:layout_height="wrap_content" android:paddingTop="15sp"
+ android:id="@+id/Latency"
style="@style/NdtResultsMoreInfo" />
+ </LinearLayout>
+ <!-- jitter -->
+ <LinearLayout
android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
android:orientation="horizontal"
+ android:paddingLeft="15sp">
+ <TextView
android:layout_width="wrap_content"
+
android:layout_height="wrap_content" android:id="@+id/JitterLabel"
+ android:text="@string/results_jitter_label" style="@style/NdtResultsMoreLabel" />
+ <TextView
android:layout_width="wrap_content"
+
android:layout_height="wrap_content" android:id="@+id/Jitter"
+
style="@style/NdtResultsMoreInfo" />
+ </LinearLayout>
+ </LinearLayout>
+ <!-- detailed results -->
+ <LinearLayout android:orientation="vertical"
+ android:layout_width="wrap_content" android:layout_height="fill_parent"
+ android:id="@+id/DetailedResults">
+ <TextView
android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
android:paddingTop="15sp"
+ android:text="Details"
style="@style/NdtHeader" />
+ </LinearLayout>
+ <!-- advanced results -->
+ <LinearLayout android:orientation="vertical"
+ android:layout_width="wrap_content" android:layout_height="fill_parent"
+ android:id="@+id/AdvancedResults">
+ <TextView
android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
android:paddingTop="15sp"
+ android:text="Advanced"
style="@style/NdtHeader" />
+ </LinearLayout>
+ </LinearLayout>
+ </HorizontalScrollView>
+ <!-- TODO relative layout -->
+ <!-- TODO linear layout to the left, vertical with image then
text -->
+ <!-- TODO button to the right -->
+ <TextView android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
android:paddingTop="15sp"
+ android:text="@string/results_header"
style="@style/NdtHeader" />
</LinearLayout>
- <LinearLayout android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingTop="5sp"
- android:paddingBottom="5sp"
- android:paddingLeft="25sp"
- android:layout_marginTop="10sp"
- android:layout_marginLeft="35sp"
- android:layout_marginRight="35sp"
- android:background="@drawable/speed_box">
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingTop="10sp"
- android:id="@+id/DownloadSpeedHeader"
- android:text="@string/results_download_speed_header"
- style="@style/NdtResultsLabel" />
- <LinearLayout android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal">
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/DownloadSpeed"
- android:text="0"
- android:layout_marginRight="5sp"
- style="@style/NdtResults" />
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/DownloadSpeedMbps"
- android:text="@string/results_mpbs"
- style="@style/NdtResultsMbps" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:paddingLeft="15sp">
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingTop="15sp"
- android:id="@+id/LatencyLabel"
- android:text="@string/results_latency_label"
- style="@style/NdtResultsMoreLabel"/>
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingTop="15sp"
- android:id="@+id/Latency"
- style="@style/NdtResultsMoreInfo"/>
- </LinearLayout>
- <LinearLayout android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:paddingLeft="15sp">
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/JitterLabel"
- android:text="@string/results_jitter_label"
- style="@style/NdtResultsMoreLabel"/>
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/Jitter"
- style="@style/NdtResultsMoreInfo"/>
- </LinearLayout>
-</LinearLayout>
</ScrollView>


  • [ndt-dev] [ndt] r508 committed - Change layout to include horizontal scroll for summary, detailed and a..., ndt, 08/22/2011

Archive powered by MHonArc 2.6.16.

Top of Page