Search in sources :

Example 1 with CompassView

use of de.westnordost.streetcomplete.view.CompassView in project StreetComplete by westnordost.

the class AddCyclewayForm method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle inState) {
    View view = super.onCreateView(inflater, container, inState);
    setContentView(R.layout.quest_cycleway);
    puzzle = view.findViewById(R.id.puzzle);
    puzzle.setListener(this::showCyclewaySelectionDialog);
    compassView = view.findViewById(R.id.compassNeedle);
    wayOrientationAtCenter = getWayOrientationAtCenterLineInDegrees(getElementGeometry());
    initPuzzleDisplay(inState);
    initPuzzleImages(inState);
    return view;
}
Also used : ImageView(android.widget.ImageView) CompassView(de.westnordost.streetcomplete.view.CompassView) View(android.view.View) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView)

Aggregations

RecyclerView (android.support.v7.widget.RecyclerView)1 View (android.view.View)1 ImageView (android.widget.ImageView)1 TextView (android.widget.TextView)1 CompassView (de.westnordost.streetcomplete.view.CompassView)1