首页 > 解决方案 > 带有自定义日历的名称链接列表

问题描述

我正在使用 java 作为编程语言开发 android 应用程序,我想做一些事情,就像这个 Img Wicht 是日历顶部的名称列表,例如,当用户单击蓝色框时,我得到名称“amel”并在red 我得到“iman”等等 这是我的应用程序 Img2的屏幕截图

这是我的 xml 文件

<?xml version="1.0" encoding="utf-8"?><androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"  xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">  <LinearLayout
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:orientation="vertical"
  >
  <me.jlurena.revolvingweekview.WeekView
      android:id="@+id/revolving_weekview"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:eventTextColor="@android:color/white"
      app:hourHeight="60dp"
      app:headerColumnPadding="8dp"
      app:headerColumnTextColor="#8f000000"
      app:headerRowPadding="12dp"
      app:noOfVisibleDays="3"
      app:headerRowBackgroundColor="@color/white"
      app:dayBackgroundColor="#05000000"
      app:todayBackgroundColor="#1848adff"
      app:headerColumnBackground="#ffefefef"
      />

这个 repo myabe 有用的 weekView 日历

标签: javaandroidcalendar

解决方案


推荐阅读