mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-14 16:14:23 +00:00
[android] Migrate Primary buttons to Material 3 themes
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
committed by
Konstantin Pastbin
parent
05cc660641
commit
ca5cc46f2b
@@ -9,7 +9,6 @@ import android.view.KeyEvent;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.ImageView;
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -27,6 +26,7 @@ import app.organicmaps.util.UiUtils;
|
||||
import com.google.android.material.bottomsheet.BottomSheetBehavior;
|
||||
import com.google.android.material.bottomsheet.BottomSheetDialog;
|
||||
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import com.google.android.material.divider.MaterialDividerItemDecoration;
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -42,10 +42,10 @@ public class ManageRouteBottomSheet
|
||||
{
|
||||
View v = inflater.inflate(R.layout.manage_route_bottom_sheet, container, false);
|
||||
|
||||
Button cancelButton = v.findViewById(R.id.btn__cancel);
|
||||
MaterialButton cancelButton = v.findViewById(R.id.btn__cancel);
|
||||
cancelButton.setOnClickListener(this);
|
||||
|
||||
Button planButton = v.findViewById(R.id.btn__plan);
|
||||
MaterialButton planButton = v.findViewById(R.id.btn__plan);
|
||||
planButton.setOnClickListener(this);
|
||||
|
||||
mMyLocationImageView = v.findViewById(R.id.image_my_location);
|
||||
|
||||
@@ -68,7 +68,7 @@ final class RoutingBottomMenuController implements View.OnClickListener
|
||||
@NonNull
|
||||
private final MaterialTextView mError;
|
||||
@NonNull
|
||||
private final Button mStart;
|
||||
private final MaterialButton mStart;
|
||||
@NonNull
|
||||
private final ImageView mAltitudeChart;
|
||||
@NonNull
|
||||
@@ -101,7 +101,7 @@ final class RoutingBottomMenuController implements View.OnClickListener
|
||||
View timeElevationLine = getViewById(activity, frame, R.id.time_elevation_line);
|
||||
View transitFrame = getViewById(activity, frame, R.id.transit_panel);
|
||||
MaterialTextView error = (MaterialTextView) getViewById(activity, frame, R.id.error);
|
||||
Button start = (Button) getViewById(activity, frame, R.id.start);
|
||||
MaterialButton start = (MaterialButton) getViewById(activity, frame, R.id.start);
|
||||
ImageView altitudeChart = (ImageView) getViewById(activity, frame, R.id.altitude_chart);
|
||||
MaterialTextView time = (MaterialTextView) getViewById(activity, frame, R.id.time);
|
||||
TextView timeVehicle = (TextView) getViewById(activity, frame, R.id.time_vehicle);
|
||||
@@ -123,7 +123,7 @@ final class RoutingBottomMenuController implements View.OnClickListener
|
||||
|
||||
private RoutingBottomMenuController(@NonNull Activity context, @NonNull View altitudeChartFrame,
|
||||
@NonNull View timeElevationLine, @NonNull View transitFrame,
|
||||
@NonNull MaterialTextView error, @NonNull Button start,
|
||||
@NonNull MaterialTextView error, @NonNull MaterialButton start,
|
||||
@NonNull ImageView altitudeChart, @NonNull MaterialTextView time,
|
||||
@NonNull MaterialTextView altitudeDifference, @NonNull TextView timeVehicle,
|
||||
@Nullable MaterialTextView arrival, @NonNull View actionFrame,
|
||||
|
||||
Reference in New Issue
Block a user