app/src/main/res/layout/fragment_article_list.xml
changeset 544 0b9eb2b30bf8
parent 375 3f927abe862d
child 611 91b8d76c03cd
equal deleted inserted replaced
543:199ff7119340 544:0b9eb2b30bf8
    26         xmlns:tools="http://schemas.android.com/tools"
    26         xmlns:tools="http://schemas.android.com/tools"
    27         tools:context=".articles_list.ArticlesListFragment">
    27         tools:context=".articles_list.ArticlesListFragment">
    28 
    28 
    29     <data>
    29     <data>
    30         <import type="android.view.View" />
    30         <import type="android.view.View" />
    31         <variable name="activityViewModel" type="com.geekorum.ttrss.articles_list.ActivityViewModel" />
       
    32         <variable name="fragmentViewModel" type="com.geekorum.ttrss.articles_list.FragmentViewModel" />
    31         <variable name="fragmentViewModel" type="com.geekorum.ttrss.articles_list.FragmentViewModel" />
    33     </data>
    32     </data>
    34 
    33 
    35     <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
    34     <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
    36             android:id="@+id/swipe_refresh_container"
    35             android:id="@+id/swipe_refresh_container"
    37             android:layout_width="match_parent"
    36             android:layout_width="match_parent"
    38             android:layout_height="match_parent"
    37             android:layout_height="match_parent"
    39             app:refreshing="@{safeUnbox(activityViewModel.refreshing)}">
    38             app:refreshing="@{safeUnbox(fragmentViewModel.refreshing)}">
    40 
    39 
    41         <androidx.constraintlayout.widget.ConstraintLayout
    40         <androidx.constraintlayout.widget.ConstraintLayout
    42                 android:layout_width="match_parent"
    41                 android:layout_width="match_parent"
    43                 android:layout_height="match_parent">
    42                 android:layout_height="match_parent">
    44 
    43 
    50                       app:layout_constraintStart_toStartOf="parent"
    49                       app:layout_constraintStart_toStartOf="parent"
    51                       app:layout_constraintEnd_toEndOf="parent"
    50                       app:layout_constraintEnd_toEndOf="parent"
    52                       android:gravity="center"
    51                       android:gravity="center"
    53                       android:textAppearance="?textAppearanceHeadline4"
    52                       android:textAppearance="?textAppearanceHeadline4"
    54                       android:padding="@dimen/activity_horizontal_margin"
    53                       android:padding="@dimen/activity_horizontal_margin"
    55                       android:text="@{safeUnbox(activityViewModel.refreshing) ? @string/fragment_articles_list_no_articles_and_sync_lbl : @string/fragment_articles_list_no_articles_lbl}"
    54                       android:text="@{safeUnbox(fragmentViewModel.refreshing) ? @string/fragment_articles_list_no_articles_and_sync_lbl : @string/fragment_articles_list_no_articles_lbl}"
    56                       android:visibility="@{safeUnbox(fragmentViewModel.haveZeroArticles) ? View.VISIBLE : View.GONE}"
    55                       android:visibility="@{safeUnbox(fragmentViewModel.haveZeroArticles) ? View.VISIBLE : View.GONE}"
    57                     />
    56                     />
    58 
    57 
    59             <androidx.recyclerview.widget.RecyclerView
    58             <androidx.recyclerview.widget.RecyclerView
    60                     android:id="@+id/article_list"
    59                     android:id="@+id/article_list"