diff options
author | Chris Wren <cwren@android.com> | 2012-09-26 10:25:53 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2012-09-26 11:52:00 -0400 |
commit | b8235acb0fdc33c50e864ec801b93b9750d7600c (patch) | |
tree | 21222f984fc0a5653732609d35fb731beb76ef4c /res/layout | |
parent | cbbd63fc12c8e6bf4f329d82b4d101bf5e00643f (diff) | |
download | PhotoTable-b8235acb0fdc33c50e864ec801b93b9750d7600c.tar.gz |
refine handling of exceptional cases: no settings, network failure, load error.
Bug: 7194196
Bug: 7152553
Change-Id: I4335e46fe3a61a09ce3b14a02bb199a84126e53f
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/bummer.xml | 34 | ||||
-rw-r--r-- | res/layout/settingslist.xml | 22 |
2 files changed, 56 insertions, 0 deletions
diff --git a/res/layout/bummer.xml b/res/layout/bummer.xml new file mode 100644 index 0000000..13a7c00 --- /dev/null +++ b/res/layout/bummer.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The Android Open Source Project + + 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. + See the License for the specific language governing permissions and + limitations under the License. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + > + + <com.android.dreams.phototable.BummerView + android:id="@+id/bummer" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawableLeft="@android:drawable/stat_sys_warning" + android:textColor="@android:color/white" + android:textSize="20sp" + android:text="@string/need_to_configure" + android:drawablePadding="8dp" + android:alpha="0.5" + android:visibility="invisible" + /> + +</FrameLayout> diff --git a/res/layout/settingslist.xml b/res/layout/settingslist.xml new file mode 100644 index 0000000..2d82b99 --- /dev/null +++ b/res/layout/settingslist.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The Android Open Source Project + + 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. + See the License for the specific language governing permissions and + limitations under the License. +--> + <ListView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingLeft="16dp" + android:paddingRight="16dp" + /> |