Example usage for android.widget ImageView setTop

List of usage examples for android.widget ImageView setTop

Introduction

In this page you can find the example usage for android.widget ImageView setTop.

Prototype

public final void setTop(int top) 

Source Link

Document

Sets the top position of this view relative to its parent.

Usage

From source file:com.cachirulop.moneybox.fragment.MoneyboxFragment.java

/**
 * Drop again a movement in the moneybox making an animation.
 * /*w w  w.  j a v a  2 s . com*/
 * @param m
 *            Movement to be dropped.
 */
public void dropAgainMovement(Movement m) {
    ImageView v;
    CurrencyValueDef c;

    // TODO: This doesn't work!!!!!!

    c = CurrencyManager.getCurrencyDef(Math.abs(m.getAmount()));

    v = new ImageView(getActivity());
    v.setLeft(findLayout().getWidth() / 2);
    v.setTop(0);
    v.setImageDrawable(c.getDrawable());
    v.setTag(c);

    dropMoney(v, m);
}