-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements Collapse Toolbar in MainActivity
- Loading branch information
Sothearith Sreang
committed
Nov 4, 2017
1 parent
027c3e3
commit 1fa5a18
Showing
3 changed files
with
72 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,60 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<android.support.design.widget.CoordinatorLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
android:focusableInTouchMode="true" | ||
android:fitsSystemWindows="true" | ||
tools:context=".view.activities.search.MainActivity"> | ||
|
||
<include | ||
layout="@layout/toolbar_main" /> | ||
|
||
<thearith.github.com.github_search.view.custom.LogoWithTextView | ||
android:id="@+id/view_welcome" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
app:background="@drawable/logo_welcome" | ||
app:text="@string/message_welcome" /> | ||
|
||
<thearith.github.com.github_search.view.custom.LogoWithTextView | ||
android:id="@+id/view_empty_result" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
app:background="@drawable/logo_empty_result" | ||
android:visibility="gone" | ||
app:text="@string/message_empty_result"/> | ||
|
||
<thearith.github.com.github_search.view.custom.LogoWithTextView | ||
android:id="@+id/view_error" | ||
<FrameLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
app:background="@drawable/logo_error" | ||
android:visibility="gone" | ||
app:text="@string/message_error"/> | ||
app:layout_behavior="@string/appbar_scrolling_view_behavior"> | ||
|
||
<FrameLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
<thearith.github.com.github_search.view.custom.LogoWithTextView | ||
android:id="@+id/view_welcome" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
app:background="@drawable/logo_welcome" | ||
app:text="@string/message_welcome" /> | ||
|
||
<android.support.v7.widget.RecyclerView | ||
android:id="@+id/rc_search" | ||
<thearith.github.com.github_search.view.custom.LogoWithTextView | ||
android:id="@+id/view_empty_result" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_marginLeft="@dimen/search_item_padding" | ||
android:layout_marginRight="@dimen/search_item_padding"/> | ||
app:background="@drawable/logo_empty_result" | ||
android:visibility="gone" | ||
app:text="@string/message_empty_result"/> | ||
|
||
<ProgressBar | ||
android:id="@+id/pb_search" | ||
<thearith.github.com.github_search.view.custom.LogoWithTextView | ||
android:id="@+id/view_error" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="@dimen/search_item_padding" | ||
android:layout_gravity="bottom"/> | ||
android:layout_height="match_parent" | ||
app:background="@drawable/logo_error" | ||
android:visibility="gone" | ||
app:text="@string/message_error"/> | ||
|
||
<android.support.v7.widget.RecyclerView | ||
android:id="@+id/rc_search" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_marginLeft="@dimen/search_item_padding" | ||
android:layout_marginRight="@dimen/search_item_padding" /> | ||
|
||
<ProgressBar | ||
android:id="@+id/pb_search" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="@dimen/search_item_padding" | ||
android:layout_gravity="bottom"/> | ||
|
||
</FrameLayout> | ||
|
||
</LinearLayout> | ||
</android.support.design.widget.CoordinatorLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters