Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added collapse long trip warning messages #524

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ dependencies {
implementation 'com.mapzen.android:lost:3.0.4'
// only added because of lint bug Timber 4.6.0
implementation 'com.jakewharton.timber:timber:4.7.0'
implementation 'cn.carbs.android:ExpandableTextView:1.0.3'

implementation "com.google.dagger:dagger:$daggerVersion"
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
Expand Down Expand Up @@ -163,4 +164,5 @@ dependencies {
exclude group: 'com.google.code.findbugs'
}
kaptAndroidTestDebug "com.google.dagger:dagger-compiler:$daggerVersion"

}
7 changes: 4 additions & 3 deletions app/src/main/res/layout/list_item_departure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
app:layout_constraintTop_toBottomOf="@+id/lineNameView"
tools:text="Zoologischer Garten (S+U)"/>

<TextView
<cn.carbs.android.expandabletextview.library.ExpandableTextView
android:id="@+id/messageView"
android:layout_width="0dp"
android:layout_height="wrap_content"
Expand All @@ -123,8 +123,9 @@
android:textSize="12sp"
app:layout_constraintLeft_toLeftOf="@+id/guideline"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/destinationView"
tools:text="This is a message that would be displayed and might be potentially very long."/>
android:text="This is a message that would be displayed and might be potentially very long."
app:layout_constraintTop_toBottomOf="@+id/destinationView"/>


</android.support.constraint.ConstraintLayout>

Expand Down