首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CalendarView,需要样品

CalendarView,需要样品
EN

Stack Overflow用户
提问于 2013-10-01 08:48:54
回答 1查看 3.3K关注 0票数 1

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

这是我的版面

代码语言:javascript
复制
<?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样式?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-10-01 10:18:12

为了设计日历,您可以尝试这个Link并更改

代码语言:javascript
复制
android:layout_height="wrap_content"

代码语言:javascript
复制
android:layout_height="match_parent"

这也可能帮助您Link

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19111796

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档