android - Widget size different while testing on local and publishing - same phone -


i have created small widget want 80w x 100h in size. on phone works fine when testing un-signed. publish app , test widget on phone 160w x 200h...

my widget background 80w x 100h.

my widget provider xml file below

<?xml version="1.0" encoding="utf-8"?> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:updateperiodmillis="10000"     android:minwidth="80px"     android:minheight="100px"     android:initiallayout="@layout/widget"/>  widget.xml layout  <?xml version="1.0" encoding="utf-8"?> <relativelayout   xmlns:android="http://schemas.android.com/apk/res/android"   android:id="@+id/widget_base"   android:layout_width="wrap_content"   android:layout_height="wrap_content"   android:padding="10dip"   android:orientation="vertical"   android:background="@drawable/widget_background">   <textview     android:id="@+id/widget_text"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:text="take snap"     android:textcolor="#000000"     android:layout_alignparenttop="true"     android:layout_centerinparent="true"/>   <imagebutton     android:id="@+id/widget_snap"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_centerinparent="true"     android:layout_below="@id/widget_text"     android:background="@xml/widget_button_state"     />     </relativelayout> 

i think should use dp instead of px (using px idea) :

android:minwidth="80dp" android:minheight="100dp" 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -