当前位置: 首页>>代码示例>>Java>>正文


Java AbstractCard类代码示例

本文整理汇总了Java中com.fima.cardsui.objects.AbstractCard的典型用法代码示例。如果您正苦于以下问题:Java AbstractCard类的具体用法?Java AbstractCard怎么用?Java AbstractCard使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AbstractCard类属于com.fima.cardsui.objects包,在下文中一共展示了AbstractCard类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initData

import com.fima.cardsui.objects.AbstractCard; //导入依赖的package包/类
private void initData(Context context) {
    mContext = context;
    LayoutInflater inflater = LayoutInflater.from(context);
    mStacks = new ArrayList<AbstractCard>();
    //inflate a different layout, depending on the number of columns
    if (mColumnNumber == 1) {
        inflater.inflate(R.layout.cards_view, this);
        // init observable scrollview
        mListView = (QuickReturnListView) findViewById(R.id.listView);
    } else {
        //initialize the mulitcolumn view
        inflater.inflate(R.layout.cards_view_multicolumn, this);
        mTableLayout = (TableLayout) findViewById(R.id.tableLayout);
    }
    // mListView.setCallbacks(this);

    mHeader = inflater.inflate(R.layout.header, null);
    mQuickReturnView = (ViewGroup) findViewById(R.id.sticky);
    mPlaceholderView = mHeader.findViewById(R.id.placeholder);

}
 
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:22,代码来源:CardUI.java

示例2: initData

import com.fima.cardsui.objects.AbstractCard; //导入依赖的package包/类
private void initData(Context context) {
	mContext = context;
	LayoutInflater inflater = LayoutInflater.from(context);
	inflater.inflate(R.layout.cards_view, this);

	mStacks = new ArrayList<AbstractCard>();

	// init observable scrollview
	mListView = (QuickReturnListView) findViewById(R.id.listView);
	// mListView.setCallbacks(this);

	mHeader = inflater.inflate(R.layout.header, null);
	mQuickReturnView = (ViewGroup) findViewById(R.id.sticky);
	mPlaceholderView = mHeader.findViewById(R.id.placeholder);

}
 
开发者ID:PaperAirplane-Dev-Team,项目名称:CardsUILib,代码行数:17,代码来源:CardUI.java

示例3: StackAdapter

import com.fima.cardsui.objects.AbstractCard; //导入依赖的package包/类
public StackAdapter(Context context, ArrayList<AbstractCard> stacks,
                    boolean swipable) {
    mContext = context;
    mStacks = stacks;
    mSwipeable = swipable;

}
 
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:8,代码来源:StackAdapter.java

示例4: StackAdapter

import com.fima.cardsui.objects.AbstractCard; //导入依赖的package包/类
public StackAdapter(Context context, ArrayList<AbstractCard> stacks,
		boolean swipable) {
	mContext = context;
	mStacks = stacks;
	mSwipeable = swipable;

}
 
开发者ID:jamison904,项目名称:APKreator,代码行数:8,代码来源:StackAdapter.java

示例5: StackAdapter

import com.fima.cardsui.objects.AbstractCard; //导入依赖的package包/类
public StackAdapter(Context context, ArrayList<AbstractCard> stacks,
		boolean swipable) {
	mContext = context;
	mResources = mContext.getResources();
	mStacks = stacks;
	mSwipeable = swipable;

}
 
开发者ID:PaperAirplane-Dev-Team,项目名称:CardsUILib,代码行数:9,代码来源:StackAdapter.java

示例6: clearCards

import com.fima.cardsui.objects.AbstractCard; //导入依赖的package包/类
public void clearCards() {
    mStacks = new ArrayList<AbstractCard>();
    renderedCardsStacks = 0;
    refresh();
}
 
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:6,代码来源:CardUI.java

示例7: setItems

import com.fima.cardsui.objects.AbstractCard; //导入依赖的package包/类
public void setItems(ArrayList<AbstractCard> stacks) {
    mStacks = stacks;
    notifyDataSetChanged();
}
 
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:5,代码来源:StackAdapter.java

示例8: setItems

import com.fima.cardsui.objects.AbstractCard; //导入依赖的package包/类
public void setItems(ArrayList<AbstractCard> stacks) {
	mStacks = stacks;
	notifyDataSetChanged();
}
 
开发者ID:jamison904,项目名称:APKreator,代码行数:5,代码来源:StackAdapter.java

示例9: clearCards

import com.fima.cardsui.objects.AbstractCard; //导入依赖的package包/类
public void clearCards() {
	mStacks = new ArrayList<AbstractCard>();
	renderedCardsStacks = 0;
	refresh();
}
 
开发者ID:PaperAirplane-Dev-Team,项目名称:CardsUILib,代码行数:6,代码来源:CardUI.java


注:本文中的com.fima.cardsui.objects.AbstractCard类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。