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


Java CardUI类代码示例

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


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

示例1: onCreate

import com.fima.cardsui.views.CardUI; //导入依赖的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

示例2: 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

示例3: 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

示例4: 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

示例5: onCreate

import com.fima.cardsui.views.CardUI; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	//Can use progress
	 requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

	 //get layout
	setContentView(R.layout.card);
	// 액션바백버튼가져오기
	getSupportActionBar().setDisplayHomeAsUpEnabled(true);
	
	
	// 카드 인터페이스를 불러온다.
	// init CardView
	mCardView = (CardUI) findViewById(R.id.cardsview);

	// Check Internet Connection
	ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
	NetworkInfo ni = cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
	boolean isWifiAvail = ni.isAvailable();
	boolean isWifiConn = ni.isConnected();
	ni = cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
	boolean isMobileAvail = ni.isAvailable();
	boolean isMobileConn = ni.isConnected();

	// Check Internet Connection
	if (isWifiConn == true || isMobileConn == true) {

		//set Progressbar
	      setSupportProgressBarIndeterminateVisibility(true);
	  	//Get Information

	      new Thread(new Runnable(){
			@Override
			public void run() {
				for (int i=30 ; i>0 ; i--){
					onGoing = true;
			    	new Downloader().execute(String.valueOf(i));
			    	while(true){
			    		if(!onGoing){
			    			break;
			    		}
			    		try {
							Thread.sleep(50);
						} catch (InterruptedException e) {
							e.printStackTrace();
						}
			    	}
			    }
			}
	      }).start();
			

	} else {
		// Not Connected To Internet
		AlertDialog.Builder builder = new AlertDialog.Builder(story.this);
		builder.setMessage(getString(R.string.networkerrord))
				.setPositiveButton(getString(R.string.yes), null)
				.setTitle(getString(R.string.networkerror));
		builder.show();
	}

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

示例6: 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

示例7: onActivityCreated

import com.fima.cardsui.views.CardUI; //导入依赖的package包/类
@Override
public void onActivityCreated(Bundle savedInstanceState) {
	super.onActivityCreated(savedInstanceState);
	cardView = (CardUI) getActivity().findViewById(R.id.campcard);
}
 
开发者ID:smo-key,项目名称:sohacks,代码行数:6,代码来源:CampingFragment.java

示例8: onActivityCreated

import com.fima.cardsui.views.CardUI; //导入依赖的package包/类
@Override
public void onActivityCreated(Bundle savedInstanceState) {
	super.onActivityCreated(savedInstanceState);
	cardView = (CardUI) getActivity().findViewById(R.id.cardsview);
}
 
开发者ID:smo-key,项目名称:sohacks,代码行数:6,代码来源:ParksFragment.java

示例9: onViewChanged

import com.fima.cardsui.views.CardUI; //导入依赖的package包/类
@Override
public void onViewChanged(HasViews hasViews) {
    mCardView = ((CardUI) hasViews.findViewById(id.cards));
    loadCards();
}
 
开发者ID:badrequest,项目名称:inSPorte,代码行数:6,代码来源:History_.java

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