Change icons.

This commit is contained in:
Chteufleur 2018-08-15 22:27:38 +02:00
parent 8855235fd8
commit f7d719276b
6 changed files with 7 additions and 4 deletions

View File

@ -123,6 +123,7 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
start_stop_trace = findViewById(R.id.start_stop_trace); start_stop_trace = findViewById(R.id.start_stop_trace);
start_stop_trace.setImageResource(R.drawable.ic_play);
start_stop_trace.setOnClickListener(new View.OnClickListener() { start_stop_trace.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
@ -130,6 +131,7 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
} }
}); });
start_stop_dog_trace = findViewById(R.id.start_stop_dog_trace); start_stop_dog_trace = findViewById(R.id.start_stop_dog_trace);
start_stop_dog_trace.setImageResource(R.drawable.ic_play);
start_stop_dog_trace.setOnClickListener(new View.OnClickListener() { start_stop_dog_trace.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
@ -137,6 +139,7 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
} }
}); });
add_object = findViewById(R.id.add_object); add_object = findViewById(R.id.add_object);
add_object.setImageResource(R.drawable.ic_plus);
add_object.setVisibility(View.GONE); add_object.setVisibility(View.GONE);
add_object.setOnClickListener(new View.OnClickListener() { add_object.setOnClickListener(new View.OnClickListener() {
@Override @Override
@ -154,11 +157,11 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
private void changeStatusTrace() { private void changeStatusTrace() {
serviceGps.toggleTraceurActivation(); serviceGps.toggleTraceurActivation();
if (serviceGps.isTraceurActivated()) { if (serviceGps.isTraceurActivated()) {
this.start_stop_trace.setImageResource(R.drawable.ic_menu_offline); this.start_stop_trace.setImageResource(R.drawable.ic_stop);
this.add_object.setVisibility(View.VISIBLE); this.add_object.setVisibility(View.VISIBLE);
this.start_stop_dog_trace.setVisibility(View.GONE); this.start_stop_dog_trace.setVisibility(View.GONE);
} else { } else {
this.start_stop_trace.setImageResource(R.drawable.ic_menu_mylocation); this.start_stop_trace.setImageResource(R.drawable.ic_play);
this.add_object.setVisibility(View.GONE); this.add_object.setVisibility(View.GONE);
this.start_stop_dog_trace.setVisibility(View.VISIBLE); this.start_stop_dog_trace.setVisibility(View.VISIBLE);
} }
@ -167,11 +170,11 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
private void changeStatusDogTrace() { private void changeStatusDogTrace() {
serviceGps.toggleDogActivation(); serviceGps.toggleDogActivation();
if (serviceGps.isDogActivated()) { if (serviceGps.isDogActivated()) {
this.start_stop_dog_trace.setImageResource(R.drawable.ic_menu_offline); this.start_stop_dog_trace.setImageResource(R.drawable.ic_stop);
this.add_object.setVisibility(View.GONE); this.add_object.setVisibility(View.GONE);
this.start_stop_trace.setVisibility(View.GONE); this.start_stop_trace.setVisibility(View.GONE);
} else { } else {
this.start_stop_dog_trace.setImageResource(R.drawable.ic_menu_mylocation); this.start_stop_dog_trace.setImageResource(R.drawable.ic_play);
this.add_object.setVisibility(View.VISIBLE); this.add_object.setVisibility(View.VISIBLE);
this.start_stop_trace.setVisibility(View.VISIBLE); this.start_stop_trace.setVisibility(View.VISIBLE);
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB