Add a minus sign for deleting a record in tag editor.
Ben Komalo [Tue, 26 Oct 2010 21:29:02 +0000 (14:29 -0700)]
Click listeners not actually hooked up.

Change-Id: Ie6544b12eb92b7afa1674f4eb3cd3a58266cf9f6

res/drawable-hdpi/ic_btn_round_minus.png [new file with mode: 0644]
res/drawable-mdpi/ic_btn_round_minus.png [new file with mode: 0644]
res/layout/tag_edit_image.xml
res/layout/tag_edit_url.xml
res/layout/tag_edit_vcard.xml
res/values/styles.xml

diff --git a/res/drawable-hdpi/ic_btn_round_minus.png b/res/drawable-hdpi/ic_btn_round_minus.png
new file mode 100644 (file)
index 0000000..7c667d3
Binary files /dev/null and b/res/drawable-hdpi/ic_btn_round_minus.png differ
diff --git a/res/drawable-mdpi/ic_btn_round_minus.png b/res/drawable-mdpi/ic_btn_round_minus.png
new file mode 100644 (file)
index 0000000..c44a938
Binary files /dev/null and b/res/drawable-mdpi/ic_btn_round_minus.png differ
index 8c82e73..bdd07cf 100644 (file)
      limitations under the License.
 -->
 
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:padding="8dip"
-    android:orientation="vertical"
     android:layout_width="match_parent"
     android:layout_height="wrap_content">
 
+    <ImageView
+        android:src="@drawable/ic_btn_round_minus"
+        android:id="@+id/delete"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentTop="true"
+        android:layout_alignParentRight="true"
+    />
+
     <TextView
+        android:id="@+id/title"
         android:text="@string/photo"
         style="@style/record_title"
+        android:layout_alignParentTop="true"
+        android:layout_toLeftOf="@+id/delete"
     />
 
     <ImageView
         android:id="@+id/image"
+        android:layout_below="@+id/title"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
     />
-</LinearLayout>
-
-
-
+</RelativeLayout>
index ce945db..86758e2 100644 (file)
      limitations under the License.
 -->
 
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:padding="8dip"
-    android:orientation="vertical"
     android:layout_width="match_parent"
     android:layout_height="wrap_content">
 
+    <ImageView
+        android:src="@drawable/ic_btn_round_minus"
+        android:id="@+id/delete"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentTop="true"
+        android:layout_alignParentRight="true"
+    />
+
     <TextView
+        android:id="@+id/title"
         android:text="@string/url"
         style="@style/record_title"
+        android:layout_alignParentTop="true"
+        android:layout_toLeftOf="@+id/delete"
         />
 
     <EditText
         android:id="@+id/value"
         android:inputType="textUri"
+        android:layout_below="@+id/title"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         />
-</LinearLayout>
+</RelativeLayout>
 
 
index 1f7a582..d2b6b9a 100644 (file)
      limitations under the License.
 -->
 
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:padding="8dip"
-    android:orientation="vertical"
     android:layout_width="match_parent"
     android:layout_height="wrap_content">
 
+    <ImageView
+        android:src="@drawable/ic_btn_round_minus"
+        android:id="@+id/delete"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentTop="true"
+        android:layout_alignParentRight="true"
+    />
+
     <TextView
+        android:id="@+id/title"
         android:text="@string/contact"
         style="@style/record_title"
+        android:layout_alignParentTop="true"
+        android:layout_toLeftOf="@+id/delete"
     />
 
     <LinearLayout
         android:orientation="horizontal"
         android:gravity="center_vertical"
+        android:layout_below="@+id/title"
         android:layout_width="match_parent"
         android:layout_height="wrap_content">
 
@@ -45,4 +57,4 @@
             android:layout_height="wrap_content"
         />
     </LinearLayout>
-</LinearLayout>
+</RelativeLayout>
index 385a790..4e3a67b 100644 (file)
@@ -19,7 +19,7 @@
 
     <style name="record_title">
         <item name="android:layout_marginBottom">4dip</item>
-        <item name="android:layout_width">wrap_content</item>
+        <item name="android:layout_width">match_parent</item>
         <item name="android:layout_height">wrap_content</item>
         <item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
     </style>