-
Notifications
You must be signed in to change notification settings - Fork 138
Expand file tree
/
Copy pathfragment_loopbar_horizontal.xml
More file actions
70 lines (61 loc) · 2.63 KB
/
fragment_loopbar_horizontal.xml
File metadata and controls
70 lines (61 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8"?>
<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/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.cleveroad.sample.fragments.AbstractLoopBarFragment">
<android.support.v4.view.ViewPager
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/placeHolder"
android:background="@android:color/holo_red_dark" />
<Spinner
android:id="@+id/spScrollMode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/btnOrientation"
android:layout_centerInParent="true"
android:background="?attr/selectableItemBackground" />
<Button
android:id="@+id/btnOrientation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="?attr/selectableItemBackground"
android:text="@string/change_orientation"
android:textAllCaps="false"
android:textSize="16sp" />
<Button
android:id="@+id/btnGravity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/btnOrientation"
android:layout_centerInParent="true"
android:background="?attr/selectableItemBackground"
android:text="@string/change_gravity"
android:textAllCaps="false"
android:textSize="16sp" />
<View
android:id="@+id/placeHolder"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_alignParentBottom="true" />
<com.cleveroad.loopbar.widget.LoopBarView
android:id="@+id/endlessView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
app:enls_orientation="horizontal"
app:enls_overlaySize="10dp"
app:enls_placeholderId="@id/placeHolder"
app:enls_scrollMode="auto"
app:enls_selectionBackground="@android:color/holo_blue_dark"
app:enls_selectionGravity="start"
app:enls_selectionInAnimation="@animator/enls_scale_restore"
app:enls_selectionMargin="10dp"
app:enls_selectionOutAnimation="@animator/enls_scale_small"
app:enls_listBackground="@android:color/darker_gray"/>
</RelativeLayout>