Improved layout

pull/156/head
M66B 6 years ago
parent dca3447446
commit 34e93cdb48

@ -97,6 +97,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
private ImageView ivType;
private ImageView ivUnified;
private TextView tvType;
private TextView tvTotal;
private TextView tvAfter;
private ImageView ivSync;
private TextView tvKeywords;
@ -121,6 +122,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
ivType = itemView.findViewById(R.id.ivType);
ivUnified = itemView.findViewById(R.id.ivUnified);
tvType = itemView.findViewById(R.id.tvType);
tvTotal = itemView.findViewById(R.id.tvTotal);
tvAfter = itemView.findViewById(R.id.tvAfter);
ivSync = itemView.findViewById(R.id.ivSync);
tvKeywords = itemView.findViewById(R.id.tvKeywords);
@ -246,11 +248,6 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
sb.append(nf.format(folder.content));
sb.append('/');
sb.append(nf.format(folder.messages));
sb.append('/');
if (folder.total == null)
sb.append('?');
else
sb.append(nf.format(folder.total));
}
tvMessages.setText(sb.toString());
@ -273,6 +270,8 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
tvType.setText(resid > 0 ? context.getString(resid) : folder.type);
}
tvTotal.setText(folder.total == null ? "" : nf.format(folder.total));
if (folder.account == null) {
tvAfter.setText(null);
ivSync.setImageResource(R.drawable.baseline_sync_24);

@ -239,10 +239,10 @@
<TextView
android:id="@+id/tvDownloadFetch"
android:layout_width="72dp"
android:layout_width="48dp"
android:layout_height="0dp"
android:gravity="end|center_vertical"
android:text="12/34/56"
android:gravity="center"
android:text="1/23"
android:textAppearance="@android:style/TextAppearance.Small"
app:layout_constraintBottom_toBottomOf="@+id/tvDownloadFetchLegend"
app:layout_constraintStart_toStartOf="parent"
@ -273,10 +273,10 @@
<TextView
android:id="@+id/tvSyncKeep"
android:layout_width="72dp"
android:layout_width="48dp"
android:layout_height="0dp"
android:gravity="end|center_vertical"
android:text="12/34"
android:gravity="center"
android:text="1/23"
android:textAppearance="@android:style/TextAppearance.Small"
app:layout_constraintBottom_toBottomOf="@+id/tvSyncKeepLegend"
app:layout_constraintStart_toStartOf="parent"

@ -147,17 +147,33 @@
<TextView
android:id="@+id/tvType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:gravity="center_vertical"
android:maxLines="1"
android:minHeight="24dp"
android:text="type"
android:textAppearance="@android:style/TextAppearance.Small"
android:textStyle="italic"
app:layout_constraintStart_toEndOf="@id/ivUnified"
app:layout_constraintTop_toBottomOf="@id/tvName" />
<TextView
android:id="@+id/tvTotal"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginTop="6dp"
android:layout_marginEnd="6dp"
android:gravity="center_vertical"
android:maxLines="1"
android:minHeight="24dp"
android:text="type"
android:text="12,345"
android:textAppearance="@android:style/TextAppearance.Small"
android:textStyle="italic"
app:layout_constraintEnd_toStartOf="@+id/tvAfter"
app:layout_constraintStart_toEndOf="@id/ivUnified"
app:layout_constraintStart_toEndOf="@id/tvType"
app:layout_constraintTop_toBottomOf="@id/tvName" />
<TextView

@ -605,7 +605,7 @@
<string name="title_legend_notify">Notify new messages</string>
<string name="title_legend_subscribed">Subscribed to</string>
<string name="title_legend_sync_keep">Number of days to synchronize / to keep messages</string>
<string name="title_legend_download_fetch">Number of message bodies downloaded / headers fetched / on server</string>
<string name="title_legend_download_fetch">Number of message downloaded / headers fetched</string>
<string name="title_legend_stop">Stop processing rules</string>
<string name="title_legend_thread">Conversation</string>

Loading…
Cancel
Save