cannot move android widget to top or bottom of screen -
i have custom widget have shrinked 100dp x 100dp have issue widget can set in middle of screen , cannot put on bottom or on top of screen
<?xml version="1.0" encoding="utf-8"?> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:minwidth="75dp" android:minheight="75dp" android:updateperiodmillis="18000000" android:initiallayout="@layout/widget" android:resizemode="none"> </appwidget-provider> <?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linerlay" android:layout_width="100dp" android:layout_height="100dp" android:background="@drawable/wid_bg" android:orientation="vertical"> <textview android:id="@+id/d" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:layout_marginright="15dp" android:layout_margintop="19dp" android:textcolor="#640909" android:textsize="17sp" android:textstyle="bold" android:layout_gravity="center" /> <textview android:id="@+id/sv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:paddingleft="10dp" android:paddingright="10dp" android:layout_marginleft="10dp" android:layout_margintop="5dp" android:textcolor="#ffffff" android:gravity="center" android:textsize="16sp" /> <textview android:id="@+id/t" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margintop="5dp" android:paddingleft="10dp" android:paddingright="10dp" android:textcolor="#ffffff" android:layout_gravity="center_horizontal" /> </linearlayout>
Comments
Post a Comment