CircularToolsview渐变呈现效果
CircularTools view渐变呈现效果
介绍:
CircularTools view渐变呈现效果,这是一个基本的activity
成都创新互联-专业网站定制、快速模板网站建设、高性价比西陵网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式西陵网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖西陵地区。费用合理售后完善,十多年实体公司更值得信赖。
运行效果:
相关代码
CircularTools view渐变呈现效果
AppIntroAnimation 切换view动画
DraggableView GridView项目拖拽效果
PullDownListView高仿微信下拉眼睛出现动画
仿iOS的PickerView控件,有时间选择和选项选择并支持一二三级联动效果
Meizhi-master 妹子客户端 支持视频播放
ExpandablePanel空间查看大图特效
SlideBottomPanel 底部划出视图
吃包子动画AnimatePullToRefreshListView
Menu史上最牛的侧滑效果
代码:
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_p_w_picpathView)).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())
.p_w_picpath(BitmapFactory.decodeResource(getResources(), R.drawable.photo))
.from(view.findViewById(R.id.p_w_picpathView)).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_p_w_picpathView)).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.p_w_picpathView)).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.p_w_picpath)).launch(intent);
}
});
}
}
分享名称:CircularToolsview渐变呈现效果
新闻来源:http://scyanting.com/article/ieoijo.html