Removed highlighting of episode title
This commit is contained in:
parent
08951615b4
commit
3cab62348a
|
@ -161,7 +161,9 @@ public class CoverFragment extends Fragment {
|
||||||
int animUnit = 1500;
|
int animUnit = 1500;
|
||||||
if (lines > txtvEpisodeTitle.getMaxLines()) {
|
if (lines > txtvEpisodeTitle.getMaxLines()) {
|
||||||
ObjectAnimator verticalMarquee = ObjectAnimator.ofInt(
|
ObjectAnimator verticalMarquee = ObjectAnimator.ofInt(
|
||||||
txtvEpisodeTitle, "scrollY", 0, txtvEpisodeTitle.getHeight())
|
txtvEpisodeTitle, "scrollY", 0, (lines - txtvEpisodeTitle.getMaxLines()) * (
|
||||||
|
(txtvEpisodeTitle.getHeight() - txtvEpisodeTitle.getPaddingTop()
|
||||||
|
- txtvEpisodeTitle.getPaddingBottom()) / txtvEpisodeTitle.getMaxLines()))
|
||||||
.setDuration(lines * animUnit);
|
.setDuration(lines * animUnit);
|
||||||
ObjectAnimator fadeOut = ObjectAnimator.ofFloat(
|
ObjectAnimator fadeOut = ObjectAnimator.ofFloat(
|
||||||
txtvEpisodeTitle, "alpha", 0);
|
txtvEpisodeTitle, "alpha", 0);
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:squareImageView="http://schemas.android.com/apk/de.danoeh.antennapod"
|
xmlns:squareImageView="http://schemas.android.com/apk/de.danoeh.antennapod"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:id="@+id/cover_fragment"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:id="@+id/cover_fragment"
|
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:gravity="center">
|
android:gravity="center">
|
||||||
|
|
||||||
|
@ -57,7 +57,6 @@
|
||||||
android:id="@+id/txtvEpisodeTitle"
|
android:id="@+id/txtvEpisodeTitle"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?android:selectableItemBackground"
|
|
||||||
android:ellipsize="none"
|
android:ellipsize="none"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:maxLines="2"
|
android:maxLines="2"
|
||||||
|
@ -125,6 +124,7 @@
|
||||||
android:text="@string/shownotes_label"
|
android:text="@string/shownotes_label"
|
||||||
android:textColor="?android:attr/textColorSecondary"
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -168,6 +168,7 @@
|
||||||
android:contentDescription="@string/next_chapter"
|
android:contentDescription="@string/next_chapter"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
app:srcCompat="@drawable/ic_chapter_next" />
|
app:srcCompat="@drawable/ic_chapter_next" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
Loading…
Reference in New Issue