I have a very simple widget with the following layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@layout/myshape" >
<TextView
android:id="@+id/tvTime"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal|center_vertical"
android:textColor="#FFFFFF" />
</LinearLayout>
As far as I know the TextView
should be as large as the widget (e.g. widget 2x1, 1x1...). Instead the text size doesn't change at all.
Can any one tell me where the problem is?
thanx in advance.