On Sep 25, 10:57 am, Manjunatha M <man...@gmail.com> wrote:
> I tried with the following xml.
>
> <?xml version="1.0" encoding="utf-8"?>
> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
> android:minWidth="146dp"
> android:minHeight="146dp"
> android:focusable="true"
> android:updatePeriodMillis="86400000"
> android:initialLayout="@layout/widget_new"
> />
>
> But no luck.. Could you please help me on this??
First I want to say thanks for bringing me on the right track, I had
exactly the same problem. The solution was to put the line in another
XML file, in your case that file should probably be widget_new.xml. My
complete file looks like this:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:id="@+id/widget"
android:layout_width="72dip"
android:layout_height="72dip"
android:orientation="vertical"
android:focusable="true"
style="@style/WidgetBackground">
<TextView
android:id="@+id/message"
android:layout_width="fill_parent"
android:layout_height="68dip"
android:padding="3dip"
android:gravity="center"
android:text="@string/widget_loading"
style="@style/Text.Saldo" />
<TextView
android:id="@+id/padding"
android:layout_width="fill_parent"
android:layout_height="4dip"
android:text=""
style="@style/Text.Saldo" />
</LinearLayout>
regards Henrik
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---