Соответствующий XML:
<LinearLayout
android:id="@+id/linear_layout_video_feed_list_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:layout_weight="2">
<ListView
android:id="@+id/list_video_feed"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</ListView>
</LinearLayout>
Соответствующий код:
linearLayoutVideoFeedListView = (LinearLayout) findViewById(R.id.linear_layout_video_feed_list_view);
lv = (ListView) findViewById(R.id.list_video_feed)
lv.setVisibility(GONE)
работает, но linearLayoutVideoFeedListView.setVisibility(GONE)
вызывает исключение нулевого указателя. Кто-нибудь знает почему?