我有一个日期数据库,我有一个以上的日期,所以我想突出我从数据库得到的所有日期的背景我尝试了一些逻辑,但它没有成功在这里我把我的代码进去无限loop.i希望输出这样的东西假设我有数据库5/3/2013和9/3/2013中的日期那么两个日期背景应该在日历视图上突出显示.我使用此链接http://www.androidhub4you.com/2012/10/custom-calendar-in-android.html这里是我的代码:
这里在printmonth()函数中我做了更改
public class CalendarActivity extends Activity implements OnClickListener {
private static final String tag = "CalendarActivity";
private TextView currentMonth;
private Button selectedDayMonthYearButton;
private ImageView prevMonth;
private ImageView nextMonth;
private GridView calendarView;
private GridCellAdapter adapter;
private Calendar _calendar;
@SuppressLint("NewApi")
private int month, year;
@SuppressLint({ "NewApi", "NewApi", "NewApi", "NewApi" })
private final DateFormat dateFormatter = new DateFormat();
private static final String dateTemplate = "MMMM yyyy";
int i;
String valuofday;
int stryear;
DB_Database db;
String strmonthvalueofdatabase;
String[] strdate;
String value; …Run Code Online (Sandbox Code Playgroud) 我现在可以在运动视图的画布上绘制文本问题是,当我绘制文本并在同一画布上进行下一次绘制时,我的绘制文本消失了我的意思是屏幕因无效而重新绘制,我想保留我以前的在同一个画布上绘制并进行新的绘制,我该怎么做?
@Override
protected void onDraw(Canvas canvas) {
Paint hint = new Paint();
path = new Path();
mTextPaths = new ArrayList<Path>();
Log.v("getting mtextpaths", mTextPaths.toString());
int m;
if (strgettile != null) {
for (m = 0; m < strgettile.length(); m++) {
System.out.println(strgettile.charAt(m));
char convertst = strgettile.charAt(m);
characterToString = Character.toString(convertst);
// canvas.drawText(characterToString, x, y, hint);
// canvas.drawText(characterToString, m
// * width + x, m * height + y, foreground); //its working in
// cross
// canvas.drawText(characterToString, x, m * height + y,
// …Run Code Online (Sandbox Code Playgroud) 我试过这个链接:
http://codepen.io/anon/pen/zxLdgz
http://www.webdesignerdepot.com/2012/10/creating-a-modal-window-with-html5-and-css3/
但它不适用于:
我在jsx文件中尝试了这段代码
<a href="#openModal">Open Modal</a>
<div id="openModal" className="modalDialog">
<div>
<a href="#close" title="Close" className="close">X</a>
<h2>Modal Box</h2>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>You could do a lot of things here like have a pop-up ad that shows when your website loads, or create a login/register form for users.</p>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
还有这段代码:
ondialog()
{
<dialog id="window">
<h3>Sample Dialog!</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Earum, inventore!</p>
<button id="exit">Close …Run Code Online (Sandbox Code Playgroud) 我搜索了很多但没有为Blackberry中的Expandable listview找到单个链接,我知道如何在android中创建可扩展列表,如果有人对Blackberry Expandable listview有所了解,请帮助我.

String loanamount = edtamount.getText().toString();
double doubleloanamount = Double.parseDouble(loanamount);
String strloanamount = Double.toString(doubleloanamount);
Log.v("doubleloanamout", strloanamount);
String years = edtyears.getText().toString();
double doubleyears = Double.parseDouble(years) * 12;
String strpaymentdoubleyears = Double.toString(doubleyears);
Log.v("doubleyears", strpaymentdoubleyears);
double inrate = doubleloanamount * 11 / 100;
double monthlyrate = inrate / 12;
double roundmonthlyrate = Math.round(monthlyrate);
String inratefordemo = Double.toString(roundmonthlyrate);
double Payment = (doubleloanamount
* Math.pow(( roundmonthlyrate) + 1, (doubleyears)) * roundmonthlyrate)
/ (Math.pow( roundmonthlyrate + 1, (doubleyears)) - 1);
double roundpayment = Math.round(Payment);
String strpayment = Double.toString(roundpayment); …Run Code Online (Sandbox Code Playgroud)