Circulartools View Gradient Rendering effect Description:
Circulartools View gradient rendering effect, which is a basic activity
Operating effect:
650) this.width=650; "Src=" http://www.itlanbao.com/code/users/10000/20150914/ 687474703a2f2f692e696d6775722e636f6d2f5165616f4c70442e676966q2.gif "style=" border:0px;vertical-align:middle; height:410px;width:273px; "/>
650) this.width=650; "Src=" http://www.itlanbao.com/code/users/10000/20150914/ 687474703a2f2f692e696d6775722e636f6d2f705430557148412e676966qq2.gif "style=" border:0px;vertical-align:middle; height:410px;width:273px; "/>
Related code
Circulartools View Gradient Rendering effect
Appintroanimation Toggle View Animation
Draggableview GridView Project Drag-and-drop effect
Pulldownlistview High imitation drop-down eyes appear animation
Pickerview controls that mimic iOS, with time selection and option selection and support for 123-level linkage effects
Meizhi-master sister client supports video playback
Expandablepanel space view big picture effect
Slidebottompanel Bottom View
Eat steamed stuffed Bun animation animatepulltorefreshlistview
The most bull side-slip effect in menu history
Code:
Package com.kogitune.prelollipoptransition.fragment;
Import android.app.Fragment;
Import Android.os.Bundle;
Import Android.view.LayoutInflater;
Import Android.view.View;
Import Android.view.ViewGroup;
Import com.kogitune.activity_transition.fragment.ExitFragmentTransition;
Import com.kogitune.activity_transition.fragment.FragmentTransition;
Import COM.KOGITUNE.PRELOLLIPOPTRANSITION.R;
/**
* Created by Takam on 2015/05/16.
*/
public class Endfragment extends Fragment {
@Override
Public View Oncreateview (layoutinflater inflater, ViewGroup container, Bundle savedinstancestate) {
View v = inflater.inflate (R.layout.fragment_end, container, false);
Final Exitfragmenttransition exitfragmenttransition = Fragmenttransition.with (This). to (V.findviewbyid ( R.id.fragment_imageview). Start (savedinstancestate);
Exitfragmenttransition.startexitlistening ();
return v;
}
}
Package com.kogitune.prelollipoptransition.fragment;
Import android.app.Fragment;
Import Android.graphics.BitmapFactory;
Import Android.os.Bundle;
Import Android.view.LayoutInflater;
Import Android.view.View;
Import Android.view.ViewGroup;
Import Com.kogitune.activity_transition.fragment.FragmentTransitionLauncher;
Import COM.KOGITUNE.PRELOLLIPOPTRANSITION.R;
/**
* Created by Takam on 2015/05/16.
*/
public class StartFragment extends Fragment {
@Override
Public View Oncreateview (layoutinflater inflater, ViewGroup container, Bundle savedinstancestate) {
View v = inflater.inflate (R.layout.support_fragment_start, container, false);
V.setonclicklistener (New View.onclicklistener () {
@Override
public void OnClick (view view) {
Final Endfragment tofragment = new Endfragment ();
Fragmenttransitionlauncher
. with (View.getcontext ())
. Image (Bitmapfactory.decoderesource (Getresources (), R.drawable.photo))
. from (View.findviewbyid (R.id.imageview)). Prepare (tofragment);
Getfragmentmanager (). BeginTransaction (). replace (R.id.content, tofragment). Addtobackstack (NULL). commit ();
}
});
return v;
}
}
Package com.kogitune.prelollipoptransition.support_fragment;
Import Android.os.Bundle;
Import android.support.v4.app.Fragment;
Import Android.view.LayoutInflater;
Import Android.view.View;
Import Android.view.ViewGroup;
Import com.kogitune.activity_transition.fragment.ExitFragmentTransition;
Import com.kogitune.activity_transition.fragment.FragmentTransition;
Import COM.KOGITUNE.PRELOLLIPOPTRANSITION.R;
/**
* Created by Takam on 2015/05/16.
*/
public class Supportendfragment extends Fragment {
@Override
Public View Oncreateview (layoutinflater inflater, ViewGroup container, Bundle savedinstancestate) {
View v = inflater.inflate (R.layout.support_fragment_end, container, false);
Final Exitfragmenttransition exitfragmenttransition = Fragmenttransition.with (This). to (V.findviewbyid ( R.id.fragment_imageview). Start (savedinstancestate);
Exitfragmenttransition.startexitlistening ();
return v;
}
}
Package com.kogitune.prelollipoptransition.support_fragment;
Import Android.os.Bundle;
Import android.support.v4.app.Fragment;
Import Android.view.LayoutInflater;
Import Android.view.View;
Import Android.view.ViewGroup;
Import Com.kogitune.activity_transition.fragment.FragmentTransitionLauncher;
Import COM.KOGITUNE.PRELOLLIPOPTRANSITION.R;
/**
* Created by Takam on 2015/05/16.
*/
public class Supportstartfragment extends Fragment {
@Override
Public View Oncreateview (layoutinflater inflater, ViewGroup container, Bundle savedinstancestate) {
View v = inflater.inflate (R.layout.support_fragment_start, container, false);
V.setonclicklistener (New View.onclicklistener () {
@Override
public void OnClick (view view) {
Final Supportendfragment tofragment = new Supportendfragment ();
Fragmenttransitionlauncher.with (View.getcontext ()). from (View.findviewbyid (R.id.imageview)). Prepare (ToFragment) ;
Getfragmentmanager (). BeginTransaction (). replace (R.id.support_content, tofragment). Addtobackstack (NULL). Commit () ;
}
});
return v;
}
}
Package com.kogitune.prelollipoptransition;
Import android.content.Intent;
Import Android.os.Bundle;
Import android.support.v7.app.AppCompatActivity;
Import Android.view.Menu;
Import Android.view.MenuItem;
Import Android.view.View;
Import Android.view.ViewGroup;
Import Android.widget.AdapterView;
Import Android.widget.AdapterView.OnItemClickListener;
Import Android.widget.BaseAdapter;
Import Android.widget.ListView;
Import Com.kogitune.activity_transition. Activitytransitionlauncher;
public class Listviewactivity extends Appcompatactivity {
@Override
protected void OnCreate (Bundle savedinstancestate) {
Super.oncreate (savedinstancestate);
Setcontentview (R.layout.activity_list_view);
Final ListView ListView = (ListView) Findviewbyid (r.id.list);
Listview.setadapter (New Baseadapter () {
@Override
public int GetCount () {
return 10;
}
@Override
Public Object getItem (int position) {
return null;
}
@Override
public long getitemid (int position) {
return 0;
}
@Override
Public View GetView (int position, View Convertview, ViewGroup parent) {
Return Getlayoutinflater (). Inflate (R.layout.list_row, NULL);
}
});
Listview.setonitemclicklistener (New Onitemclicklistener () {
@Override
public void Onitemclick (adapterview<?> parent, view view, int position, long ID) {
Final Intent Intent = new Intent (listviewactivity.this, Subactivity.class);
Activitytransitionlauncher.with (Listviewactivity.this). From (View.findviewbyid (R.id.image)). Launch (intent);
}
});
}
}
Circulartools View Gradient Rendering effect