Skip to content

Instantly share code, notes, and snippets.

@o4oren
Created May 2, 2020 17:22
Show Gist options
  • Save o4oren/79f55b9dadb6362035107351bf237624 to your computer and use it in GitHub Desktop.
Save o4oren/79f55b9dadb6362035107351bf237624 to your computer and use it in GitHub Desktop.
main activity
<geva.oren.rotaryknobdemo.RotaryKnobView
android:id="@+id/knob"
class="geva.oren.rotaryknobdemo.RotaryKnobView"
android:layout_width="@dimen/knob_width"
android:layout_height="@dimen/knob_height"
android:layout_marginBottom="312dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView"
app:knobDrawable="@drawable/ic_rotary_knob"
app:initialValue="50"
app:maxValue="100"
app:minValue="0" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment