私のJavaクラスのいずれかのビューを設定しようとしています。 SetLayoutManagerとLinear LayoutManagerでエラーが発生します。私は初心者ですので、どんな助けでも大歓迎です。このようなシンボルを解決できないSetLayoutManager - Android
package com.bignerdranch.android.criminalintent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class CrimeListFragment extends Fragment {
private RecyclerView mCrimeRecyclerView;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_crime_list, container, false);
mCrimeRecyclerView = (RecyclerView) view.findViewById(R.id.crime_recycler_view);
mCrimeRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
return view;
}
}
あなたは私たちに、エラーとスタックトレースを表示することができますか? – Gauthier