Debian Codegraph @

samples/demo/haptic-assessment/res/layout/activity_main.xml

raw symbols SCIP
1 <!--
2 ~ Copyright (C) 2020 The Android Open Source Project
3 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16
17 <androidx.constraintlayout.widget.ConstraintLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:app="http://schemas.android.com/apk/res-auto"
20 xmlns:tools="http://schemas.android.com/tools"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 tools:context=".MainActivity">
24
25 <Button
26 android:id="@+id/click_effect_button"
27 android:layout_width="@dimen/button_width"
28 android:layout_height="@dimen/button_height"
29 android:layout_marginHorizontal="@dimen/button_horizontal_margin"
30 android:layout_marginTop="@dimen/button_vertical_margin"
31 android:text="@string/click_effect_button"
32 app:layout_constraintEnd_toEndOf="parent"
33 app:layout_constraintStart_toStartOf="parent"
34 app:layout_constraintTop_toTopOf="parent"/>
35
36 <Button
37 android:id="@+id/oneshot_effect_button"
38 android:layout_width="@dimen/button_width"
39 android:layout_height="@dimen/button_height"
40 android:layout_marginHorizontal="@dimen/button_horizontal_margin"
41 android:layout_marginTop="@dimen/button_vertical_margin"
42 android:text="@string/oneshot_effect_button"
43 app:layout_constraintEnd_toEndOf="parent"
44 app:layout_constraintStart_toStartOf="parent"
45 app:layout_constraintTop_toBottomOf="@+id/click_effect_button"/>
46
47 <Button
48 android:id="@+id/waveform_effect_button"
49 android:layout_width="@dimen/button_width"
50 android:layout_height="@dimen/button_height"
51 android:layout_marginHorizontal="@dimen/button_horizontal_margin"
52 android:layout_marginTop="@dimen/button_vertical_margin"
53 android:text="@string/waveform_effect_button"
54 app:layout_constraintEnd_toEndOf="parent"
55 app:layout_constraintStart_toStartOf="parent"
56 app:layout_constraintTop_toBottomOf="@+id/oneshot_effect_button"/>
57
58 <View
59 android:id="@+id/divider"
60 android:layout_width="363dp"
61 android:layout_height="1dp"
62 android:layout_marginHorizontal="@dimen/button_horizontal_margin"
63 android:layout_marginTop="10dp"
64 android:background="?android:attr/listDivider"
65 app:layout_constraintEnd_toEndOf="parent"
66 app:layout_constraintHorizontal_bias="0.5"
67 app:layout_constraintStart_toStartOf="parent"
68 app:layout_constraintTop_toBottomOf="@+id/waveform_effect_button"/>
69
70 <androidx.constraintlayout.widget.ConstraintLayout
71 android:layout_width="363dp"
72 android:layout_height="0dp"
73 app:layout_constraintBottom_toBottomOf="parent"
74 app:layout_constraintEnd_toEndOf="parent"
75 app:layout_constraintHorizontal_bias="0.5"
76 app:layout_constraintStart_toStartOf="parent"
77 app:layout_constraintTop_toBottomOf="@+id/divider">
78
79 <ImageView
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:adjustViewBounds="true"
83 android:scaleType="fitXY"
84 app:layout_constraintBottom_toBottomOf="parent"
85 app:layout_constraintEnd_toEndOf="parent"
86 app:layout_constraintHorizontal_bias="0.5"
87 app:layout_constraintStart_toStartOf="parent"
88 app:layout_constraintTop_toTopOf="parent"
89 app:srcCompat="@drawable/bluebar"/>
90
91 </androidx.constraintlayout.widget.ConstraintLayout>
92
93 </androidx.constraintlayout.widget.ConstraintLayout>