CopyPastor

Detecting plagiarism made easy.

Score: 0.8212854266166687; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-06-22
by Neeraj Bhandari

Original Post

Original - Posted on 2015-06-22
by David



            
Present in both answers; Present only in the new answer; Present only in the old answer;

[Click to ask more question about Android/java/advance java or any language][1]

<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <LinearLayout android:id="@+id/viewA" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="0.6" android:background="@android:color/holo_purple" android:orientation="horizontal"/> <LinearLayout android:id="@+id/viewB" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="0.4" android:background="@android:color/holo_orange_light" android:orientation="horizontal"/> </LinearLayout> <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="16dp" android:clickable="true" android:src="@drawable/ic_done" app:layout_anchor="@id/viewA" app:layout_anchorGravity="bottom|right|end"/> </android.support.design.widget.CoordinatorLayout>
[enter image description here][2]

[1]: http://eschool.co.in/forum/list_topics.php?parent=3 [2]: https://i.stack.imgur.com/dxiMJ.jpg
Best practice:
- Add `compile 'com.android.support:design:25.0.1'` to gradle file - Use `CoordinatorLayout` as root view. - Add `layout_anchor`to the FAB and set it to the top view - Add `layout_anchorGravity` to the FAB and set it to: `bottom|right|end`
![enter image description here][1]
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent">
<LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">
<LinearLayout android:id="@+id/viewA" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="0.6" android:background="@android:color/holo_purple" android:orientation="horizontal"/>
<LinearLayout android:id="@+id/viewB" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="0.4" android:background="@android:color/holo_orange_light" android:orientation="horizontal"/>
</LinearLayout>
<android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="16dp" android:clickable="true" android:src="@drawable/ic_done" app:layout_anchor="@id/viewA" app:layout_anchorGravity="bottom|right|end"/>
</android.support.design.widget.CoordinatorLayout>

[1]: http://i.stack.imgur.com/6RjOq.jpg

        
Present in both answers; Present only in the new answer; Present only in the old answer;