Java Code Examples for android.widget.LinearLayout.getWidth()

The following are Jave code examples for showing how to use getWidth() of the android.widget.LinearLayout class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Traveler-List   File:   Source Code and License Vote up 6 votes
private void hideEditText(final LinearLayout view) {

    int cx = view.getRight() - 30;
    int cy = view.getBottom() - 60;
    int initialRadius = view.getWidth();
    Animator anim = ViewAnimationUtils.createCircularReveal(view, cx, cy, initialRadius, 0);
    anim.addListener(new AnimatorListenerAdapter() {
      public void onAnimationEnd(Animator animation) {
    isEditTextVisible = false;