diff options
author | Winson Chung <winsonc@google.com> | 2013-07-26 15:07:49 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2013-07-26 15:07:49 -0700 |
commit | 82dfe585143b8cc8b082e4ba42c58a66187994dd (patch) | |
tree | 86efd15f64c0534e8a4038c15295bd0a4ac24ffd /res/layout | |
parent | bffe745b1e195deedc1dcc60f37950b3b0b4c652 (diff) | |
download | android_packages_apps_Trebuchet-82dfe585143b8cc8b082e4ba42c58a66187994dd.tar.gz android_packages_apps_Trebuchet-82dfe585143b8cc8b082e4ba42c58a66187994dd.tar.bz2 android_packages_apps_Trebuchet-82dfe585143b8cc8b082e4ba42c58a66187994dd.zip |
Adding support for custom page indicator markers.
Change-Id: I057b0cccc4194157d92ebb123af2afaf94fb5415
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/now_page_indicator_marker.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/res/layout/now_page_indicator_marker.xml b/res/layout/now_page_indicator_marker.xml new file mode 100644 index 000000000..7d0562743 --- /dev/null +++ b/res/layout/now_page_indicator_marker.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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.launcher3.PageIndicatorMarker + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + <ImageView + android:id="@+id/inactive" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/now_page" + /> + <ImageView + android:id="@+id/active" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/now_page" + android:alpha="0" + /> +</com.android.launcher3.PageIndicatorMarker> |