Browse Source

record detail layout improvements

Fabio Arnold 10 years ago
parent
commit
96b3ec6a74
1 changed files with 18 additions and 16 deletions
  1. 18 16
      res/layout/fragment_record_detail.xml

+ 18 - 16
res/layout/fragment_record_detail.xml

@@ -4,7 +4,7 @@
 			  android:layout_width="match_parent"
 			  android:layout_height="match_parent"
 			  android:orientation="vertical"
-			  android:padding="8dp">
+			  android:padding="16dp" android:background="@android:color/transparent">
 
 	<TableLayout
 			android:layout_width="match_parent"
@@ -24,7 +24,7 @@
 					android:textAppearance="?android:attr/textAppearanceMedium"
 					android:text="undefined"
 					android:id="@+id/record_detail_ssid_value" android:layout_column="1"
-					android:gravity="right"/>
+					/>
 		</TableRow>
 		<TableRow
 				android:layout_width="match_parent"
@@ -41,7 +41,7 @@
 					android:textAppearance="?android:attr/textAppearanceMedium"
 					android:text="undefined"
 					android:id="@+id/record_detail_bssid_value"
-					android:gravity="right"/>
+					/>
 		</TableRow>
 		<TableRow
 				android:layout_width="match_parent"
@@ -58,7 +58,7 @@
 					android:textAppearance="?android:attr/textAppearanceMedium"
 					android:text="undefined"
 					android:id="@+id/record_detail_protocol_value"
-					android:gravity="right"/>
+					/>
 		</TableRow>
 		<TableRow
 				android:layout_width="match_parent"
@@ -75,7 +75,7 @@
 					android:textAppearance="?android:attr/textAppearanceMedium"
 					android:text="undefined"
 					android:id="@+id/record_detail_timestamp_value"
-					android:gravity="right"/>
+					/>
 		</TableRow>
 		<TableRow
 				android:layout_width="match_parent"
@@ -92,7 +92,7 @@
 					android:textAppearance="?android:attr/textAppearanceMedium"
 					android:text="undefined"
 					android:id="@+id/record_detail_location_value"
-					android:gravity="right"/>
+					/>
 		</TableRow>
 		<TableRow
 				android:layout_width="match_parent"
@@ -109,7 +109,7 @@
 					android:textAppearance="?android:attr/textAppearanceMedium"
 					android:text="undefined"
 					android:id="@+id/record_detail_internalip_value"
-					android:gravity="right"/>
+					/>
 		</TableRow>
 		<TableRow
 				android:layout_width="match_parent"
@@ -126,7 +126,7 @@
 					android:textAppearance="?android:attr/textAppearanceMedium"
 					android:text="undefined"
 					android:id="@+id/record_detail_externalip_value"
-					android:gravity="right"/>
+					/>
 		</TableRow>
 		<TableRow
 				android:layout_width="match_parent"
@@ -143,7 +143,7 @@
 					android:textAppearance="?android:attr/textAppearanceMedium"
 					android:text="undefined"
 					android:id="@+id/record_detail_remoteip_value"
-					android:gravity="right"/>
+					/>
 		</TableRow>
 		<TableRow
 				android:layout_width="match_parent"
@@ -160,7 +160,7 @@
 					android:textAppearance="?android:attr/textAppearanceMedium"
 					android:text="undefined"
 					android:id="@+id/record_detail_packettype_value"
-					android:gravity="right"/>
+					/>
 		</TableRow>
 	</TableLayout>
 	<TextView
@@ -173,19 +173,19 @@
 			android:layout_width="match_parent"
 			android:layout_height="wrap_content"
 			android:id="@+id/scrollView"
-			android:layout_gravity="bottom"
-			android:layout_weight="1">
+			android:layout_weight="1" android:fillViewport="true"
+			android:background="@drawable/panel_bg">
 		<TextView
-				android:layout_width="wrap_content"
+				android:layout_width="match_parent"
 				android:layout_height="wrap_content"
 				android:padding="8dp"
 				android:textAppearance="?android:attr/textAppearanceMedium"
-				android:text="undefinedsajdsdbjkfhjkashjf kljsdlfkaskldfdsaklhfhl klhkl fdslkhkfls dhklfads hklf hklsdfklh salkhflkhsadklfkhlsad klf asklfhkl safklaslhkdf klsad klhf sdklfdlkhö klsdlfkhö sklflhkslhkdf dklsfklh s dfklhöds kdklshf kdsklhflhksdfhkldkls klhf sdkl dkfhldsjfhj sdhflhjksd fjkldsklj fsljkf ljksd fljksdjklfdskljfjksd klj dklsfklösadjklfjkeifjih klds f"
+				android:text="undefined"
 				android:id="@+id/record_detail_packetcontent_value" android:autoText="false"
 				android:typeface="monospace"
 				android:singleLine="false"
 				android:textIsSelectable="true"
-				android:background="@color/holo_yellow"/>
+				/>
 	</ScrollView>
 
 	<Button
@@ -194,5 +194,7 @@
 			android:text="@string/delete"
 			android:id="@+id/button"
 			android:layout_gravity="center_horizontal|bottom"
-			android:layout_weight="0"/>
+			android:layout_weight="0" android:layout_marginTop="8dp"
+			android:background="@color/holo_red"
+			android:textColor="@android:color/white"/>
 </LinearLayout>