本文整理汇总了Java中com.fima.cardsui.objects.CardStack.add方法的典型用法代码示例。如果您正苦于以下问题:Java CardStack.add方法的具体用法?Java CardStack.add怎么用?Java CardStack.add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.fima.cardsui.objects.CardStack
的用法示例。
在下文中一共展示了CardStack.add方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addAsyncCard
import com.fima.cardsui.objects.CardStack; //导入方法依赖的package包/类
public void addAsyncCard(Card card, boolean refresh, Context ctx) {
final Card asyncCard = card;
final Context context = ctx;
new Thread(new Runnable() {
@Override
public void run() {
asyncCard.getCardContent(context);
}
}).start();
CardStack stack = new CardStack();
stack.add(asyncCard);
mStacks.add(stack);
if (refresh) refresh();
}
示例2: addSeparateCards
import com.fima.cardsui.objects.CardStack; //导入方法依赖的package包/类
public void addSeparateCards(Card[] cards, boolean refresh) {
for (int i = 0; i < cards.length; i++) {
CardStack stack = new CardStack();
stack.add(cards[i]);
mStacks.add(stack);
}
if (refresh)
refresh();
}
示例3: addCard
import com.fima.cardsui.objects.CardStack; //导入方法依赖的package包/类
public void addCard(Card card, boolean refresh) {
CardStack stack = new CardStack();
stack.add(card);
mStacks.add(stack);
if (refresh)
refresh();
}
示例4: addCardToLastStack
import com.fima.cardsui.objects.CardStack; //导入方法依赖的package包/类
public void addCardToLastStack(Card card, boolean refresh) {
if (mStacks.isEmpty()) {
addCard(card, refresh);
return;
}
int lastItemPos = mStacks.size() - 1;
CardStack cardStack = (CardStack) mStacks.get(lastItemPos);
cardStack.add(card);
mStacks.set(lastItemPos, cardStack);
if (refresh) refresh();
}
示例5: addCard
import com.fima.cardsui.objects.CardStack; //导入方法依赖的package包/类
public void addCard(Card card, boolean refresh) {
CardStack stack = new CardStack();
stack.add(card);
mStacks.add(stack);
if (refresh)
refresh();
}
示例6: addCardToLastStack
import com.fima.cardsui.objects.CardStack; //导入方法依赖的package包/类
public void addCardToLastStack(Card card, boolean refresh) {
if (mStacks.isEmpty()) {
addCard(card, refresh);
return;
}
int lastItemPos = mStacks.size() - 1;
CardStack cardStack = (CardStack) mStacks.get(lastItemPos);
cardStack.add(card);
mStacks.set(lastItemPos, cardStack);
if (refresh)
refresh();
}
示例7: addCard
import com.fima.cardsui.objects.CardStack; //导入方法依赖的package包/类
public void addCard(Card card, boolean refresh) {
CardStack stack = new CardStack();
stack.add(card);
mStacks.add(stack);
if (refresh)
refresh();
}
示例8: addCardToLastStack
import com.fima.cardsui.objects.CardStack; //导入方法依赖的package包/类
public void addCardToLastStack(Card card, boolean refresh) {
int lastItemPos = mStacks.size() - 1;
CardStack cardStack = (CardStack) mStacks.get(lastItemPos);
cardStack.add(card);
mStacks.set(lastItemPos, cardStack);
if (refresh)
refresh();
}
示例9: Render
import com.fima.cardsui.objects.CardStack; //导入方法依赖的package包/类
void Render(NSStation[] nsStations, final View x, final Context context) {
AutoCompleteTextView auto = (AutoCompleteTextView)x.findViewById(R.id.AutoCompleteTextView1);
AutoCompleteTextView auto2 = (AutoCompleteTextView)x.findViewById(R.id.AutoCompleteTextView2);
AutoCompleteTextView auto3 = (AutoCompleteTextView)x.findViewById(R.id.AutoCompleteTextView3);
ArrayList<String> fullnames = new ArrayList<String>();
CardUI mCardView = (CardUI) x.findViewById(R.id.cardsview);
mCardView.setSwipeable(true);
CardStack stack = new CardStack();
stack.setTitle("Recentelijke stations");
for(Integer i = 0; i < nsStations.length; i++) {
fullnames.add((nsStations[i]).Namen.Lang);
if(i < 5)
stack.add(new StationCard((nsStations[i]).Namen.Lang));
}
mCardView.addStack(stack);
//draw time
auto.setAdapter(new ArrayAdapter<String>(context, android.R.layout.simple_list_item_1, fullnames));
auto2.setAdapter(new ArrayAdapter<String>(context, android.R.layout.simple_list_item_1, fullnames));
auto3.setAdapter(new ArrayAdapter<String>(context, android.R.layout.simple_list_item_1, fullnames));
mCardView.refresh();
//stacktitle, do you even #HOLO?
stack.setTitleTypeFace(Typeface.createFromAsset(context.getAssets(), "fonts/Roboto-ThinItalic.ttf"));
}