Skip to content

Commit

Permalink
Merge pull request #4043 from ByteHamster/reduce-new-count-size
Browse files Browse the repository at this point in the history
Reduce font size of new count
  • Loading branch information
ByteHamster committed Apr 11, 2020
2 parents 772d872 + 67e7f4b commit 29e5464
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 86 deletions.
Expand Up @@ -317,7 +317,7 @@ private View getFeedView(int position, View convertView, ViewGroup parent) {
LayoutInflater inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

convertView = inflater.inflate(R.layout.nav_feedlistitem, parent, false);
convertView = inflater.inflate(R.layout.nav_listitem, parent, false);

holder.image = convertView.findViewById(R.id.imgvCover);
holder.title = convertView.findViewById(R.id.txtvTitle);
Expand Down
83 changes: 0 additions & 83 deletions app/src/main/res/layout/nav_feedlistitem.xml

This file was deleted.

21 changes: 19 additions & 2 deletions app/src/main/res/layout/nav_listitem.xml
Expand Up @@ -18,7 +18,6 @@
android:adjustViewBounds="true"
android:cropToPadding="true"
android:scaleType="centerInside"
android:padding="4dp"
android:layout_marginLeft="@dimen/listitem_icon_leftpadding"
android:layout_marginStart="@dimen/listitem_icon_leftpadding"
android:layout_marginTop="4dp"
Expand All @@ -44,13 +43,31 @@
android:layout_toEndOf="@id/imgvCover"
tools:text="Navigation item title" />

<com.joanzapata.iconify.widget.IconTextView
android:id="@+id/itxtvFailure"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/txtvCount"
android:layout_toStartOf="@id/txtvCount"
android:layout_marginLeft="@dimen/list_vertical_padding"
android:layout_marginStart="@dimen/list_vertical_padding"
android:layout_alignWithParentIfMissing="true"
android:lines="1"
android:text="{fa-exclamation-circle}"
android:textColor="@color/download_failed_red"
android:textSize="@dimen/text_size_navdrawer"
android:layout_centerVertical="true"
android:visibility="gone"
tools:text="!"
tools:background="@android:color/holo_green_dark"/>

<TextView
android:id="@+id/txtvCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lines="1"
android:textColor="?android:attr/textColorTertiary"
android:textSize="@dimen/text_size_navdrawer"
android:textSize="14sp"
android:layout_marginLeft="12dp"
android:layout_marginStart="12dp"
android:layout_marginRight="@dimen/listitem_icon_rightpadding"
Expand Down

0 comments on commit 29e5464

Please sign in to comment.