Code Monkey home page Code Monkey logo

circleanimation's People

Contributors

bryant1410 avatar dkmeteor avatar ravidsrk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

circleanimation's Issues

Not working in case of listview

I have a listview with each listitem shown in xml. But when i use the library there, the effect is not coming well.

Here is my xml of each list item

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"

<RelativeLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_marginBottom="10dp"
    android:layout_marginLeft="20dp"
    android:layout_marginRight="20dp"
    android:layout_marginTop="10dp"
 >

    <ImageView
        android:id="@+id/icon"
        android:layout_width="fill_parent"
        android:layout_height="350dp"
        android:layout_alignParentLeft="true"
        android:layout_alignParentRight="true"
        android:background="#212121"

        android:scaleType="centerCrop" />

    <ImageView
        android:id="@+id/btn_go"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:layout_marginTop="20dp"
            android:focusable="false"
        android:focusableInTouchMode="false"
        android:scaleType="centerCrop"
        android:src="@drawable/heart_detail" />

    <TextView
        android:id="@+id/text"
        android:layout_width="wrap_content"
        android:layout_height="60dp"
        android:layout_alignParentLeft="true"
        android:layout_marginTop="20dp"
        android:paddingLeft="20dp"
        android:textColor="#ffffff"
        android:textSize="27sp" />

    <TextView
        android:id="@+id/textview"
        android:layout_width="wrap_content"
        android:layout_height="50dp"
        android:layout_below="@+id/text"
        android:paddingBottom="20dp"
        android:paddingLeft="20dp"
        android:textColor="#ffffff"
        android:textSize="20sp" />
</RelativeLayout>

and here is my adapter on which i m calling this library
private class ViewHolder {
ImageView imageView, img;
TextView t, t_price;
}

public View getView(final int position, View convertView, ViewGroup parent) {
 holder = null;
    RowItem rowItem = getItem(position);

    Log.v("position global", position + "");
    val = position;
    LayoutInflater mInflater = (LayoutInflater) context
            .getSystemService(Activity.LAYOUT_INFLATER_SERVICE);
    if (convertView == null) {
        convertView = mInflater.inflate(R.layout.item, null);
        holder = new ViewHolder();

        holder.imageView = (ImageView) convertView.findViewById(R.id.icon);
        holder.img = (ImageView) convertView.findViewById(R.id.btn_go);
        holder.t = (TextView) convertView.findViewById(R.id.textview);
        holder.t_price = (TextView) convertView.findViewById(R.id.text);

        holder.img.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub

                Log.v("pos is", position + "");
                System.out.println("position is" + position);

                //host = MainActivity.hostd.get(position).toString();
                new CircleAnimationUtil().attachActivity((Activity) context).setTargetView(holder.imageView).setDestView(holder.img).startAnimation();
                //new wishlist().execute();
            }
        });
        convertView.setTag(holder);
    } else
        holder = (ViewHolder) convertView.getTag();

    holder.t.setText(rowItem.getText());
    holder.t_price.setText("Rs. " + rowItem.getAmount());
    Picasso.with(context).load(rowItem.getImageId())

    .into(holder.imageView);
    return convertView;
}

Backward Comapatibility

How can I use this in 3.0 version Android ??
I m getting errors in using NineOldAnimations..

how to change the size of bitmap

How to change the size of the bitmap during animation. there's no property for that.
what should i possibly write in startAnimator() to change the size?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.