私はこれらの 2 つのステートメントの間で混乱しています。違いは何ですか? また、それぞれをいつ使用できますか?
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View v = inflater.inflate(R.layout.activity_custom_lists1, parent);
と
View v = getLayoutInflater().inflater.inflate(R.layout.activity_custom_lists1, parent);