New sample code for fragment support library.

Also tweak a few things to make the demos run on Donut.

Change-Id: I298fdf8fb0f12ee6db10e66657a22e19a527811a
This commit is contained in:
Dianne Hackborn
2011-02-01 10:38:02 -08:00
parent 5cfbd84e50
commit 9fd3b6e993
29 changed files with 2032 additions and 28 deletions

View File

@@ -65,11 +65,13 @@ public class ApiDemos extends ListActivity {
return myData;
String[] prefixPath;
String prefixWithSlash = prefix;
if (prefix.equals("")) {
prefixPath = null;
} else {
prefixPath = prefix.split("/");
prefixWithSlash = prefix + "/";
}
int len = list.size();
@@ -83,7 +85,7 @@ public class ApiDemos extends ListActivity {
? labelSeq.toString()
: info.activityInfo.name;
if (prefix.length() == 0 || label.startsWith(prefix)) {
if (prefixWithSlash.length() == 0 || label.startsWith(prefixWithSlash)) {
String[] labelPath = label.split("/");