Skip to content
Snippets Groups Projects
Commit c8fc1728 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Duncan McNamara
Browse files

Widgets: update the preview

parent ed956bec
No related branches found
No related tags found
1 merge request!1363New widgets
application/resources/src/main/res/drawable/widget_preview_b.png

27.7 KiB

application/resources/src/main/res/drawable/widget_preview_mini.png

68.5 KiB

application/resources/src/main/res/drawable/widget_preview_w.png

26.2 KiB

<?xml version="1.0" encoding="utf-8"?><!--
~ *************************************************************************
~ widget_mini.xml
~ **************************************************************************
~ Copyright © 2022 VLC authors and VideoLAN
~ Author: Nicolas POMEPUY
~ This program is free software; you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation; either version 2 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program; if not, write to the Free Software
~ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
~ ***************************************************************************
~
~
-->
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout
android:id="@+id/widget_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/grey900">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_margin="8dp"
android:gravity="center_horizontal"
android:orientation="vertical">
<TextView
android:id="@+id/app_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="16dp"
android:fontFamily="sans-serif-medium"
android:gravity="center"
android:text="@string/widget_default_text"
android:textColor="@color/white"
android:textSize="16sp" />
<ImageButton
android:id="@+id/play_pause"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/widget_touch_background"
android:clickable="true"
android:contentDescription="@string/resume_playback_short_title"
android:scaleType="centerInside"
android:src="@drawable/ic_widget_play" />
</LinearLayout>
</RelativeLayout>
</layout>
\ No newline at end of file
......@@ -4,6 +4,5 @@
android:resizeMode="horizontal|vertical"
android:minResizeWidth="180dp"
android:updatePeriodMillis="86400000"
android:initialLayout="@layout/widget_old"
android:previewImage="@drawable/widget_preview_b">
android:initialLayout="@layout/widget_old">
</appwidget-provider>
\ No newline at end of file
......@@ -25,12 +25,12 @@
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:configure="org.videolan.vlc.widget.MiniPlayerConfigureActivity"
android:widgetFeatures="reconfigurable"
android:initialLayout="@layout/widget_mini"
android:initialLayout="@layout/widget_mini_initial"
android:minWidth="120dp"
android:minHeight="48dp"
android:minResizeWidth="120dp"
android:minResizeHeight="48dp"
android:previewImage="@drawable/widget_preview_w"
android:previewImage="@drawable/widget_preview_mini"
android:resizeMode="horizontal|vertical"
android:targetCellWidth="4"
android:targetCellHeight="1"
......
......@@ -4,6 +4,5 @@
android:resizeMode="horizontal|vertical"
android:minResizeWidth="180dp"
android:updatePeriodMillis="86400000"
android:initialLayout="@layout/widget_old"
android:previewImage="@drawable/widget_preview_w">
android:initialLayout="@layout/widget_old">
</appwidget-provider>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment