本文整理汇总了Java中me.everything.android.ui.overscroll.OverScrollDecoratorHelper类的典型用法代码示例。如果您正苦于以下问题:Java OverScrollDecoratorHelper类的具体用法?Java OverScrollDecoratorHelper怎么用?Java OverScrollDecoratorHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OverScrollDecoratorHelper类属于me.everything.android.ui.overscroll包,在下文中一共展示了OverScrollDecoratorHelper类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onCreate
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_add_label);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
ButterKnife.bind(this);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
rv.setLayoutManager(new LinearLayoutManager(this));
OverScrollDecoratorHelper.setUpOverScroll(rv, OverScrollDecoratorHelper.ORIENTATION_VERTICAL);
list = new ArrayList<>();
list.add(new CLabel(getString(R.string.menu_important), R.drawable.ic_important_24dp,false));
list.add(new CLabel(getString(R.string.menu_todo), R.drawable.ic_todo_24dp,false));
list.add(new CLabel(getString(R.string.menu_dictionary), R.drawable.ic_dictionary_24dp,false));
labelsDb = LabelsDb.getInstance(getApplicationContext());
for (int i = 0; i < labelsDb.getAllFlashcards().size(); i++) {
list.add(new CLabel(labelsDb.getAllFlashcards().get(i),R.drawable.ic_other_label_24dp,false));
}
adapter = new RVLabelsAdapter(list);
rv.setAdapter(adapter);
}
开发者ID:AbduazizKayumov,项目名称:Flashcard-Maker-Android,代码行数:26,代码来源:AddLabelActivity.java
示例2: onCreateView
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View fragmentView = inflater.inflate(R.layout.misc_overscroll_demo, null, false);
View textView = fragmentView.findViewById(R.id.demo_text);
OverScrollDecoratorHelper.setUpStaticOverScroll(textView, OverScrollDecoratorHelper.ORIENTATION_HORIZONTAL);
View imageView = fragmentView.findViewById(R.id.demo_image);
OverScrollDecoratorHelper.setUpStaticOverScroll(imageView, OverScrollDecoratorHelper.ORIENTATION_VERTICAL);
mChrono = (Chronometer) fragmentView.findViewById(R.id.demo_chronometer);
if (savedInstanceState != null) {
mChrono.setBase(savedInstanceState.getLong(CHRONO_TIME_SAVE_ID));
}
OverScrollDecoratorHelper.setUpStaticOverScroll(mChrono, OverScrollDecoratorHelper.ORIENTATION_HORIZONTAL);
mChrono.start();
return fragmentView;
}
开发者ID:EverythingMe,项目名称:overscroll-decor,代码行数:20,代码来源:MiscViewsDemoFragment.java
示例3: onCreate
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setStatusBarColor();
setContentView(R.layout.activity_popup);
//set animation
overridePendingTransition(R.anim.slide_in, R.anim.slide_out);
final ScrollView scrollView = (ScrollView) findViewById(R.id.scrollView);
OverScrollDecoratorHelper.setUpOverScroll(scrollView);
//
assignViews();
initBigBangLayout();
loadData(); //dictionaryList;
setActAdapter(currentDicitonary);
setEventListener();
handleIntent();
if (settings.getMoniteClipboardQ()) {
startCBService();
}
bigBangLayout.post(new Runnable() {
@Override
public void run() {
setTargetWord();
}
});
}
开发者ID:mmjang,项目名称:quiz_helper,代码行数:29,代码来源:PopupActivity.java
示例4: initMessageList
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
/**
* 初始化消息列表
*/
private void initMessageList() {
items = new ArrayList<>();
cached = new HashMap<>(3);
// adapter
adapter = new RecentContactAdapter(recyclerView, items);
initCallBack();
adapter.setCallback(callback);
// recyclerView
recyclerView.setAdapter(adapter);
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
recyclerView.addOnItemTouchListener(touchListener);
// ios style
OverScrollDecoratorHelper.setUpOverScroll(recyclerView, OverScrollDecoratorHelper.ORIENTATION_VERTICAL);
// drop listener
DropManager.getInstance().setDropListener(new DropManager.IDropListener() {
@Override
public void onDropBegin() {
touchListener.setShouldDetectGesture(false);
}
@Override
public void onDropEnd() {
touchListener.setShouldDetectGesture(true);
}
});
}
开发者ID:newDeepLearing,项目名称:decoy,代码行数:34,代码来源:RecentContactsFragment.java
示例5: onCreate
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setStatusBarColor();
setContentView(R.layout.activity_popup);
//set animation
overridePendingTransition(R.anim.slide_in, R.anim.slide_out);
final ScrollView scrollView = (ScrollView) findViewById(R.id.scrollView);
OverScrollDecoratorHelper.setUpOverScroll(scrollView);
//
assignViews();
initBigBangLayout();
loadData(); //dictionaryList;
populatePlanSpinner();
populateLanguageSpinner();
setEventListener();
handleIntent();
if (settings.getMoniteClipboardQ()) {
startCBService();
}
bigBangLayout.post( new Runnable() {
@Override
public void run() {
setTargetWord();
}
});
}
开发者ID:mmjang,项目名称:ankihelper,代码行数:30,代码来源:PopupActivity.java
示例6: initVerticalRecyclerView
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
private void initVerticalRecyclerView(RecyclerView recyclerView) {
LayoutInflater appInflater = LayoutInflater.from(getActivity().getApplicationContext());
final DemoRecyclerAdapterBase adapter = new DemoRecyclerAdapterVertical(new ArrayList<>(DemoContentHelper.getReverseSpectrumItems(getResources())), appInflater);
recyclerView.setAdapter(adapter);
recyclerView.setLayoutManager(new StaggeredGridLayoutManager(GRID_SPAN_COUNT, StaggeredGridLayoutManager.VERTICAL));
OverScrollDecoratorHelper.setUpOverScroll(recyclerView, OverScrollDecoratorHelper.ORIENTATION_VERTICAL);
}
开发者ID:EverythingMe,项目名称:overscroll-decor,代码行数:9,代码来源:RecyclerViewStaggeredGridDemoFragment.java
示例7: initVerticalGridView
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
private void initVerticalGridView(List<DemoItem> content, GridView gridView) {
LayoutInflater appInflater = LayoutInflater.from(getActivity().getApplicationContext());
ListAdapter adapter = new DemoGridAdapter(appInflater, content);
gridView.setAdapter(adapter);
OverScrollDecoratorHelper.setUpOverScroll(gridView);
}
开发者ID:EverythingMe,项目名称:overscroll-decor,代码行数:8,代码来源:GridViewDemoFragment.java
示例8: initVerticalListView
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
private void initVerticalListView(List<DemoItem> content, ListView listView) {
LayoutInflater appInflater = LayoutInflater.from(getActivity().getApplicationContext());
ListAdapter adapter = new DemoListAdapter(appInflater, content);
listView.setAdapter(adapter);
OverScrollDecoratorHelper.setUpOverScroll(listView);
}
开发者ID:EverythingMe,项目名称:overscroll-decor,代码行数:8,代码来源:ListViewDemoFragment.java
示例9: initRecycler
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
private void initRecycler() {
mainRecycler.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.HORIZONTAL));
OverScrollDecoratorHelper.setUpOverScroll(mainRecycler, OverScrollDecoratorHelper.ORIENTATION_HORIZONTAL);
mainRecycler.setAdapter(new MainRecyclerAdapter(presenter.getTags()));
}
开发者ID:xujiaji,项目名称:HaiNaBaiChuan,代码行数:6,代码来源:MainFragment.java
示例10: initHorizontalScrollView
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
private void initHorizontalScrollView(HorizontalScrollView scrollView) {
OverScrollDecoratorHelper.setUpOverScroll(scrollView);
}
开发者ID:EverythingMe,项目名称:overscroll-decor,代码行数:4,代码来源:ScrollViewDemoFragment.java
示例11: initVerticalScrollView
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
private void initVerticalScrollView(ScrollView scrollView) {
OverScrollDecoratorHelper.setUpOverScroll(scrollView);
}
开发者ID:EverythingMe,项目名称:overscroll-decor,代码行数:4,代码来源:ScrollViewDemoFragment.java
示例12: initHorizontalViewPager
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
private void initHorizontalViewPager(List<DemoItem> items, ViewPager viewPager) {
ViewPagerAdapter adapter = new ViewPagerAdapter(items);
viewPager.setAdapter(adapter);
OverScrollDecoratorHelper.setUpOverScroll(viewPager);
}
开发者ID:EverythingMe,项目名称:overscroll-decor,代码行数:7,代码来源:ViewPagerDemoFragment.java
示例13: onCreateView
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
final ScrollView rootView = (ScrollView) inflater.inflate(R.layout.nested_scrollview_demo, null, false);
OverScrollDecoratorHelper.setUpOverScroll(rootView);
return rootView;
}
开发者ID:EverythingMe,项目名称:overscroll-decor,代码行数:7,代码来源:NestedScrollViewDemoFragment.java
注:本文中的me.everything.android.ui.overscroll.OverScrollDecoratorHelper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论