Change icons.
|
|
@ -123,6 +123,7 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
|
|||
|
||||
|
||||
start_stop_trace = findViewById(R.id.start_stop_trace);
|
||||
start_stop_trace.setImageResource(R.drawable.ic_play);
|
||||
start_stop_trace.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
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.setImageResource(R.drawable.ic_play);
|
||||
start_stop_dog_trace.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
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.setImageResource(R.drawable.ic_plus);
|
||||
add_object.setVisibility(View.GONE);
|
||||
add_object.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
|
|
@ -154,11 +157,11 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
|
|||
private void changeStatusTrace() {
|
||||
serviceGps.toggleTraceurActivation();
|
||||
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.start_stop_dog_trace.setVisibility(View.GONE);
|
||||
} 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.start_stop_dog_trace.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
|
@ -167,11 +170,11 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
|
|||
private void changeStatusDogTrace() {
|
||||
serviceGps.toggleDogActivation();
|
||||
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.start_stop_trace.setVisibility(View.GONE);
|
||||
} 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.start_stop_trace.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 3.1 KiB |