-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathlayout_code_view.xml
More file actions
48 lines (39 loc) · 1.66 KB
/
layout_code_view.xml
File metadata and controls
48 lines (39 loc) · 1.66 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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- Just let the root RelativeLayout determine the height of the code viewport.-->
<io.github.kbiakov.codeview.views.BidirectionalScrollView
android:id="@+id/v_scroll"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_code_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:listitem="@layout/item_code_line"/>
</io.github.kbiakov.codeview.views.BidirectionalScrollView>
<View
android:id="@+id/shadow_right_border"
android:layout_width="@dimen/shadow_width"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/shadow_height"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
<View
android:id="@+id/shadow_num_bottom"
android:layout_width="@dimen/shadow_width"
android:layout_height="match_parent"/>
<View
android:id="@+id/shadow_content_bottom"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
</RelativeLayout>