OSDN Git Service

add proxy hint texts
authorIrfan Sheriff <isheriff@google.com>
Tue, 1 Mar 2011 23:01:42 +0000 (15:01 -0800)
committerIrfan Sheriff <isheriff@google.com>
Wed, 2 Mar 2011 23:42:27 +0000 (15:42 -0800)
also, a minor fix for soft access point hint text

Change-Id: Ib8facba1c252e6b7a8f29eb5792149943c0e15f0

res/layout/wifi_ap_dialog.xml
res/layout/wifi_config_preference.xml
res/layout/wifi_dialog.xml
res/values/strings.xml

index a134460..d458cd3 100644 (file)
@@ -84,7 +84,7 @@
                     android:maxLength="63" />
 
             <TextView android:id="@+id/hint"
-                    style="?android:attr/textAppearanceSmallInverse"
+                    style="?android:attr/textAppearanceSmall"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:textSize="12sp"
index 913222f..f19a9ec 100644 (file)
                 android:layout_height="wrap_content"
                 android:orientation="vertical"
                 android:visibility="gone">
+
             <TextView android:layout_width="fill_parent"
                     android:layout_height="wrap_content"
                     android:text="@string/proxy_hostname_label" />
                     android:layout_width="fill_parent"
                     android:layout_height="wrap_content"
                     android:singleLine="true"
-                    android:inputType="textNoSuggestions" />
+                    android:hint="@string/proxy_hostname_hint" />
 
             <TextView android:layout_width="fill_parent"
                     android:layout_height="wrap_content"
                     android:layout_width="fill_parent"
                     android:layout_height="wrap_content"
                     android:singleLine="true"
-                    android:inputType="textNoSuggestions" />
+                    android:hint="@string/proxy_port_hint" />
 
             <TextView android:layout_width="fill_parent"
                     android:layout_height="wrap_content"
                     android:layout_width="fill_parent"
                     android:layout_height="wrap_content"
                     android:singleLine="true"
-                    android:inputType="textNoSuggestions" />
+                    android:hint="@string/proxy_exclusionlist_hint" />
 
         </LinearLayout>
 
index a530a84..7d199bd 100644 (file)
         <LinearLayout android:id="@+id/proxy_fields"
                 style="@style/wifi_section"
                 android:visibility="gone">
+
             <LinearLayout style="@style/wifi_item">
                 <TextView
                         style="@style/wifi_item_label"
 
                 <EditText android:id="@+id/proxy_hostname"
                         style="@style/wifi_item_content"
-                        android:singleLine="true"
-                        android:inputType="textNoSuggestions" />
+                        android:hint="@string/proxy_hostname_hint"
+                        android:singleLine="true" />
             </LinearLayout>
             <LinearLayout style="@style/wifi_item">
                 <TextView
 
                 <EditText android:id="@+id/proxy_port"
                         style="@style/wifi_item_content"
-                        android:singleLine="true"
-                        android:inputType="textNoSuggestions" />
+                        android:hint="@string/proxy_port_hint"
+                        android:singleLine="true" />
             </LinearLayout>
             <LinearLayout style="@style/wifi_item">
                 <TextView
 
                 <EditText android:id="@+id/proxy_exclusionlist"
                         style="@style/wifi_item_content"
-                        android:singleLine="true"
-                        android:inputType="textNoSuggestions" />
+                        android:hint="@string/proxy_exclusionlist_hint"
+                        android:singleLine="true" />
             </LinearLayout>
         </LinearLayout>
 
index ff04cf7..fdf499a 100644 (file)
     <string name="proxy_clear_text">Clear</string>
     <!-- HTTP proxy settings. The port number label. -->
     <string name="proxy_port_label">Proxy port</string>
+    <!-- HTTP proxy settings. The hint text field for port. [CHAR LIMIT=50]-->
+    <string name="proxy_port_hint">8080</string>
     <!-- HTTP proxy settings. The exclusion list label. -->
-    <string name="proxy_exclusionlist_label">No Proxy for</string>
+    <string name="proxy_exclusionlist_label">Bypass proxy for</string>
+    <!-- HTTP proxy settings. The hint text for proxy exclusion list. [CHAR LIMIT=50]-->
+    <string name="proxy_exclusionlist_hint">example.com,mycomp.test.com,localhost</string>
     <!-- HTTP proxy settings. The button to restore the defaults. -->
     <string name="proxy_defaultView_text">Restore defaults</string>
     <!-- HTTP proxy settings. The button to save. -->
     <string name="proxy_action_text">Done</string>
     <!-- HTTP proxy settings. The text field for the hostname -->
     <string name="proxy_hostname_label">Proxy hostname</string>
+    <!-- HTTP proxy settings. The hint text field for the hostname. [CHAR LIMIT=50] -->
+    <string name="proxy_hostname_hint">proxy.example.com</string>
     <!-- HTTP proxy settings. Title if there is an error-->
     <string name="proxy_error">Attention</string>
     <!-- HTTP proxy settings. Button to get rid of error box-->