mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2023-12-13 20:50:18 +01:00
Repo label and info tabs fixes
This commit is contained in:
parent
da268b017e
commit
43c014948a
3 changed files with 15 additions and 15 deletions
|
@ -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()))
|
||||
|
|
|
@ -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"/>
|
||||
|
||||
|
|
|
@ -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–10–30 08:25:25</string>
|
||||
|
|
Loading…
Reference in a new issue