Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4119788b authored by Michael Jurka's avatar Michael Jurka
Browse files

Add widget previews to the key guard widget picker

Bug: 7381803

Change-Id: I86946b7d0d75f8a1f89120600be2513bdf9026f0
parent ab3472f5
Loading
Loading
Loading
Loading
+28 −16
Original line number Diff line number Diff line
@@ -17,19 +17,31 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="wrap_content" >
  <TextView
     android:id="@+id/icon_and_label"
  <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:background="@drawable/appwidget_item_bg"
    android:layout_marginTop="2dip"
    android:layout_marginBottom="2dip"
    android:layout_marginLeft="8dip"
    android:layout_marginRight="8dip"
     android:layout_marginTop="4dip"
     android:layout_marginBottom="4dip"
     android:background="@drawable/appwidget_item_bg"
     android:minHeight="?android:attr/listPreferredItemHeightSmall"
    android:paddingLeft="16dip"
    android:paddingRight="16dip"
    android:paddingTop="16dip"
    android:paddingBottom="16dip" >
      <ImageView
       android:id="@+id/icon"
       android:layout_width="@dimen/appwidget_preview_width"
       android:layout_height="@dimen/appwidget_preview_height"
       android:scaleType="center" />
      <TextView
       android:id="@+id/label"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:paddingLeft="24dip"
       android:paddingBottom="8dip"
       android:textAppearance="?android:attr/textAppearanceMedium"
     android:gravity="center_vertical"
     android:drawablePadding="8dip"
     android:paddingStart="11dip"
     android:paddingEnd="11dip" />
       android:gravity="left|bottom" />
  </LinearLayout>
</FrameLayout>
+2 −0
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@
        android:id="@+id/layout_root"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingTop="2dip"
        android:paddingBottom="2dip"
        android:orientation="vertical" >
  <GridView android:layout_width="match_parent"
            android:layout_height="0dp"
+3 −0
Original line number Diff line number Diff line
@@ -54,4 +54,7 @@

    <dimen name="pager_tabs_padding">0dp</dimen>

    <!-- Size of AppWidget previews in KeyguardAppWidgetPickActivity -->
    <dimen name="appwidget_preview_width">140dip</dimen>
    <dimen name="appwidget_preview_height">80dip</dimen>
</resources>
+290 −230

File changed.

Preview size limit exceeded, changes collapsed.