пятница, 30 марта 2012 г.

Could not load widget

и подобные проблемы на виджетах были, если забыть указать протокол в xmlns:android="http://schemas.android.com/apk/res/android"

пятница, 23 марта 2012 г.

dull...

E/AndroidRuntime(6467): FATAL EXCEPTION: main
E/AndroidRuntime(6467): java.lang.NullPointerException
E/AndroidRuntime(6467): at android.text.BoringLayout.isBoring(BoringLayout.java:228)

LinearLayout inside the ScrollView

...
< ScrollView
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1.0"

>
< LinearLayout
android:id="@+id/toucheble_layout"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_below="@+id/calendar_footer"
android:orientation="vertical"
android:layout_weight="1.0"
>
...




LinearLayout не заполняет весь scrollView по высоте. Решение - добавить android:fillViewport="true" в ScrollView
___
И - да, GridView (как и ListView) не следует помещать в ScrollView, он сам по себе умеет прокручиваться.

среда, 14 марта 2012 г.

Failed to install *.apk on device ***: timeout

Лечение: увеличить таймаут подключения для ADB. В eclispe: Window -> Preferences -> Android -> DDMS -> ADB Connection timeout (ms)

Проблема часто встречается при работе с Galaxy Tab