本文整理汇总了Java中com.shamanland.fab.ShowHideOnScroll类的典型用法代码示例。如果您正苦于以下问题:Java ShowHideOnScroll类的具体用法?Java ShowHideOnScroll怎么用?Java ShowHideOnScroll使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ShowHideOnScroll类属于com.shamanland.fab包,在下文中一共展示了ShowHideOnScroll类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.shamanland.fab.ShowHideOnScroll; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle bundle = getIntent().getExtras();
pattern = bundle.getString("Pattern");
setContentView(R.layout.services_list);
context = ServiceList.this;
Typeface typeFace = Typeface.createFromAsset(getAssets(), "fonts/RobotoCondensed-Regular.ttf");
inflater = (LayoutInflater)(context).getSystemService(Context.LAYOUT_INFLATER_SERVICE);
ExpandableListView servicelist = (ExpandableListView) findViewById(R.id.servicesList);
View add_service = findViewById(R.id.add_service);
dbHandler = new DBHelper(context);
crypter = new Crypter(pattern);
loadData();
checkNoRecord();
adapter = new ServiceListAdapter(records, context, typeFace);
servicelist.setIndicatorBounds(0, 20);
servicelist.setAdapter(adapter);
registerForContextMenu(servicelist);
servicelist.setOnTouchListener(new ShowHideOnScroll(add_service));
add_service.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
popup(null);
}
});
}