diff options
Diffstat (limited to 'library/main/res/layout')
-rw-r--r-- | library/main/res/layout/suw_glif_header.xml | 36 | ||||
-rw-r--r-- | library/main/res/layout/suw_glif_list_template.xml | 24 | ||||
-rw-r--r-- | library/main/res/layout/suw_glif_template.xml | 13 |
3 files changed, 61 insertions, 12 deletions
diff --git a/library/main/res/layout/suw_glif_header.xml b/library/main/res/layout/suw_glif_header.xml new file mode 100644 index 0000000..71283b2 --- /dev/null +++ b/library/main/res/layout/suw_glif_header.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (C) 2015 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <ImageView + android:id="@+id/suw_layout_icon" + style="@style/SuwGlifIcon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@null" /> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwGlifHeaderTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + +</LinearLayout> diff --git a/library/main/res/layout/suw_glif_list_template.xml b/library/main/res/layout/suw_glif_list_template.xml new file mode 100644 index 0000000..3756898 --- /dev/null +++ b/library/main/res/layout/suw_glif_list_template.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (C) 2015 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. +--> + +<com.android.setupwizardlib.view.StickyHeaderListView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:suwHeader="@layout/suw_glif_header" /> diff --git a/library/main/res/layout/suw_glif_template.xml b/library/main/res/layout/suw_glif_template.xml index d9be0b8..f867e50 100644 --- a/library/main/res/layout/suw_glif_template.xml +++ b/library/main/res/layout/suw_glif_template.xml @@ -27,18 +27,7 @@ android:layout_height="wrap_content" android:orientation="vertical"> - <ImageView - android:id="@+id/suw_layout_icon" - style="@style/SuwGlifIcon" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:contentDescription="@null" /> - - <TextView - android:id="@+id/suw_layout_title" - style="@style/SuwGlifHeaderTitle" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> + <include layout="@layout/suw_glif_header" /> <FrameLayout android:id="@+id/suw_layout_content" |