forked from mirror/monocles_chat_clean
update fork #128
2 changed files with 9 additions and 1 deletions
Make story titles with long text scrollable
commit
c6150583b6
|
|
@ -1,6 +1,7 @@
|
|||
package eu.siacs.conversations.ui;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.text.method.ScrollingMovementMethod;
|
||||
import android.text.format.DateUtils;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
|
|
@ -74,6 +75,11 @@ public class StoryViewActivity extends XmppActivity implements StoryFragment.OnS
|
|||
|
||||
viewPager = findViewById(R.id.view_pager);
|
||||
titleView = findViewById(R.id.story_title_view);
|
||||
titleView.setMovementMethod(new ScrollingMovementMethod());
|
||||
titleView.setOnTouchListener((v, event) -> {
|
||||
v.getParent().requestDisallowInterceptTouchEvent(true);
|
||||
return false;
|
||||
});
|
||||
progressView = findViewById(R.id.story_progress_view);
|
||||
bottomPanel = findViewById(R.id.bottom_panel);
|
||||
|
||||
|
|
@ -292,4 +298,4 @@ public class StoryViewActivity extends XmppActivity implements StoryFragment.OnS
|
|||
invalidateOptionsMenu();
|
||||
refreshUi();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,6 +71,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:autoLink="web"
|
||||
android:linksClickable="true"
|
||||
android:maxLines="8"
|
||||
android:scrollbars="vertical"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="18sp" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue