Back to project page droidling.
The source code is released under:
Copyright (c) 2012 Keith Trnka Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwa...
If you think the Android project droidling listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.ktrnka.droidling; // w w w. jav a 2s.c om import android.os.Bundle; import com.actionbarsherlock.app.SherlockActivity; import com.fima.cardsui.views.CardUI; /** * An activity for testing, plain and simple. * * @author keith.trnka */ public class DiagnosticActivity extends SherlockActivity { @SuppressWarnings("unused") private static final String TAG = "DiagnosticActivity"; private CardUI mCardView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.cardsui_main); // init CardView mCardView = (CardUI) findViewById(R.id.cardsview); mCardView.setSwipeable(false); mCardView.addCard(new ShareableCard("Test Title")); mCardView.addCard(new ShareableCard("Test Title", "Test body content")); mCardView.addCard(new ShareableCard("Test Title", "Test body content 2\nThis is a newline!")); mCardView.addCard(new ShareableCard("Test Title", "Test body content 2\nThis is a newline!")); mCardView.addCard(new ShareableCard("Test Title", "Test body content 2\nThis is a newline!")); mCardView.addCard(new ShareableCard("Test Title", "Test body content 2\nThis is a newline!")); // draw cards mCardView.refresh(); } }