Search results to CardView, API 22 support

parser-fixes
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'
android {
compileSdkVersion 21
compileSdkVersion 22
buildToolsVersion '21.1.2'
defaultConfig {
applicationId 'org.bspeice.minimalbible'
minSdkVersion 8
targetSdkVersion 21
targetSdkVersion 22
def travis_code = System.getenv("TRAVIS_BUILD_NUMBER")
if (travis_code)
@ -68,15 +68,14 @@ dependencies {
compile 'com.squareup.dagger:dagger:+'
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:2.1.0'
provided 'de.devland.esperandro:esperandro:2.1.0'
compile 'de.devland.esperandro:esperandro-api:+'
provided 'de.devland.esperandro:esperandro:+'
compile 'com.jakewharton:butterknife:+'
compile 'com.readystatesoftware.systembartint:systembartint:+'
compile 'com.netflix.rxjava:rxjava-android:+'
compile 'com.android.support:appcompat-v7:21.+'
compile 'com.android.support:recyclerview-v7:21.+'
compile 'com.android.support:appcompat-v7:+'
compile 'com.android.support:recyclerview-v7:+'
compile 'com.android.support:cardview-v7:+'
compile 'org.apache.commons:commons-lang3:+'
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,19 +1,29 @@
<?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_height="?android:attr/listPreferredItemHeight"
android:orientation="vertical">
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">
<TextView
android:id="@+id/verseName"
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:orientation="vertical">
<TextView
android:id="@+id/verseContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
<TextView
android:id="@+id/verseName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/verseContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
</android.support.v7.widget.CardView>

View File

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