mirror of
https://github.com/PranshulGG/WeatherMaster.git
synced 2026-10-23 11:33:42 -05:00
rename CurrentAndHourlyWidget to WeatherWidget and FroggyWidget to WidgetPill and add widget shapes and preview assets
This commit is contained in:
1 parent
339edcd45a
commit
31d8a387dd
9 files changed
+53
-8
No files matched your search
Generated
+1
-1
@@ -4,7 +4,7 @@
|
||||
<selectionStates>
|
||||
<SelectionState runConfigName="app">
|
||||
<option name="selectionMode" value="DROPDOWN" />
|
||||
<DropdownSelection timestamp="2026-05-23T16:12:20.792052600Z">
|
||||
<DropdownSelection timestamp="2026-05-25T09:26:35.198520700Z">
|
||||
<Target type="DEFAULT_BOOT">
|
||||
<handle>
|
||||
<DeviceId pluginId="LocalEmulator" identifier="path=C:\Users\hukam\.android\avd\Pixel_10_Pro.avd" />
|
||||
|
||||
Generated
-1
@@ -1,4 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="temurin-21" project-jdk-type="JavaSDK">
|
||||
|
||||
@@ -55,8 +55,8 @@
|
||||
|
||||
<!--WIDGETS-->
|
||||
<receiver
|
||||
android:name=".widgets.current.CurrentAndHourlyWidgetReceiver"
|
||||
android:label="Current and hourly weather"
|
||||
android:name=".widgets.weather.WeatherWidgetReceiver"
|
||||
android:label="Weather"
|
||||
android:exported="true">
|
||||
|
||||
<intent-filter>
|
||||
@@ -65,12 +65,12 @@
|
||||
|
||||
<meta-data
|
||||
android:name="android.appwidget.provider"
|
||||
android:resource="@xml/current_and_hourly_widget_info" />
|
||||
android:resource="@xml/weather_widget_info" />
|
||||
</receiver>
|
||||
|
||||
<receiver
|
||||
android:name=".widgets.froggy.FroggyWidgetReceiver"
|
||||
android:label="Froggy current weather"
|
||||
android:name=".widgets.pill.WidgetPillReceiver"
|
||||
android:label="Weather"
|
||||
android:exported="true">
|
||||
|
||||
<intent-filter>
|
||||
@@ -79,7 +79,7 @@
|
||||
|
||||
<meta-data
|
||||
android:name="android.appwidget.provider"
|
||||
android:resource="@xml/froggy_widget_info" />
|
||||
android:resource="@xml/widget_pill_info" />
|
||||
</receiver>
|
||||
</application>
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<!--
|
||||
~ Copyright (C) 2026 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.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="380dp"
|
||||
android:height="380dp"
|
||||
android:viewportWidth="380"
|
||||
android:viewportHeight="380">
|
||||
<path
|
||||
android:pathData="M116.12,71.79C169.16,18.74 255.17,18.74 308.21,71.79C361.26,124.83 361.26,210.84 308.21,263.88L263.88,308.21C210.84,361.26 124.83,361.26 71.79,308.21C18.74,255.17 18.74,169.16 71.79,116.12L116.12,71.79Z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="999dp" />
|
||||
<solid android:color="?android:attr/colorBackground"/>
|
||||
</shape>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 127 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 184 KiB |
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="16dp" />
|
||||
<solid android:color="?android:attr/colorBackground"/>
|
||||
</shape>
|
||||
@@ -0,0 +1,10 @@
|
||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:minWidth="100dp"
|
||||
android:minHeight="100dp"
|
||||
android:minResizeWidth="40dp"
|
||||
android:minResizeHeight="40dp"
|
||||
android:updatePeriodMillis="0"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:widgetCategory="home_screen"
|
||||
android:previewImage="@drawable/weather_pill_preview"
|
||||
/>
|
||||
Reference in new issue
Block a user