Merge "Cleaning up the stack sample widget"
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.example.android.stackwidget">
|
||||
<uses-sdk android:targetSdkVersion="11" android:minSdkVersion="11"/>
|
||||
<uses-sdk android:targetSdkVersion="14" android:minSdkVersion="11"/>
|
||||
<application android:label="StackWidget">
|
||||
<receiver android:name="StackWidgetProvider">
|
||||
<intent-filter>
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
-->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="@dimen/widget_margin">
|
||||
<StackView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/stack_view"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
18
samples/StackWidget/res/values-v14/dimens.xml
Normal file
18
samples/StackWidget/res/values-v14/dimens.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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.
|
||||
-->
|
||||
<resources>
|
||||
<dimen name="widget_margin">0dp</dimen>
|
||||
</resources>
|
||||
18
samples/StackWidget/res/values/dimens.xml
Normal file
18
samples/StackWidget/res/values/dimens.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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.
|
||||
-->
|
||||
<resources>
|
||||
<dimen name="widget_margin">8dp</dimen>
|
||||
</resources>
|
||||
@@ -15,11 +15,13 @@
|
||||
-->
|
||||
<appwidget-provider
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:minWidth="150dip"
|
||||
android:minHeight="150dip"
|
||||
android:minWidth="110dip"
|
||||
android:minHeight="110dip"
|
||||
android:updatePeriodMillis="3600000"
|
||||
android:previewImage="@drawable/preview"
|
||||
android:initialLayout="@layout/widget_layout"
|
||||
android:autoAdvanceViewId="@id/stack_view"
|
||||
android:resizeMode="horizontal|vertical">
|
||||
android:autoAdvanceViewId="@id/stack_view">
|
||||
</appwidget-provider>
|
||||
<!--to enable resizing:
|
||||
android:resizeMode="horizontal|vertical" -->
|
||||
|
||||
Reference in New Issue
Block a user