diff options
author | Bobby Georgescu <georgescu@google.com> | 2013-01-17 12:30:06 -0800 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2013-01-17 17:06:50 -0800 |
commit | 5d58a2f36675aa43ec20308f9da146506d1a8f70 (patch) | |
tree | 4fabe3d12efc1e1c29c368c88d60a69c0e28a17d | |
parent | c5209fbb8d4c691b35f5b58ea53639c070ba8c83 (diff) | |
download | android_packages_apps_Snap-5d58a2f36675aa43ec20308f9da146506d1a8f70.tar.gz android_packages_apps_Snap-5d58a2f36675aa43ec20308f9da146506d1a8f70.tar.bz2 android_packages_apps_Snap-5d58a2f36675aa43ec20308f9da146506d1a8f70.zip |
Show status in importer for empty or no device
Bug: 8000251
Change-Id: Iefbbe6df59f432ffeb10ac9fa846a8908584ab58
-rw-r--r-- | res/layout/ingest_activity_item_list.xml | 47 | ||||
-rw-r--r-- | res/values/strings.xml | 6 |
2 files changed, 43 insertions, 10 deletions
diff --git a/res/layout/ingest_activity_item_list.xml b/res/layout/ingest_activity_item_list.xml index 120cf15cb..23a95f658 100644 --- a/res/layout/ingest_activity_item_list.xml +++ b/res/layout/ingest_activity_item_list.xml @@ -13,13 +13,40 @@ See the License for the specific language governing permissions and limitations under the License. --> -<GridView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/ingest_gridview" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:columnWidth="200px" - android:numColumns="auto_fit" - android:fastScrollEnabled="true" - android:background="@android:color/background_dark" - android:choiceMode="multipleChoiceModal" - android:stretchMode="columnWidth" /> +<merge xmlns:android="http://schemas.android.com/apk/res/android"> + <GridView + android:id="@+id/ingest_gridview" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:columnWidth="200px" + android:numColumns="auto_fit" + android:fastScrollEnabled="true" + android:background="@android:color/background_dark" + android:choiceMode="multipleChoiceModal" + android:stretchMode="columnWidth" /> + + <LinearLayout + android:id="@+id/ingest_warning_overlay" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_margin="20dip" + android:gravity="center" + android:orientation="horizontal" + android:visibility="gone" > + + <ImageView + android:id="@+id/ingest_warning_overlay_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:src="@android:drawable/ic_dialog_alert" /> + + <TextView + android:id="@+id/ingest_warning_overlay_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:textAppearance="?android:attr/textAppearanceSmall" /> + </LinearLayout> +</merge> + diff --git a/res/values/strings.xml b/res/values/strings.xml index 94f56460f..9cbf72f96 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -542,4 +542,10 @@ <!-- Status message shown when content from an external camera is being imported --> <string name="ingest_importing">Importing...</string> + + <!-- Status message shown when there is no content available to be imported --> + <string name="ingest_empty_device">There is no content available for importing on this device.</string> + + <!-- Status message shown when there is no MTP device connected --> + <string name="ingest_no_device">There is no MTP device connected</string> </resources> |