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


Java CardUI.refresh方法代码示例

本文整理汇总了Java中com.fima.cardsui.views.CardUI.refresh方法的典型用法代码示例。如果您正苦于以下问题:Java CardUI.refresh方法的具体用法?Java CardUI.refresh怎么用?Java CardUI.refresh使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.fima.cardsui.views.CardUI的用法示例。


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

示例1: onCreateView

import com.fima.cardsui.views.CardUI; //导入方法依赖的package包/类
@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View home = inflater.inflate(R.layout.activity_home, container, false);
		
		mCardView = (CardUI) home.findViewById(R.id.cardsview);
		mCardView.setSwipeable(false);
		
		
		region = (Spinner) home.findViewById(R.id.spSearchRegion);
		service = (Spinner) home.findViewById(R.id.spSearchService);
		search = (Button) home.findViewById(R.id.btSearch);
		
//		search.setOnClickListener(new View.OnClickListener() {
//			
//			@Override
//			public void onClick(View v) {
//				
//				
//			}
//		});
		
		SearchCard testCard = new SearchCard("ATM and Branch Locator");

		mCardView.addCard(testCard);
		mCardView.refresh();
		
		return home;
	}
 
开发者ID:uint16,项目名称:CRDB-Mobile-Banking-Demo,代码行数:30,代码来源:HomeFragment.java

示例2: drawCards

import com.fima.cardsui.views.CardUI; //导入方法依赖的package包/类
public void drawCards(String user, String contents) {

		// add one card, and then add another one to the last stack.
		// init CardView
		mCardView = (CardUI) findViewById(R.id.cardsview);
		mCardView.setSwipeable(false);

		//User name null is not correct documents
		if(doc_user_name.matches("null")){}else{
		// 카드 생성
		System.out.println(doc_contents);
		MyImageCard story = (new MyImageCard(user, contents.replace("<eNtER>", "\n"), "#000000",
				"#000000", false, true, R.drawable.contact));

		story.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(story.this, storyview.class);
				intent.putExtra("doc_srl", "1" );
				startActivity(intent);
			}
		});
		mCardView.addCard(story);
		}
		mCardView.refresh();

		
		 
	}
 
开发者ID:tarksgit,项目名称:SAOSP,代码行数:31,代码来源:story.java

示例3: onCreate

import com.fima.cardsui.views.CardUI; //导入方法依赖的package包/类
@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      this.setContentView(R.layout.activity_scan_details);

mCardView = (CardUI) findViewById(R.id.cardsview);
mCardView.setSwipeable(false);

      mDb = DatabaseHelper.getInstance(this);
      
      Intent i = getIntent();
      long scan_id = i.getLongExtra("scan_id", -1);
      
      mScan = mDb.getScan(scan_id);
      
      if (mScan != null)
      {
       setTitle(mScan.getLocation() + " " + mScan.getCreatedAt());
       
       List<CellInfo> cells = mDb.getAllCellsByScanId(mScan.getId());
       
       for (CellInfo cInfo : cells)
       {
       	String cTitle = "Cell Identifier (CID) " + cInfo.getCID();
       	String cContent = cInfo.toString();
       	
    	mCardView
		.addCard(new ScanDetailCard(
				cTitle,
				cContent,
				"#00ff00", "#333333", false, false));
       }
       
	
	// draw cards
	mCardView.refresh();
      }
      else
      {
      	finish();
      }
       
  }
 
开发者ID:jtwarren,项目名称:spidey,代码行数:44,代码来源:ScanDetailsActivity.java

示例4: onCreate

import com.fima.cardsui.views.CardUI; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_main);

	// init CardView
	mCardView = (CardUI) findViewById(R.id.cardsview);
	mCardView.setSwipeable(true);

	titleColorPicker = (ColorPicker) findViewById(R.id.titlePicker);

	stripeColorPicker = (ColorPicker) findViewById(R.id.stripePicker);
	clickable = (CheckBox) findViewById(R.id.checkClickable);
	addToStack = (CheckBox) findViewById(R.id.checkToStack);
	overflow = (CheckBox) findViewById(R.id.checkOverflow);
	createCard = (Button) findViewById(R.id.createCard);
	cardTitle = (EditText) findViewById(R.id.editTitle);
	cardDesc = (EditText) findViewById(R.id.editDesc);
	cardType = (Spinner) findViewById(R.id.cardType);
	divider = (View) findViewById(R.id.divider);
	expandCollapse = (ImageView) findViewById(R.id.expandCollapse);
	addCardLayout = (LinearLayout) findViewById(R.id.newCardLayout);
	clickableLayout = (LinearLayout) findViewById(R.id.clickableLayout);
	colorPickersLayout = (LinearLayout) findViewById(R.id.colorPickersLayout);
	checkBoxesLayout = (LinearLayout) findViewById(R.id.checkboxesLayout);
	colorTitle = (TextView) findViewById(R.id.colorTitle);
	colorStripe = (TextView) findViewById(R.id.colorStripe);

	addCardLayout.setVisibility(View.GONE);

	cardType.setVisibility(View.GONE);
	cardTitle.setVisibility(View.GONE);
	cardDesc.setVisibility(View.GONE);
	colorPickersLayout.setVisibility(View.GONE);
	divider.setVisibility(View.GONE);
	checkBoxesLayout.setVisibility(View.GONE);
	createCard.setVisibility(View.GONE);

	handleButton();
	handleSpinner();
	handleColorPickers();
	handleExpandCollapseClick();
	generateInitialCards();
	mCardView.refresh();
}
 
开发者ID:smo-key,项目名称:sohacks,代码行数:46,代码来源:MainActivity.java

示例5: onCreateView

import com.fima.cardsui.views.CardUI; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
		Bundle savedInstanceState) {
	
	firstAndLastName=CRDBApplication.user.getFirstName()+ " "+ CRDBApplication.user.getLastName();
	phone=CRDBApplication.user.getPhone();
	email=CRDBApplication.user.getEmail();
	account=CRDBApplication.user.getAccounts();

	View profile = inflater.inflate(R.layout.activity_profile, container,
			false);

	mCardView = (CardUI) profile.findViewById(R.id.cardsview);

	mCardView.setSwipeable(false);

	//create cards from database, static data for testing purposed
	
	MyImageCard testcard = new MyImageCard( firstAndLastName,R.drawable.ic_launcher,email, phone, "Active");
	
	
	BalanceCard test2 = new BalanceCard(account, 123498.34, 113498.34);
	
	mCardView.addCard(testcard);
	mCardView.addCard(test2);
	
	mCardView.refresh();
	return profile;
}
 
开发者ID:uint16,项目名称:CRDB-Mobile-Banking-Demo,代码行数:30,代码来源:UserProfileFragment.java


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