am a032c901: Provide a public resource with the dimensions of the large notification icon.

* commit 'a032c90189d9ac28b65af4fe5f8b34f182441335':
  Provide a public resource with the dimensions of the large notification icon.
This commit is contained in:
Joe Onorato
2011-01-16 11:06:29 -08:00
committed by Android Git Automerger
8 changed files with 38 additions and 11 deletions

View File

@@ -11473,6 +11473,28 @@
visibility="public"
>
</field>
<field name="notification_large_icon_height"
type="int"
transient="false"
volatile="false"
value="17104902"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="notification_large_icon_width"
type="int"
transient="false"
volatile="false"
value="17104901"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="thumbnail_height"
type="int"
transient="false"

View File

@@ -68,4 +68,10 @@
is along the minor axis (that is the screen is portrait). This may
be either a fraction or a dimension. -->
<item type="dimen" name="dialog_min_width_minor">95%</item>
<!-- The width of the big icons in notifications. -->
<dimen name="notification_large_icon_width">60dp</dimen>
<!-- The width of the big icons in notifications. -->
<dimen name="notification_large_icon_height">60dp</dimen>
</resources>

View File

@@ -1470,6 +1470,8 @@
<public type="dimen" name="dialog_min_width_major" />
<public type="dimen" name="dialog_min_width_minor" />
<public type="dimen" name="notification_large_icon_width" />
<public type="dimen" name="notification_large_icon_height" />
<!-- Standard content view for a {@link android.app.ListFragment}.
If you are implementing a subclass of ListFragment with your

View File

@@ -18,8 +18,8 @@
<ImageView
android:id="@+id/large_icon"
android:layout_width="@dimen/notification_large_icon_width"
android:layout_height="@dimen/notification_large_icon_height"
android:layout_width="@android:dimen/notification_large_icon_width"
android:layout_height="@android:dimen/notification_large_icon_height"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:scaleType="center"

View File

@@ -25,8 +25,8 @@
<ImageView
android:id="@+id/large_icon"
android:layout_width="@dimen/notification_large_icon_width"
android:layout_height="@dimen/notification_large_icon_height"
android:layout_width="@android:dimen/notification_large_icon_width"
android:layout_height="@android:dimen/notification_large_icon_height"
android:scaleType="center"
android:visibility="gone"
/>

View File

@@ -29,8 +29,8 @@
<ImageView
android:id="@+id/large_icon"
android:layout_width="@dimen/notification_large_icon_height"
android:layout_height="@dimen/notification_large_icon_width"
android:layout_width="@android:dimen/notification_large_icon_height"
android:layout_height="@android:dimen/notification_large_icon_width"
android:scaleType="center"
android:visibility="gone"
/>

View File

@@ -16,10 +16,6 @@
*/
-->
<resources>
<!-- The width of the big icons in notifications. -->
<dimen name="notification_large_icon_width">60dp</dimen>
<!-- The width of the big icons in notifications. -->
<dimen name="notification_large_icon_height">60dp</dimen>
<!-- The width of the ticker, including the icon -->
<dimen name="notification_ticker_width">360dp</dimen>
<!-- Status bar panel bottom offset (height of status bar - overlap) -->

View File

@@ -208,7 +208,8 @@ public class TabletTicker
final Resources res = mContext.getResources();
final FrameLayout view = new FrameLayout(mContext);
final int width = res.getDimensionPixelSize(R.dimen.notification_ticker_width);
final int height = res.getDimensionPixelSize(R.dimen.notification_large_icon_height);
final int height = res.getDimensionPixelSize(
android.R.dimen.notification_large_icon_height);
int windowFlags = WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
| WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
| WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS;