Oh! Android -Play & Dev

OhAndroid – это Google Android Fan, все о телефонах Android, Android Wear, Android Dev и приложениях для Android

Не удается щелкнуть кнопки за DrawerLayout

Вот мой xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".Main" android:background="@android:color/black" > <RelativeLayout android:id="@+id/layout" android:layout_width="match_parent" android:layout_height="match_parent" > <ImageButton android:id="@+id/calendar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@+id/about" android:layout_centerHorizontal="true" android:background="@drawable/calendar" /> <ImageButton android:id="@+id/okan" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@+id/calendar" android:layout_marginLeft="20dp" android:layout_toRightOf="@+id/calendar" android:background="@drawable/okanliyiz"/> <ImageButton android:id="@+id/about" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="20dp" android:layout_marginTop="140dp" android:layout_toLeftOf="@+id/calendar" android:background="@drawable/info" /> </RelativeLayout> <android.support.v4.widget.DrawerLayout android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:clickable="false" > <FrameLayout android:id="@+id/content_frame" android:layout_width="match_parent" android:layout_height="match_parent" android:clickable="false" /> <ListView […]

Ошибка ADT при появлении графического макета Strange Eclipse

Eclipse ADT дает мне пустые сообщения об ошибках, каждый раз, когда я нажимаю окно «Графическое макет». Вот скриншот: Ниже приведены сведения о первой ошибке: java.lang.NullPointerException at com.android.layoutlib.bridge.impl.RenderSessionImpl.getDefaultProperties(RenderSessionImpl.java:1476) at com.android.layoutlib.bridge.BridgeRenderSession.getDefaultProperties(BridgeRenderSession.java:68) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.ViewHierarchy.getDefaultProperties(ViewHierarchy.java:710) at com.android.ide.eclipse.adt.internal.editors.layout.properties.XmlProperty.getStringValue(XmlProperty.java:209) at com.android.ide.eclipse.adt.internal.editors.layout.properties.XmlProperty.getValue(XmlProperty.java:221) at com.android.ide.eclipse.adt.internal.editors.layout.properties.BooleanXmlPropertyEditor.paint(BooleanXmlPropertyEditor.java:52) at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1309) at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1151) at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1094) at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$200(PropertyTable.java:64) at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:187) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062) […]