fragment_blog.xml 2.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?xml version="1.0" encoding="utf-8"?><!--
  ~  Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
  ~
  ~  Licensed under the Apache License, Version 2.0 (the "License");
  ~  you may not use this file except in compliance with the License.
  ~  You may obtain a copy of the License at
  ~
  ~      https://mindorks.com/license/apache-v2
  ~
  ~  Unless required by applicable law or agreed to in writing, software
  ~  distributed under the License is distributed on an "AS IS" BASIS,
  ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~  See the License for the specific language governing permissions and
  ~  limitations under the License
  -->
<layout xmlns:android="http://schemas.android.com/apk/res/android"
V
Vignesh150493 已提交
17 18
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto">
19 20 21

    <data>

22 23
        <import type="android.view.View" />

24 25 26 27 28 29
        <variable
            name="viewModel"
            type="com.mindorks.framework.mvvm.ui.feed.blogs.BlogViewModel" />

    </data>

30
    <FrameLayout
31
        android:layout_width="match_parent"
32
        android:layout_height="match_parent">
33

34
        <LinearLayout
35 36
            android:layout_width="match_parent"
            android:layout_height="match_parent"
37 38 39 40 41 42 43
            android:gravity="center"
            android:orientation="vertical">

            <android.support.v7.widget.RecyclerView
                android:id="@+id/blogRecyclerView"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
V
Vignesh150493 已提交
44 45
                tools:listitem="@layout/item_blog_view"
                app:adapter="@{viewModel.blogObservableArrayList}"/>
46 47

        </LinearLayout>
48

49 50 51 52 53 54 55 56
        <android.support.v4.widget.ContentLoadingProgressBar
            android:id="@+id/address_looking_up"
            style="?android:attr/progressBarStyleLarge"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:visibility="@{viewModel.isLoading ? View.VISIBLE : View.GONE}"/>
    </FrameLayout>
57 58

</layout>