Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add software layer type programmatically for Maneuver and Lane View #514

Merged
merged 1 commit into from
Nov 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public ManeuverView(Context context, AttributeSet attrs, int defStyle) {
@Override
protected void onFinishInflate() {
super.onFinishInflate();
setLayerType(LAYER_TYPE_SOFTWARE, null);
initManeuverColor();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public TurnLaneView(Context context, @Nullable AttributeSet attrs, int defStyleA
@Override
protected void onFinishInflate() {
super.onFinishInflate();
setLayerType(LAYER_TYPE_SOFTWARE, null);
initManeuverColor();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
android:id="@+id/maneuverView"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_margin="8dp"
android:layerType="software"/>
android:layout_margin="8dp"/>

<TextView
android:id="@+id/stepDistanceText"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_margin="8dp"
android:layerType="software"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
android:id="@+id/maneuverView"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_margin="8dp"
android:layerType="software"/>
android:layout_margin="8dp"/>

<TextView
android:id="@+id/stepDistanceText"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
android:id="@+id/maneuverView"
android:layout_width="40dp"
android:layout_height="40dp"
android:layerType="software"
app:layout_constraintBottom_toTopOf="@+id/stepDistanceText"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="8dp"
android:layerType="software"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/guideline"
app:layout_constraintStart_toStartOf="parent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<com.mapbox.services.android.navigation.ui.v5.instruction.turnlane.TurnLaneView
android:id="@+id/turnLaneView"
android:layout_width="24dp"
android:layout_height="24dp"
android:layerType="software"/>
android:layout_height="24dp"/>

</RelativeLayout>