summaryrefslogtreecommitdiffstats
path: root/apps/Development/res
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2010-04-05 14:59:45 -0700
committerMarco Nelissen <marcone@google.com>2010-04-05 15:53:43 -0700
commit3021e718e2cea50b88f3121a5b3a39c2fd32cc03 (patch)
treecb949cb6de5830d0a53af3c0c2d6bc773b23d447 /apps/Development/res
parentc125ef209b3e15e94e967a6639bf700b46fd6a1c (diff)
downloadandroid_development-3021e718e2cea50b88f3121a5b3a39c2fd32cc03.tar.gz
android_development-3021e718e2cea50b88f3121a5b3a39c2fd32cc03.tar.bz2
android_development-3021e718e2cea50b88f3121a5b3a39c2fd32cc03.zip
Rename the "Media Scanner" DevTool to "Media Provider", and add
functionality to insert random filler data in to the database. Change-Id: I632c7c8fea8aceca7b71dab88f3b01ed7ae49a92
Diffstat (limited to 'apps/Development/res')
-rw-r--r--apps/Development/res/layout/media_scanner_activity.xml49
-rw-r--r--apps/Development/res/values/strings.xml5
2 files changed, 46 insertions, 8 deletions
diff --git a/apps/Development/res/layout/media_scanner_activity.xml b/apps/Development/res/layout/media_scanner_activity.xml
index 974f68378..480684355 100644
--- a/apps/Development/res/layout/media_scanner_activity.xml
+++ b/apps/Development/res/layout/media_scanner_activity.xml
@@ -4,9 +4,9 @@
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,12 +14,45 @@
limitations under the License.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal">
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/title"
+ android:textSize="16sp"
+ android:textStyle="bold"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <Button
+ android:layout_width="160dip"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:text="@string/scancard"
+ android:onClick="startScan" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="horizontal"
+ android:layout_marginTop="30dip">
+
+ <EditText
+ android:id="@+id/numsongs"
+ android:layout_width="150dip"
+ android:layout_height="wrap_content"
+ android:hint="@string/numsongs"
+ android:numeric="integer"
+ />
+
+ <Button
+ android:id="@+id/insertbutton"
+ android:layout_width="150dip"
+ android:layout_height="wrap_content"
+ android:onClick="insertItems" />
- <TextView android:id="@+id/title" android:textSize="16sp" android:textStyle="bold"
- android:layout_width="match_parent" android:layout_height="wrap_content" />
+ </LinearLayout>
</LinearLayout>
diff --git a/apps/Development/res/values/strings.xml b/apps/Development/res/values/strings.xml
index 1bb65cfde..ec590a8dc 100644
--- a/apps/Development/res/values/strings.xml
+++ b/apps/Development/res/values/strings.xml
@@ -208,4 +208,9 @@
<string name="bad_behavior_anr_service_label">ANR starting a Service</string>
<string name="bad_behavior_anr_system_label">System ANR (in ActivityManager)</string>
<string name="bad_behavior_wedge_system_label">Wedge system (5 minute system ANR)</string>
+
+ <!-- MediaScannerActivity -->
+ <string name="scancard">Scan SD card</string>
+ <string name="numsongs"># of albums</string>
+ <string name="insertbutton">Insert %1s albums</string>
</resources>