Skip to content
Snippets Groups Projects
Commit 5ad0a02e authored by Maxime Graulich's avatar Maxime Graulich
Browse files

Android: fix padding on model list

parent 70cedc20
No related branches found
No related tags found
No related merge requests found
......@@ -6,15 +6,23 @@
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:contentDescription="icon"
android:src="@drawable/ic_launcher" />
android:layout_weight="25."
android:src="@drawable/ic_launcher"
android:paddingRight="10dp"
android:paddingTop="5dp"
android:paddingBottom="10dp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:orientation="vertical" >
android:orientation="vertical"
android:layout_weight="70." >
<TextView
android:id="@+id/title"
......
......@@ -41,7 +41,6 @@ public class ModelArrayAdapter extends ArrayAdapter<Model> {
if(m.getSummary() != null) description.setText(m.getSummary());
if(m.getBitmap() != null) icon.setImageBitmap(m.getBitmap());
else icon.setImageResource(R.drawable.ic_launcher);
icon.setPadding(10, 10, 10, 10);
return rowView;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment