View links to statuses inside Tusky (#568)
* View links to statuses inside Tusky * Only attempt to open links that look like mastodon statuses * Add support for pleroma statuses * Move "smells like mastodon" url check to click handler * Add bottom sheet to notify users of post query status * Improve architecture for managing search status * Push everything into SFragment * Add external lookup for non-locally-resolved account links * Clean up copypasta from LinkHelper.setClickableText * Apply PR feedback * Migrate bottom sheet wrappers to CoordinatorLayoutmain
parent
9ae7c385ca
commit
51b94b876f
@ -0,0 +1,11 @@ |
||||
package com.keylesspalace.tusky.util |
||||
|
||||
import android.text.TextPaint |
||||
import android.text.style.ClickableSpan |
||||
|
||||
abstract class ClickableSpanNoUnderline : ClickableSpan() { |
||||
override fun updateDrawState(ds: TextPaint?) { |
||||
super.updateDrawState(ds) |
||||
ds?.isUnderlineText = false; |
||||
} |
||||
} |
@ -1,13 +1,19 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<android.support.design.widget.CoordinatorLayout |
||||
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:layout_height="match_parent" |
||||
android:layout_width="match_parent"> |
||||
<android.support.v4.widget.SwipeRefreshLayout |
||||
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:id="@+id/swipe_refresh_layout" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent"> |
||||
android:layout_height="match_parent" |
||||
android:layout_gravity="top"> |
||||
|
||||
<android.support.v7.widget.RecyclerView |
||||
android:id="@+id/recycler_view" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" /> |
||||
|
||||
</android.support.v4.widget.SwipeRefreshLayout> |
||||
<include layout="@layout/item_status_bottom_sheet"/> |
||||
</android.support.design.widget.CoordinatorLayout> |
@ -0,0 +1,21 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
android:id="@+id/item_status_bottom_sheet" |
||||
android:orientation="vertical" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="80dp" |
||||
android:layout_gravity="bottom" |
||||
android:background="?android:colorBackground" |
||||
app:behavior_hideable="true" |
||||
app:layout_behavior="android.support.design.widget.BottomSheetBehavior" |
||||
> |
||||
<TextView |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:gravity="center" |
||||
android:text="@string/performing_lookup_title" |
||||
android:textSize="?attr/status_text_medium" |
||||
android:textColor="?android:textColorPrimary" |
||||
/> |
||||
</LinearLayout> |
Loading…
Reference in new issue