Change next arrow when no contacts are selected

This commit is contained in:
Erwan Croze 2017-10-05 17:21:37 +02:00
parent 39380d754e
commit 83b182f591
3 changed files with 3 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,015 B

View file

@ -70,7 +70,7 @@
<ImageView
android:id="@+id/next"
android:src="@drawable/next"
android:src="@drawable/dialer_alt_next"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.2"

View file

@ -157,7 +157,9 @@ public class ChatCreationFragment extends Fragment implements View.OnClickListen
if (contactsSelected.size() > 0) {
contactsSelectLayout.setVisibility(View.VISIBLE);
contactsSelectLayout.invalidate();
next.setImageResource(R.drawable.next);
} else {
next.setImageResource(R.drawable.dialer_alt_next);
contactsSelectLayout.setVisibility(View.GONE);
}
}