Layout improvement

This commit is contained in:
M66B 2016-01-30 20:44:58 +01:00
parent 12cbb42224
commit b12518f906
2 changed files with 6 additions and 8 deletions

View File

@ -65,7 +65,7 @@ public class AccessAdapter extends CursorAdapter {
final TextView tvDest = (TextView) view.findViewById(R.id.tvDest); final TextView tvDest = (TextView) view.findViewById(R.id.tvDest);
// Set values // Set values
tvTime.setText(new SimpleDateFormat("HH:mm:ss").format(time)); tvTime.setText(new SimpleDateFormat("dd HH:mm").format(time));
if (block < 0) if (block < 0)
ivBlock.setImageDrawable(null); ivBlock.setImageDrawable(null);
else else

View File

@ -8,16 +8,15 @@
<TextView <TextView
android:id="@+id/tvTime" android:id="@+id/tvTime"
android:layout_width="50dp" android:layout_width="56dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:textAppearance="@android:style/TextAppearance.Material.Small" android:textAppearance="@android:style/TextAppearance.Material.Small" />
android:textSize="12sp" />
<ImageView <ImageView
android:id="@+id/ivBlock" android:id="@+id/ivBlock"
android:layout_width="16dp" android:layout_width="20dp"
android:layout_height="16dp" android:layout_height="20dp"
android:layout_gravity="center_vertical" /> android:layout_gravity="center_vertical" />
<TextView <TextView
@ -28,6 +27,5 @@
android:layout_weight="1" android:layout_weight="1"
android:ellipsize="end" android:ellipsize="end"
android:singleLine="true" android:singleLine="true"
android:textAppearance="@android:style/TextAppearance.Material.Small" android:textAppearance="@android:style/TextAppearance.Material.Small" />
android:textSize="12sp" />
</LinearLayout> </LinearLayout>