Skip to content

Commit

Permalink
modified : row eng item
Browse files Browse the repository at this point in the history
  • Loading branch information
yasinhajilou committed Jul 2, 2020
1 parent 69548d7 commit 989e770
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ void bindData(EnglishDef englishDef) {

cat.setText("(" + englishDef.getCat() + ")");

if (englishDef.getSynonyms() != null)
if (!englishDef.getSynonyms().equals(""))
syn.setText(englishDef.getSynonyms());
else
labelSyn.setVisibility(View.GONE);

if (englishDef.getExamples() != null)
if (!englishDef.getExamples().equals(""))
exam.setText(englishDef.getExamples());
else
labelExam.setVisibility(View.GONE);
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/row_item_english_translation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:textAlignment="center"
android:textColor="@color/colorSecondary"
android:textSize="18sp"
android:fontFamily="@font/productsansregular"
Expand Down

0 comments on commit 989e770

Please sign in to comment.