mirror of
https://github.com/k0shk0sh/FastHub.git
synced 2025-12-08 19:05:54 +00:00
centerlize repo language name position.
This commit is contained in:
parent
28cffc5dbe
commit
a22cc8f8a6
@ -213,7 +213,7 @@ public class RepoPagerView extends BaseActivity<RepoPagerMvp.View, RepoPagerPres
|
||||
detailsIcon.setVisibility(InputHelper.isEmpty(repoModel.getDescription()) ? View.GONE : View.VISIBLE);
|
||||
language.setVisibility(InputHelper.isEmpty(repoModel.getLanguage()) ? View.GONE : View.VISIBLE);
|
||||
if (!InputHelper.isEmpty(repoModel.getLanguage())) language.setText(repoModel.getLanguage());
|
||||
language.setTextColor(ColorGenerator.MATERIAL.getColor(repoModel.getId()));
|
||||
language.setTextColor(ColorGenerator.MATERIAL.getColor(repoModel.getLanguage()));
|
||||
forkRepo.setText(numberFormat.format(repoModel.getForksCount()));
|
||||
starRepo.setText(numberFormat.format(repoModel.getStargazersCount()));
|
||||
watchRepo.setText(numberFormat.format(repoModel.getSubsCount()));
|
||||
|
||||
@ -65,16 +65,6 @@
|
||||
android:layout_marginTop="@dimen/spacing_micro"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/language"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:paddingEnd="@dimen/spacing_normal"
|
||||
android:visibility="gone"
|
||||
tools:text="Java"
|
||||
tools:visibility="visible"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/date"
|
||||
@ -93,6 +83,17 @@
|
||||
android:layout_gravity="center"
|
||||
tools:text="50 minutes ago"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/language"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="@dimen/spacing_normal"
|
||||
android:visibility="gone"
|
||||
tools:text="Java"
|
||||
tools:visibility="visible"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user