Button myButton = findViewById(R.id.my_button); int buttonRight = myButton.getRight();In this example, we retrieve a reference to a Button View with the ID `my_button`. We then call the `getRight()` method on the View to get the position of the right edge of the Button relative to its parent. The result is stored in the `buttonRight` variable. This method is part of the Android framework and is located in the `android.view` package.