Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
de.jodamob.android:clean-simple-calendar
Advanced tools
Small simple Android calendar implementation
Time-Square is the ultimate calendar but hard to customize. The alternative Caldroid is based on really unclean code, hard to change, hard to test. Also, custom selection logic is used instead of using selection and disabled states of the views.
This one is
It is just the month widget, no navigation or similar.
testCompile 'de.jodamob.android:clean-simple-calendar:1.0'
Add the CalendarWidget
to your layout.
Call
calendarWidget.set(
new CalendarBuilder(R.layout.calendar_item_layout, R.layout.calendar_header_layout));
or set more implicit the shown month:
calendarWidget.set(
CalendarDataFactory.getInstance(Locale.getDefault()).create(date, ROWS),
new CalendarBuilder(R.layout.calendar_item_layout, R.layout.calendar_header_layout));
where date is a date for the month to show and ROWS an int naming the number of rows to be shown (6 is default, 4 should be minimum)
done.
The layouts must have the following items:
the header layout (day names) must contain one textView with id R.id.day
(see the ids.xml)
the content (day numbers) must contain:
a TextView
with id R.id.date_text
and any kind of View
with id R.id.custom_cell
that will be used to set selected state (and disabled state for start/end of non-current month date)
example:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@id/custom_cell"
android:selectable="true"
android:background="@drawable/custom_calendar_bg_selector"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@id/date_text"
android:duplicateParentState="true"
android:layout_width="wrap_parent"
android:layout_height="wrap_parent"/>
</RelativeLayout>
Screenshot from simple_sample (US Locale)
Screenshot from simple_sample (GERMAN Locale)
Screenshot from styled_sample with custom fields and selection
Screenshot from simple_sample (Hebrew language)
Licensed under MIT license (c) 2015 Danny Preussler
FAQs
Small simple android calendar implementation
We found that de.jodamob.android:clean-simple-calendar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.