I am displaying List of courses with dummy data. I am using custom layout to show the course. Fetching List of object from the server. Everything is working fine while in the debug mode or running an app on device.
Now When I Build signed APK for Production Mode The data in the list doesn't show up. The data is coming from the server and is also successfully mapped into the list. But It doesn't show up.
Here is the code of my custom layout file.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/tvCourseName"
android:gravity="center"
android:textSize="22sp"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:textColor="@color/main"
android:background="@drawable/background_course_name"
android:text="@string/english"/>
</RelativeLayout>
And here is the code for Adapter.
public View getView(int position, View convertView, ViewGroup parent) {
LayoutInflater inflater = LayoutInflater.from(getContext());
View view = inflater.inflate(R.layout.course_row_layout,parent,false);
response = getItem(position);
tvCourseName = (TextView)view.findViewById(R.id.tvCourseName);
tvCourseName.setText(response.getTitle());
return view;
}