update widget design

This commit is contained in:
Andrew Dolgov 2015-12-02 21:14:35 +03:00
parent e0a74a352b
commit e9802a9ed2
8 changed files with 7 additions and 30 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 798 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 731 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 856 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1005 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -1,24 +0,0 @@
<!--
Copyright 2011 Google Inc.
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.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/appwidget_bg_pressed" android:state_pressed="true" />
<item android:drawable="@drawable/appwidget_dark_bg_focused"
android:state_focused="true"
android:state_enabled="true"
android:state_window_focused="true" />
<item android:drawable="@drawable/appwidget_dark_bg" />
</selector>

View File

@ -5,28 +5,29 @@
android:padding="@dimen/widget_margin" >
<LinearLayout
android:background="@drawable/appwidget_dark_bg_clickable"
android:background="@android:color/white"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="8dp"
android:orientation="vertical" >
<ImageView
android:layout_width="36dp"
android:layout_height="36dp"
android:padding="4dp"
android:layout_width="46dp"
android:layout_height="46dp"
android:layout_weight="1"
android:layout_gravity="center_horizontal"
android:src="@drawable/ic_launcher" />
<TextView
android:padding="4dp"
android:background="#6482af"
android:id="@+id/widget_unread_counter"
android:layout_weight="0"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:gravity="center_horizontal"
android:text=""
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@android:color/primary_text_dark"
android:textSize="13sp" />