HTML5¼¼Êõ

¡¾ÎÞ˽·ÖÏí¡¿¸É»õ£¡£¡£¡Ò»¸öìÅ¿áµÄ×Ô¶¨ÒåÈÕÀú¿Ø¼þ£¬°ÚÍÑÈÕÀúʱ¼äÑ¡Ôñ·³ÄÕ£¬´¿¸£Àû~ - Äϳ¾(10)

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2016-08-12 12:00 ÎÒÒªÆÀÂÛ( )

1 package com.example.nanchen.mydateviewdemo; android.os.Bundle; 4 import android.support.v7.app.AppCompatActivity; 5 import android.widget.Toast; com.example.nanchen.mydateviewdemo.view.CalendarView

1 package com.example.nanchen.mydateviewdemo; android.os.Bundle; 4 import android.support.v7.app.AppCompatActivity; 5 import android.widget.Toast; com.example.nanchen.mydateviewdemo.view.CalendarView; 8 import com.example.nanchen.mydateviewdemo.view.CalendarView.OnCalendarViewListener; java.text.SimpleDateFormat; 11 import java.util.ArrayList; 12 import java.util.Date; 13 import java.util.List; 14 import java.util.Locale; MainActivity extends AppCompatActivity { 17 18 @Override onCreate(Bundle savedInstanceState) { 20 super.onCreate(savedInstanceState); 21 setContentView(R.layout.activity_main); CalendarView calendarView = (CalendarView) findViewById(R.id.calender); List<Date> markDates = new ArrayList<>(); 27 markDates.add(new Date()); 28 calendarView.setMarkDates(markDates); calendarView.setOnCalendarViewListener(new OnCalendarViewListener() { 32 33 @Override onCalendarItemClick(CalendarView view, Date date) { 35 final SimpleDateFormat format = new SimpleDateFormat("yyyyÄêMMÔÂddÈÕ", Locale.CHINA); 36 Toast.makeText(MainActivity.this, format.format(date), Toast.LENGTH_SHORT).show(); 37 } 38 }); 39 } 40 }

12£©²¼¾ÖÎļþ

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • ¡¾ÎÞ˽·ÖÏí£º´ÓÈëÃŵ½¾«Í¨ASP.NET MVC¡¿´Ó0¿ªÊ¼£¬Ò»Æð´î¿ò¼Ü¡¢×öÏîÄ¿ £¨14£©¸½Êý¾Ý¿â¡¢·¢²¼ÏîÄ¿ - ¹û¶³²¼¶¡Ï²

    ¡¾ÎÞ˽·ÖÏí£º´ÓÈëÃŵ½¾«Í¨ASP.NET MVC¡¿´Ó0¿ªÊ¼£¬Ò»Æð´î¿ò¼Ü¡¢×öÏîÄ¿

    2016-07-30 12:00

  • ·ÖÏí×Ô¼ºµÄ³¬ÇáÁ¿¼¶¸ßÐÔÄÜORMÊý¾Ý·ÃÎÊ×é¼þDeft£¬±Èdapper¿ì20%ÒÔÉÏ - Ä°³ÇÐÄÁ鲶ÊÖ

    ·ÖÏí×Ô¼ºµÄ³¬ÇáÁ¿¼¶¸ßÐÔÄÜORMÊý¾Ý·ÃÎÊ×é¼þDeft£¬±Èdapper¿ì20%ÒÔÉÏ -

    2016-07-29 14:00

  • ¡¾S¡¿¡¾S¡¿¡¾S¡¿Ò»´ó²¨Ç°¶Ë¸É»õÕûºÏ£¨Ò»£© - VanСʱ

    ¡¾S¡¿¡¾S¡¿¡¾S¡¿Ò»´ó²¨Ç°¶Ë¸É»õÕûºÏ£¨Ò»£© - VanСʱ

    2016-07-28 15:00

  • ¶ÀÁ¢¿ª·¢ Ò»¸öÉç½» APP µÄ¼Ü¹¹·ÖÏí (ÒÑʵÏÖ) - Ö¸¼âϵÄÓÄÁé

    ¶ÀÁ¢¿ª·¢ Ò»¸öÉç½» APP µÄ¼Ü¹¹·ÖÏí (ÒÑʵÏÖ) - Ö¸¼âϵÄÓÄÁé

    2016-07-19 16:00

ÍøÓѵãÆÀ
Ï