Custom Spinner Adapter Not Working
I have a problem with my custom spinner and Spinner Adapter. It crashes after I launch it.I wanted to change the color and background color of the text at my spinner so I created a
Solution 1:
You need to change this
Viewrow= inflater.inflate(R.layout.my_spinner, parent, false);
TextViewtv= (TextView) findViewById(R.id.spinner_textView);
to
Viewrow= inflater.inflate(R.layout.my_spinner, parent, false);
TextViewtv= (TextView)row.findViewById(R.id.spinner_textView);
One of the mistakes. Without stacktrace its difficult to track the mistakes. If you have further problems suggest you post the stacktrace
Post a Comment for "Custom Spinner Adapter Not Working"