HI Prasanth, you can try this
Step 1. Create an object for the Inflater layout, as shown below:
LayoutInflater mInflater;
Step2: Analyze by passing context
Context context=MyActivity.getApplicationContext();
mInflater = LayoutInflater.from(context);
Step 3: In the meythod view mode, you can see the view as
public View getView(int arg0, View myView, ViewGroup parent) {
if (convertView == null) {
myView = mInflater.inflate(R.layout.mytest, null);
}
source
share