diff options
author | Romain Guy <romainguy@google.com> | 2010-10-15 13:57:28 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-10-15 13:57:28 -0700 |
commit | e5ebcb0107a939395e03592fd44c746cd09e311d (patch) | |
tree | 1ee2cc9fb92d3de28f40658df2a7df1da79f64f8 /tests/HwAccelerationTest/res/layout | |
parent | c65217e4ec3e6c80834988ec3bc66a90778ee4b0 (diff) | |
download | frameworks_base-e5ebcb0107a939395e03592fd44c746cd09e311d.zip frameworks_base-e5ebcb0107a939395e03592fd44c746cd09e311d.tar.gz frameworks_base-e5ebcb0107a939395e03592fd44c746cd09e311d.tar.bz2 |
Fix clipping issue in StackView.
Change-Id: I7ec28f25c3993a2bd7ef6399ba1923839d239905
Diffstat (limited to 'tests/HwAccelerationTest/res/layout')
-rw-r--r-- | tests/HwAccelerationTest/res/layout/flipper_item.xml | 39 | ||||
-rw-r--r-- | tests/HwAccelerationTest/res/layout/widget.xml | 46 |
2 files changed, 85 insertions, 0 deletions
diff --git a/tests/HwAccelerationTest/res/layout/flipper_item.xml b/tests/HwAccelerationTest/res/layout/flipper_item.xml new file mode 100644 index 0000000..43a7bbf --- /dev/null +++ b/tests/HwAccelerationTest/res/layout/flipper_item.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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. +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/widget_asset" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:focusable="true"> + + <ImageView android:id="@+id/widget_image" + android:layout_width="91dip" + android:layout_height="61dip" + android:layout_margin="8dip" + android:background="@android:color/white" /> + + <TextView android:id="@+id/widget_text" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_toRightOf="@id/widget_image" + android:padding="6dip" + android:textSize="12sp" + android:textColor="@android:color/black" + android:fadingEdge="vertical" + android:fadingEdgeLength="30dip" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/tests/HwAccelerationTest/res/layout/widget.xml b/tests/HwAccelerationTest/res/layout/widget.xml new file mode 100644 index 0000000..503face --- /dev/null +++ b/tests/HwAccelerationTest/res/layout/widget.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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:id="@+id/widget_root" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:focusable="true" + android:background="@drawable/appwidget_background"> + + <ImageView + android:id="@+id/widget_top" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="@drawable/widget_title_bg" + android:padding="6dip" + android:src="@drawable/widget_header" + android:scaleType="center" /> + + <ViewFlipper + android:id="@+id/flipper" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:addStatesFromChildren="true" + android:flipInterval="2000" + android:autoStart="true" + android:inAnimation="@anim/fade_in" + android:outAnimation="@anim/fade_out" + android:background="@drawable/green_gradient" + android:measureAllChildren="false" /> + +</LinearLayout> |