Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

I keep getting: android.content.res.Resources$NotFoundException: Resource ID #0x0 #6

Description

@hackathoner

Here is my code

        NavigationListView navigationListView = (NavigationListView) findViewById(R.id.slider);
        NavigationItem item1 = new NavigationItem("Home"); // Just a piece of text
        NavigationItem item2 = new NavigationItem("Chats"); // Just a piece of text
        NavigationItem item3 = new NavigationItem("Create Listing"); // Just a piece of text
        NavigationItem item4 = new NavigationItem("Settings"); // Just a piece of text
        navigationListView.addNavigationItem(item1);
        navigationListView.addNavigationItem(item2);
        navigationListView.addNavigationItem(item3);
        navigationListView.addNavigationItem(item4);

Layout

<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" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context="me.anuraag.barter.HomePage">

    <TextView android:text="@string/hello_world" android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/textview"
        />
    <uk.me.lewisdeane.lnavigationdrawer.NavigationListView

        android:layout_height="match_parent"
        android:layout_width="wrap_content"
        android:id="@+id/slider"
        android:layout_gravity="start"
        android:divider="@android:color/transparent"
        android:dividerHeight="0dp"
        android:background="#FFFFFF"
        />

</RelativeLayout>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions