Repo label and info tabs fixes

This commit is contained in:
M M Arif 2019-09-19 10:36:55 +05:00
parent da268b017e
commit 43c014948a
3 changed files with 15 additions and 15 deletions

View file

@ -3,7 +3,6 @@ package org.mian.gitnex.adapters;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
@ -42,13 +41,12 @@ public class LabelsAdapter extends RecyclerView.Adapter<LabelsAdapter.LabelsView
private TextView labelId;
private TextView labelColor;
private ImageView labelsView;
private ImageView labelsOptionsMenu;
private LabelsViewHolder(View itemView) {
super(itemView);
labelsView = itemView.findViewById(R.id.labelsView);
labelsOptionsMenu = itemView.findViewById(R.id.labelsOptionsMenu);
ImageView labelsOptionsMenu = itemView.findViewById(R.id.labelsOptionsMenu);
labelTitle = itemView.findViewById(R.id.labelTitle);
labelId = itemView.findViewById(R.id.labelId);
labelColor = itemView.findViewById(R.id.labelColor);
@ -146,6 +144,7 @@ public class LabelsAdapter extends RecyclerView.Adapter<LabelsAdapter.LabelsView
TextDrawable drawable = TextDrawable.builder()
.beginConfig()
//.useFont(Typeface.DEFAULT)
.bold()
.textColor(new ColorInverter().getContrastColor(color))
.fontSize(36)
.width(LabelWidthCalculator.customWidth(getMaxLabelLength()))

View file

@ -69,7 +69,7 @@
android:layout_height="match_parent"
android:text="@string/infoTabRepoBlank"
android:textIsSelectable="true"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="5dp"
android:textColor="@color/colorWhite"/>
@ -87,7 +87,7 @@
android:layout_height="match_parent"
android:text="@string/infoTabRepoBlank"
android:textIsSelectable="true"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="5dp"
android:textColor="@color/colorWhite"/>
@ -105,7 +105,7 @@
android:layout_height="match_parent"
android:text="@string/infoTabRepoBlank"
android:textIsSelectable="true"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="5dp"
android:autoLink="web"
android:textColor="@color/colorWhite"/>
@ -124,9 +124,10 @@
android:layout_height="match_parent"
android:text="@string/infoTabRepoBlank"
android:textIsSelectable="true"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="5dp"
android:autoLink="web"
android:textColorLink="@color/lightBlue"
android:textColor="@color/colorWhite"/>
<TextView
@ -143,7 +144,7 @@
android:layout_height="match_parent"
android:text="@string/infoTabRepoZero"
android:textIsSelectable="true"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="5dp"
android:textColor="@color/colorWhite"/>
@ -161,7 +162,7 @@
android:layout_height="match_parent"
android:text="@string/infoTabRepoDefaultBranchText"
android:textIsSelectable="true"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="5dp"
android:textColor="@color/colorWhite"/>
@ -179,7 +180,7 @@
android:layout_height="match_parent"
android:text="@string/infoTabRepoBlank"
android:textIsSelectable="true"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="5dp"
android:autoLink="web"
android:textColorLink="@color/lightBlue"
@ -199,7 +200,7 @@
android:layout_height="match_parent"
android:text="@string/infoTabRepoBlank"
android:textIsSelectable="true"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="5dp"
android:autoLink="web"
android:textColorLink="@color/lightBlue"
@ -219,7 +220,7 @@
android:layout_height="match_parent"
android:text="@string/infoTabRepoBlank"
android:textIsSelectable="true"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="5dp"
android:autoLink="web"
android:textColorLink="@color/lightBlue"
@ -239,7 +240,7 @@
android:layout_height="match_parent"
android:text="@string/infoTabRepoZero"
android:textIsSelectable="true"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="5dp"
android:textColor="@color/colorWhite"/>
@ -256,7 +257,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/infoTabRepoDummyTime"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="5dp"
android:textColor="@color/colorWhite"/>

View file

@ -151,7 +151,7 @@
<string name="infoTabRepoSshUrl">SSH URL</string>
<string name="infoTabRepoCloneUrl">Clone URL</string>
<string name="infoTabRepoRepoUrl">Repo URL</string>
<string name="infoTabRepoForksCount">Forks Count</string>
<string name="infoTabRepoForksCount">Forks</string>
<string name="infoTabRepoCreatedAt">Created</string>
<string name="infoTabRepoUpdatedAt">Last Updated</string>
<string name="infoTabRepoDummyTime">2018&#8211;10&#8211;30 08:25:25</string>