Search results to CardView, API 22 support

This commit is contained in:
Bradlee Speice 2015-04-05 20:55:55 -04:00
parent 1a5f7222cb
commit fdec1e3ed8
4 changed files with 35 additions and 22 deletions

View File

@ -13,12 +13,12 @@ apply plugin: 'kotlin-android'
apply plugin: 'play' apply plugin: 'play'
android { android {
compileSdkVersion 21 compileSdkVersion 22
buildToolsVersion '21.1.2' buildToolsVersion '21.1.2'
defaultConfig { defaultConfig {
applicationId 'org.bspeice.minimalbible' applicationId 'org.bspeice.minimalbible'
minSdkVersion 8 minSdkVersion 8
targetSdkVersion 21 targetSdkVersion 22
def travis_code = System.getenv("TRAVIS_BUILD_NUMBER") def travis_code = System.getenv("TRAVIS_BUILD_NUMBER")
if (travis_code) if (travis_code)
@ -68,15 +68,14 @@ dependencies {
compile 'com.squareup.dagger:dagger:+' compile 'com.squareup.dagger:dagger:+'
provided 'com.squareup.dagger:dagger-compiler:+' provided 'com.squareup.dagger:dagger-compiler:+'
// TODO: Figure out why I need to force 2.1.0 and can't just use + compile 'de.devland.esperandro:esperandro-api:+'
compile 'de.devland.esperandro:esperandro-api:2.1.0' provided 'de.devland.esperandro:esperandro:+'
provided 'de.devland.esperandro:esperandro:2.1.0'
compile 'com.jakewharton:butterknife:+' compile 'com.jakewharton:butterknife:+'
compile 'com.readystatesoftware.systembartint:systembartint:+' compile 'com.readystatesoftware.systembartint:systembartint:+'
compile 'com.netflix.rxjava:rxjava-android:+' compile 'com.netflix.rxjava:rxjava-android:+'
compile 'com.android.support:appcompat-v7:21.+' compile 'com.android.support:appcompat-v7:+'
compile 'com.android.support:recyclerview-v7:21.+' compile 'com.android.support:recyclerview-v7:+'
compile 'com.android.support:cardview-v7:+'
compile 'org.apache.commons:commons-lang3:+' compile 'org.apache.commons:commons-lang3:+'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

View File

@ -0,0 +1,2 @@
- Search results now are Material-compliant!
- Android 5.1 devices now supported

View File

@ -1,7 +1,16 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?android:attr/listPreferredItemHeight" android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="@dimen/cardview_padding"
card_view:cardCornerRadius="4dp"
card_view:contentPadding="@dimen/cardview_padding">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
@ -16,4 +25,5 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:textAppearance="?android:attr/textAppearanceSmall" /> android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout> </LinearLayout>
</android.support.v7.widget.CardView>

View File

@ -11,4 +11,6 @@
<dimen name="toolbar_height">56dp</dimen> <dimen name="toolbar_height">56dp</dimen>
<dimen name="biblemenu_child_padding">8dp</dimen> <dimen name="biblemenu_child_padding">8dp</dimen>
<dimen name="cardview_padding">4dp</dimen>
</resources> </resources>