в моем приложении i use list view with setonclickListener
. если я пытаюсь перейти к следующему занятию, нажав кнопку с изображением, я получаю ошибку android your content must have a listview whose id attribute is 'android.r.id.list
, в моем следующем занятии у меня будет просмотр текста и видео (в формате xml). ошибка в ddms указывает на следующее действие oncreate ().
моя первая деятельность xml:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="100dp" android:descendantFocusability="blocksDescendants">
<image view>....</image view>
<LinearLayout android:orientation="vertical" android:descendantFocusability="blocksDescendants"
<ImageButton android:id="@+id/imageButton1 ... ></ImageButton>
<ImageButton android:id="@+id/imageButton2 ... ></ImageButton>
<ImageButton android:id="@+id/imageButton3 ... ></ImageButton>
</LinearLayout>
</RelativeLayout>
LogCat:
06-10 16:00:23.526: ERROR/AndroidRuntime(3857): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
06-10 16:00:23.526: ERROR/AndroidRuntime(3857): at android.app.ListActivity.onContentChanged(ListActivity.java:236)
06-10 16:00:23.526: ERROR/AndroidRuntime(3857): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:201)
06-10 16:00:23.526: ERROR/AndroidRuntime(3857): at android.app.Activity.setContentView(Activity.java:1622)
06-10 16:00:23.526: ERROR/AndroidRuntime(3857): at com.exercise.AndroidList.videoview.onCreate(videoview.java:11)
06-10 16:00:23.526: ERROR/AndroidRuntime(3857): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
videoview - мое следующее занятие. пожалуйста, помогите мне.