mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-14 08:04:23 +00:00
[android] Migrate Manage route and save buttons to Material Components
Signed-off-by: jeanbaptisteC <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
committed by
Konstantin Pastbin
parent
beac6aa7bc
commit
9425138782
@@ -45,6 +45,8 @@ import app.organicmaps.util.UiUtils;
|
||||
import app.organicmaps.util.Utils;
|
||||
import app.organicmaps.widget.recycler.DotDividerItemDecoration;
|
||||
import app.organicmaps.widget.recycler.MultilineLayoutManager;
|
||||
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import com.google.android.material.imageview.ShapeableImageView;
|
||||
import com.google.android.material.textview.MaterialTextView;
|
||||
import java.util.LinkedList;
|
||||
@@ -153,10 +155,10 @@ final class RoutingBottomMenuController implements View.OnClickListener
|
||||
mTransitViewDecorator =
|
||||
new DotDividerItemDecoration(dividerDrawable, res.getDimensionPixelSize(R.dimen.margin_base),
|
||||
res.getDimensionPixelSize(R.dimen.margin_half));
|
||||
Button manageRouteButton = altitudeChartFrame.findViewById(R.id.btn__manage_route);
|
||||
MaterialButton manageRouteButton = altitudeChartFrame.findViewById(R.id.btn__manage_route);
|
||||
manageRouteButton.setOnClickListener(this);
|
||||
|
||||
Button saveButton = altitudeChartFrame.findViewById(R.id.btn__save);
|
||||
MaterialButton saveButton = altitudeChartFrame.findViewById(R.id.btn__save);
|
||||
saveButton.setOnClickListener(this);
|
||||
}
|
||||
|
||||
@@ -168,7 +170,7 @@ final class RoutingBottomMenuController implements View.OnClickListener
|
||||
showRouteAltitudeChart();
|
||||
showRoutingDetails();
|
||||
UiUtils.show(mAltitudeChartFrame);
|
||||
Button saveButton = mAltitudeChartFrame.findViewById(R.id.btn__save);
|
||||
MaterialButton saveButton = mAltitudeChartFrame.findViewById(R.id.btn__save);
|
||||
saveButton.setText(R.string.save);
|
||||
saveButton.setEnabled(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user