ダミーデータのあるコースのリストを表示しています。コースを表示するには、カスタム レイアウトを使用しています。サーバからオブジェクトのリストをフェッチする。 デバッグモードまたはデバイス上のアプリ を実行中は、すべて正常に動作しています。Androidリストの表示データがプロダクションモードで表示されないAPK
私はプロダクションモードのために署名APKをビルドするときに今リスト のデータは表示されません。データはサーバーから送信され、 もリストに正常にマップされています。しかしそれは現れません。ここで
私のカスタムレイアウトファイルのコードです。
<?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>
ここにアダプターのコードを示します。
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;
}
からエンティティ・クラスまたはカスタマイズしたビューを維持しようとは、あなたのlogcatとGradleのファイルとカラーファイルすぎ –
編集質問を投稿し、必要なファイルに –
ます。http提供://のstackoverflowを。 com/questions/31590714/getcolorint-id-deprecated-on-android-6-0-marshmallow-api-23 –