Skip to content

Commit 7488049

Browse files
committed
screenshots added
1 parent fa66464 commit 7488049

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ dependencies {
4444
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
4545
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
4646

47-
implementation project(':showmoretextview')
47+
// implementation project(':showmoretextview')
4848

4949

50-
// implementation 'com.github.sanjaydraws:ShowMoreTextView:1.0.0'
50+
implementation 'com.github.sanjaydraws:ShowMoreTextView:1.0.0'
5151

5252
}

app/src/main/res/layout/activity_main.xml

+4-11
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,15 @@
1717
android:layout_width="wrap_content"
1818
android:id="@+id/showMoreText"
1919
android:layout_height="wrap_content"
20-
app:showMoreMaxLine="2"
20+
app:showMoreMaxLine="3"
2121
android:text="@string/long_text"
22-
app:showMoreTextColor="@color/teal_700"
23-
app:showMoreText="Show More"
22+
app:showMoreTextColor="#87012B"
23+
app:showMoreText="...Show More"
2424
app:layout_constraintStart_toStartOf="parent"
2525
app:layout_constraintEnd_toEndOf="parent"
2626
app:layout_constraintTop_toTopOf="parent"
2727
/>
2828

29-
<TextView
30-
android:layout_width="wrap_content"
31-
android:layout_height="wrap_content"
32-
app:layout_constraintStart_toStartOf="parent"
33-
app:layout_constraintEnd_toEndOf="parent"
34-
app:layout_constraintTop_toBottomOf="@id/showMoreText"
35-
android:text="@string/long_text"
36-
/>
29+
3730
</androidx.constraintlayout.widget.ConstraintLayout>
3831
</layout>

screenshots/showMoreTextView.gif

546 KB
Loading

0 commit comments

Comments
 (0)