本文整理汇总了Java中com.fima.cardsui.objects.CardStack类的典型用法代码示例。如果您正苦于以下问题:Java CardStack类的具体用法?Java CardStack怎么用?Java CardStack使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CardStack类属于com.fima.cardsui.objects包,在下文中一共展示了CardStack类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:17,代码来源:CardUI.java
示例2: getView
import com.fima.cardsui.objects.CardStack; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
final CardStack stack = getItem(position);
stack.setAdapter(this);
stack.setPosition(position);
// TODO: caching is not working well
// if (convertView != null) {
// CardStack tagStack = (CardStack) convertView.getTag();
// ArrayList<Card> tagCards = tagStack.getCards();
// ArrayList<Card> cards = stack.getCards();
// Card lastTagCard = tagCards.get(tagCards.size()-1);
// if (!lastTagCard.equals(cards.get(cards.size()-1))) {
// convertView = stack.getView(mContext);
// convertView.setTag(stack);
// }
// } else if (convertView == null) {
convertView = stack.getView(mContext, mSwipeable);
// convertView.setTag(stack);
// }
return convertView;
}
开发者ID:jamison904,项目名称:APKreator,代码行数:25,代码来源:StackAdapter.java
示例3: 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();
}
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:12,代码来源:CardUI.java
示例4: 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();
}
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:8,代码来源:CardUI.java
示例5: 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();
}
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:12,代码来源:CardUI.java
示例6: getView
import com.fima.cardsui.objects.CardStack; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
final CardStack stack = getItem(position);
stack.setAdapter(this);
stack.setPosition(position);
// the CardStack can decide whether to use convertView or not
convertView = stack.getView(mContext, convertView, mSwipeable);
return convertView;
}
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:12,代码来源:StackAdapter.java
示例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();
}
开发者ID:jamison904,项目名称:APKreator,代码行数:10,代码来源:CardUI.java
示例8: 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();
}
开发者ID:jamison904,项目名称:APKreator,代码行数:14,代码来源:CardUI.java
示例9: onCreate
import com.fima.cardsui.objects.CardStack; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//noinspection ConstantConditions
getActionBar().setDisplayHomeAsUpEnabled(true);
setContentView(R.layout.cardsui);
CardUI cardsUI = (CardUI) findViewById(R.id.cardsui);
cardsUI.addStack(new CardStack(""));
cardsUI.addStack(new CardStack(""));
}
开发者ID:Androguide,项目名称:Pimp_my_Z1,代码行数:11,代码来源:SoundControlActivity.java
示例10: getView
import com.fima.cardsui.objects.CardStack; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
final CardStack stack = getItem(position);
stack.setAdapter(this);
stack.setPosition(position);
// the CardStack can decide whether to use convertView or not
convertView = stack.getView(mContext, convertView, mSwipeable);
return convertView;
}
开发者ID:cast-framework,项目名称:cards-against-robots,代码行数:11,代码来源:StackAdapter.java
示例11: 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();
}
开发者ID:PaperAirplane-Dev-Team,项目名称:CardsUILib,代码行数:10,代码来源:CardUI.java
示例12: 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();
}
开发者ID:PaperAirplane-Dev-Team,项目名称:CardsUILib,代码行数:10,代码来源:CardUI.java
示例13: 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"));
}
开发者ID:jariz,项目名称:Reisplanner,代码行数:29,代码来源:PlannerFragment.java
示例14: addStack
import com.fima.cardsui.objects.CardStack; //导入依赖的package包/类
public void addStack(CardStack stack, boolean refresh) {
mStacks.add(stack);
if (refresh)
refresh();
}
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:7,代码来源:CardUI.java
示例15: setCurrentStackTitle
import com.fima.cardsui.objects.CardStack; //导入依赖的package包/类
public void setCurrentStackTitle(String title) {
CardStack cardStack = (CardStack) mStacks
.get(getLastCardStackPosition());
cardStack.setTitle(title);
}
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:7,代码来源:CardUI.java
示例16: getLastStack
import com.fima.cardsui.objects.CardStack; //导入依赖的package包/类
public CardStack getLastStack() {
return (CardStack) mStacks.get(getLastCardStackPosition());
}
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:4,代码来源:CardUI.java
示例17: getItem
import com.fima.cardsui.objects.CardStack; //导入依赖的package包/类
@Override
public CardStack getItem(int position) {
return (CardStack) mStacks.get(position);
}
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:5,代码来源:StackAdapter.java
示例18: setItems
import com.fima.cardsui.objects.CardStack; //导入依赖的package包/类
public void setItems(CardStack cardStack, int position) {
mStacks.set(position, cardStack);
}
开发者ID:hsbadr,项目名称:MultiSystem,代码行数:4,代码来源:StackAdapter.java
注:本文中的com.fima.cardsui.objects.CardStack类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论