event rounded corners

This commit is contained in:
rjain90 2019-05-09 15:50:54 +05:30
parent cee4ceacca
commit c8b7f04c2d
3 changed files with 15 additions and 13 deletions

View File

@ -4,9 +4,9 @@ apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-kapt'
apply plugin: 'de.timfreiheit.resourceplaceholders' apply plugin: 'de.timfreiheit.resourceplaceholders'
def keystorePropertiesFile = rootProject.file("keystore.properties") //def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties() //def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) //keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android { android {
compileSdkVersion 28 compileSdkVersion 28
@ -22,14 +22,14 @@ android {
setProperty("archivesBaseName", "calendar") setProperty("archivesBaseName", "calendar")
} }
signingConfigs { // signingConfigs {
release { // release {
keyAlias keystoreProperties['keyAlias'] // keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword'] // keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile']) // storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword'] // storePassword keystoreProperties['storePassword']
} // }
} // }
buildTypes { buildTypes {
debug { debug {
@ -38,7 +38,7 @@ android {
release { release {
minifyEnabled true minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release // signingConfig signingConfigs.release
} }
} }

View File

@ -68,4 +68,6 @@ open class SimpleActivity : BaseSimpleActivity() {
private fun unregisterObserver() { private fun unregisterObserver() {
contentResolver.unregisterContentObserver(calDAVSyncObserver) contentResolver.unregisterContentObserver(calDAVSyncObserver)
} }
} }

View File

@ -27,7 +27,7 @@ import org.joda.time.Days
// used in the Monthly view fragment, 1 view per screen // used in the Monthly view fragment, 1 view per screen
class MonthView(context: Context, attrs: AttributeSet, defStyle: Int) : View(context, attrs, defStyle) { class MonthView(context: Context, attrs: AttributeSet, defStyle: Int) : View(context, attrs, defStyle) {
private val BG_CORNER_RADIUS = 4f private val BG_CORNER_RADIUS = 8f
private val ROW_COUNT = 6 private val ROW_COUNT = 6
private var paint: Paint private var paint: Paint