Composable UI is themed by default with a MaterialTheme
object. It consists of three primary parts:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.IllegalStateException | |
// Tutorial and inspiration from https://www.baeldung.com/kotlin/dsl | |
@DslMarker | |
annotation class SqlDslMarker | |
@SqlDslMarker | |
abstract class Condition { | |
abstract fun addCondition(condition: Condition) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.coxautoinc.vehiclekit.core | |
import android.content.Context | |
import android.graphics.drawable.Animatable | |
import android.graphics.drawable.Drawable | |
import android.support.annotation.DrawableRes | |
import android.support.graphics.drawable.Animatable2Compat | |
import android.support.graphics.drawable.AnimatedVectorDrawableCompat | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
android:width="24dp" | |
android:height="24dp" | |
android:viewportHeight="24.0" | |
android:viewportWidth="24.0"> | |
<path | |
android:name="long_leg" | |
android:fillColor="#FFFFFFFF" | |
android:pathData="M 20 11 L 5 11 L 5 13 L 20 13 Z" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<attr name="mp_toolbar_style" format="reference" /> | |
<attr name="mp_header_style" format="reference" /> | |
<attr name="mp_select_color" format="reference" /> | |
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<!-- Base application theme. --> | |
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
<item name="android:spinnerStyle">@style/AppTheme.Form.Spinner</item> | |
<item name="android:spinnerItemStyle">@style/AppTheme.Form.Spinner.Item</item> | |
</style> | |
<!-- Spinner Styles --> | |
<style name="AppTheme.Form.Spinner" parent="Widget.AppCompat.Spinner"> | |
<item name="android:paddingRight">0dp</item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.graphics.Typeface; | |
import android.os.Build; | |
import android.support.v4.view.PagerAdapter; | |
import android.support.v4.view.ViewPager; | |
import android.util.AttributeSet; | |
import android.util.TypedValue; | |
import android.view.Gravity; | |
import android.view.LayoutInflater; | |
import android.view.View; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2014 Robert Szabo | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |