optimize app item layout

This commit is contained in:
AndyScherzinger 2018-04-30 13:33:05 +02:00
parent 36335d00de
commit bf41e5c5b3
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 8 additions and 8 deletions

View file

@ -95,7 +95,7 @@ public class AppItem extends AbstractFlexibleItem<AppItem.AppItemViewHolder> {
if (position == 0) {
Spannable spannableString = new SpannableString(title);
spannableString.setSpan(new ForegroundColorSpan(NextcloudTalkApplication.getSharedApplication()
.getResources().getColor(R.color.colorPrimary)), 0,
.getResources().getColor(R.color.grey_600)), 0,
spannableString.length(),
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
holder.appTitleTextView.setText(spannableString);

View file

@ -24,8 +24,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:layout_marginTop="16dp"
android:background="@color/nc_white_color">
android:layout_marginTop="16dp">
<ImageView
android:id="@+id/icon_image_view"
@ -34,11 +33,12 @@
android:layout_centerVertical="true"
android:layout_marginStart="16dp"
android:focusable="false"
android:focusableInTouchMode="false"/>
android:focusableInTouchMode="false"
tools:src="@drawable/ic_add_grey600_24px"/>
<TextView
android:id="@+id/app_title_text_view"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
@ -46,8 +46,8 @@
android:layout_toEndOf="@id/icon_image_view"
android:focusable="false"
android:focusableInTouchMode="false"
android:textAlignment="center"
android:textSize="18sp"
tools:text="App title"/>
android:textSize="16sp"
android:textColor="@color/black"
tools:text="Start a new conversation"/>
</RelativeLayout>