无法在Android CalanderView上显示日期

无法在Android CalanderView上显示日期,android,calendar,datepicker,android-datepicker,Android,Calendar,Datepicker,Android Datepicker,我正在尝试使用DatePicker或CalanderView创建日历视图。但是,我不能让它们显示星期一、星期二之类的日子。等在顶部,就像普通日历一样。我可以看到IDE中的日子,但看不到在实际平板电脑和手机中运行的日子。我尝试使用日期选择器和calanderView。但没有一个成功。很抱歉,堆栈溢出不允许我上传我的屏幕短片,因为我还没有任何声誉。所以我链接到我的屏幕短片 这里是screen short的链接 从IDE: 电话: 下面是使用DatePicker的示例 <?xml ver

我正在尝试使用DatePicker或CalanderView创建日历视图。但是,我不能让它们显示星期一、星期二之类的日子。等在顶部,就像普通日历一样。我可以看到IDE中的日子,但看不到在实际平板电脑和手机中运行的日子。我尝试使用日期选择器和calanderView。但没有一个成功。很抱歉,堆栈溢出不允许我上传我的屏幕短片,因为我还没有任何声誉。所以我链接到我的屏幕短片

这里是screen short的链接 从IDE: 电话:

下面是使用DatePicker的示例

    <?xml version="1.0" encoding="utf-8"?>

   <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="vertical"

          android:background="#ff46554b"
          android:layout_width="match_parent"
          android:layout_height="match_parent" android:weightSum="1">






<LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_weight=".8"
        android:weightSum="1"
        android:layout_height="wrap_content">

    <DatePicker
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:calendarViewShown="true"
            android:spinnersShown="false"
            android:showWeekNumber="false"
            android:id="@+id/datePicker"
            android:layout_gravity="center_horizontal" android:layout_weight="0.60"/>
</LinearLayout>

<LinearLayout
        android:orientation="horizontal"
        android:layout_width="match_parent"
         android:layout_weight=".2"
        android:weightSum="1"
        android:layout_height="53dp">
    <Button
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:text="cancel"
            android:layout_weight=".5"
            android:layout_marginRight="5dp"
            android:layout_marginLeft="5dp"

            android:background="@drawable/refreshbutton"
            android:id="@+id/cancel"/>

    <Button
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:text="select"
           android:layout_marginLeft="5dp"
           android:layout_marginRight="5dp"
            android:background="@drawable/refreshbutton"
            android:layout_weight=".5"
            android:id="@+id/select"/>


</LinearLayout>

这是我的约会对象

<DatePicker
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:calendarViewShown="true"
        android:spinnersShown="false"            
        android:id="@+id/datePicker" 
        android:layout_gravity="center_horizontal" android:layout_weight="0.60"/>

这是我的日历视图

 <CalendarView
android:layout_width="match_parent"
android:layout_height="match_parent"
   android:id="@+id/calendarView"
      android:layout_alignParentLeft="true"
     andro`enter code here`id:layout_alignParentTop="true"
       android:scrollbarStyle="insideOverlay"
       android:layout_gravity="center_horizontal"
       android:layout_weight="0.8"/>


我在您的.xml中没有看到日期选择器或日历视图,我只是将日期选择器和日历视图放在一起。请看。是的,没有截图这很难。您可以尝试精简布局,使其仅包含您的日历视图,以使调试更容易。您好,bstar55,请查看这些链接以了解屏幕简短信息。电话屏幕短路:和IDE屏幕短路: