【问题标题】:CalendarView, need sampleCalendarView,需要样本
【发布时间】:2013-10-01 08:48:54
【问题描述】:

我正在使用CalendarView 构建一个应用程序。我的问题是,我找不到自定义日历样式的方法。

这是我的布局

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/calendario_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal" >

    <CalendarView
        android:id="@+id/calendarView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        />

</LinearLayout>

当我显示这个屏幕时,我会得到月份的名称和年份,就像在照片中一样。

如何自定义CalendarView 样式?

【问题讨论】:

  • 你不能自定义 CalanderView、DatePicker 和 TimePicker。
  • 那么,如何显示月份的数字?有一些属性可以自定义 CalendarView...但我什么也看不到...因为我无法获得天数。我需要一个例子!是我想要的

标签: android calendarview


【解决方案1】:

要设计日历,您可以试试这个Link 并更改

android:layout_height="wrap_content"

android:layout_height="match_parent"

这也可能对您有所帮助Link

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-03-13
    • 1970-01-01
    • 2023-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多