improve notification fragment layout (#1282)
* improve notification fragment layout * improve sw640dp notification fragment layoutmain
parent
bbb693f433
commit
44e642e137
@ -1,102 +1,81 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||||
xmlns:tools="http://schemas.android.com/tools" |
xmlns:tools="http://schemas.android.com/tools" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent"> |
android:layout_height="match_parent"> |
||||||
|
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout |
<com.google.android.material.appbar.AppBarLayout |
||||||
|
android:id="@+id/appBarOptions" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent"> |
android:layout_height="wrap_content" |
||||||
|
android:background="?android:colorBackground" |
||||||
|
app:elevation="0dp" |
||||||
|
app:layout_behavior="com.keylesspalace.tusky.util.AppBarLayoutNoEmptyScrollBehavior"> |
||||||
|
|
||||||
<com.google.android.material.appbar.AppBarLayout |
<LinearLayout |
||||||
android:id="@+id/appBarOptions" |
android:id="@+id/topButtonsLayout" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
app:elevation="0dp" |
android:orientation="horizontal" |
||||||
app:layout_behavior="com.keylesspalace.tusky.util.AppBarLayoutNoEmptyScrollBehavior"> |
app:layout_scrollFlags="scroll|enterAlways"> |
||||||
|
|
||||||
<androidx.appcompat.widget.Toolbar |
<Button |
||||||
android:layout_width="match_parent" |
android:id="@+id/buttonClear" |
||||||
|
style="@style/TuskyButton.TextButton" |
||||||
|
android:layout_width="0dp" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:background="?android:colorBackground" |
android:layout_weight="1" |
||||||
app:contentInsetStart="0dp" |
android:text="@string/notifications_clear" |
||||||
app:contentInsetLeft="0dp" |
android:textSize="?attr/status_text_medium" /> |
||||||
app:contentInsetEnd="0dp" |
|
||||||
app:contentInsetRight="0dp" |
|
||||||
app:layout_scrollFlags="scroll|enterAlways"> |
|
||||||
|
|
||||||
<LinearLayout |
<Button |
||||||
android:id="@+id/topButtonsLayout" |
android:id="@+id/buttonFilter" |
||||||
android:layout_width="match_parent" |
style="@style/TuskyButton.TextButton" |
||||||
android:layout_height="wrap_content" |
android:layout_width="0dp" |
||||||
android:orientation="horizontal"> |
android:layout_height="wrap_content" |
||||||
|
android:layout_weight="1" |
||||||
|
android:text="@string/notifications_apply_filter" |
||||||
|
android:textSize="?attr/status_text_medium" /> |
||||||
|
|
||||||
<Button |
</LinearLayout> |
||||||
android:id="@+id/buttonClear" |
|
||||||
style="@style/TuskyButton.TextButton" |
|
||||||
android:layout_width="0dp" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:layout_weight="1" |
|
||||||
android:text="@string/notifications_clear" |
|
||||||
android:textSize="?attr/status_text_medium" /> |
|
||||||
|
|
||||||
<Button |
<View |
||||||
android:id="@+id/buttonFilter" |
android:layout_width="match_parent" |
||||||
style="@style/TuskyButton.TextButton" |
android:layout_height="1dp" |
||||||
android:layout_width="0dp" |
android:layout_gravity="bottom" |
||||||
android:layout_height="wrap_content" |
android:background="?android:attr/listDivider" |
||||||
android:layout_weight="1" |
app:layout_scrollFlags="scroll|enterAlways" /> |
||||||
android:text="@string/notifications_apply_filter" |
|
||||||
android:textSize="?attr/status_text_medium" /> |
|
||||||
|
|
||||||
</LinearLayout> |
</com.google.android.material.appbar.AppBarLayout> |
||||||
</androidx.appcompat.widget.Toolbar> |
|
||||||
<View |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="1dp" |
|
||||||
android:background="?android:attr/listDivider" |
|
||||||
android:layout_gravity="bottom"/> |
|
||||||
|
|
||||||
</com.google.android.material.appbar.AppBarLayout> |
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout |
||||||
|
android:id="@+id/swipeRefreshLayout" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
||||||
|
|
||||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout |
<androidx.recyclerview.widget.RecyclerView |
||||||
android:id="@+id/swipeRefreshLayout" |
android:id="@+id/recyclerView" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="match_parent" /> |
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" |
|
||||||
> |
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView |
|
||||||
android:id="@+id/recyclerView" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="match_parent" |
|
||||||
/> |
|
||||||
|
|
||||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> |
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> |
||||||
|
|
||||||
<ProgressBar |
<ProgressBar |
||||||
android:id="@+id/progressBar" |
android:id="@+id/progressBar" |
||||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
app:layout_constraintBottom_toBottomOf="parent" |
android:layout_gravity="center" /> |
||||||
app:layout_constraintLeft_toLeftOf="parent" |
|
||||||
app:layout_constraintRight_toRightOf="parent" |
|
||||||
app:layout_constraintTop_toTopOf="parent" /> |
|
||||||
|
|
||||||
<com.keylesspalace.tusky.view.BackgroundMessageView |
<com.keylesspalace.tusky.view.BackgroundMessageView |
||||||
android:id="@+id/statusView" |
android:id="@+id/statusView" |
||||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
|
android:layout_gravity="center" |
||||||
android:src="@android:color/transparent" |
android:src="@android:color/transparent" |
||||||
android:visibility="gone" |
android:visibility="gone" |
||||||
app:layout_constraintBottom_toBottomOf="parent" |
|
||||||
app:layout_constraintLeft_toLeftOf="parent" |
|
||||||
app:layout_constraintRight_toRightOf="parent" |
|
||||||
app:layout_constraintTop_toTopOf="parent" |
|
||||||
tools:src="@drawable/elephant_error" |
tools:src="@drawable/elephant_error" |
||||||
tools:visibility="visible" /> |
tools:visibility="visible" /> |
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout> |
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
||||||
|
Loading…
Reference in new issue