Skip to content

Commit

Permalink
Add software layer type programmatically (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
danesfeder authored Nov 17, 2017
1 parent 4c16901 commit 3a8be52
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 9 deletions.
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>

0 comments on commit 3a8be52

Please sign in to comment.