Skip to content

Commit

Permalink
Removed child gender icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrafael committed Feb 10, 2020
1 parent 0b8b05b commit a84eeee
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import android.widget.CheckBox;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;
Expand Down Expand Up @@ -71,15 +70,6 @@ public void showData(RecyclerView.ViewHolder holder, int position, List<Child> i
h.fitBitStatus.setChecked(false);
if (child.isFitbitAccessValid()) h.fitBitStatus.setChecked(true);

// Gender
if (child.getGender().equalsIgnoreCase("male")) {
h.gender.setImageDrawable(mContext.getResources()
.getDrawable(R.drawable.ic_action_gender_male));
} else {
h.gender.setImageDrawable(mContext.getResources()
.getDrawable(R.drawable.ic_action_gender_female));
}

// OnClick Item
h.mView.setOnClickListener(v -> {
if (mListener != null) mListener.onItemClick(child);
Expand Down Expand Up @@ -140,9 +130,6 @@ class ViewHolderChild extends RecyclerView.ViewHolder {
@BindView(R.id.fitbit_status_cb)
CheckBox fitBitStatus;

@BindView(R.id.gender_img)
ImageView gender;

ViewHolderChild(View view) {
super(view);
ButterKnife.bind(this, view);
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
10 changes: 0 additions & 10 deletions app/src/main/res/layout/child_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,10 @@
android:orientation="horizontal"
android:padding="@dimen/default_padding">

<ImageView
android:id="@+id/gender_img"
android:layout_width="35dp"
android:layout_height="35dp"
android:contentDescription="@null"
android:src="@null" />

<TextView
android:id="@+id/name_child"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/gender_img"
android:layout_marginStart="40dp"
android:layout_marginTop="-2dp"
android:text="B0001"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
Expand All @@ -32,7 +23,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/name_child"
android:layout_marginStart="40dp"
android:layout_marginTop="2dp"
android:text="@string/last_sync_date_time"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
Expand Down

0 comments on commit a84eeee

Please sign in to comment.