-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collapsing Toolbar added and is working fine. Additional changes:
1. tried floating button to place in center Rest is spacing etc.
- Loading branch information
1 parent
fbee037
commit dfafebe
Showing
3 changed files
with
40 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/parentLayout" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context="com.hisham.design.FloatingActionButtonActivity"> | ||
|
||
|
||
<ImageView | ||
android:id="@+id/imageView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="300dp" | ||
android:layout_alignParentStart="true" | ||
android:layout_alignParentTop="true" | ||
android:src="@drawable/tulips" /> | ||
|
||
<ImageView | ||
android:id="@+id/image2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="300dp" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignParentEnd="true" | ||
android:layout_below="@+id/imageView" | ||
android:src="@drawable/koala" /> | ||
|
||
<android.support.design.widget.FloatingActionButton | ||
android:id="@+id/floatingButton" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:layout_anchor="@id/imageView" | ||
app:layout_anchorGravity="bottom|right|end" | ||
android:src="@mipmap/ic_action"> | ||
<!--android:fabSize="mini"--> | ||
</android.support.design.widget.FloatingActionButton> | ||
|
||
|
||
</RelativeLayout> |