|
20 | 20 | android:layout_width="match_parent" |
21 | 21 | android:layout_height="match_parent" |
22 | 22 | tools:context="com.google.oboe.samples.liveEffect.MainActivity" |
| 23 | + android:fitsSystemWindows="true" |
23 | 24 | tools:layout_editor_absoluteY="81dp"> |
24 | 25 |
|
| 26 | + <LinearLayout |
| 27 | + android:id="@+id/title_bar" |
| 28 | + android:layout_width="match_parent" |
| 29 | + android:layout_height="?attr/actionBarSize" |
| 30 | + android:orientation="horizontal" |
| 31 | + android:elevation="4dp" |
| 32 | + android:gravity="center_vertical" |
| 33 | + app:layout_constraintLeft_toLeftOf="parent" |
| 34 | + app:layout_constraintTop_toTopOf="parent" |
| 35 | + android:paddingStart="16dp" |
| 36 | + android:paddingEnd="16dp"> |
| 37 | + |
| 38 | + <TextView |
| 39 | + android:layout_width="wrap_content" |
| 40 | + android:layout_height="wrap_content" |
| 41 | + android:text="Live Effect" |
| 42 | + android:textColor="@android:color/black" |
| 43 | + android:textSize="20sp" |
| 44 | + android:textStyle="bold" /> |
| 45 | + |
| 46 | + </LinearLayout> |
| 47 | + |
25 | 48 | <RadioGroup xmlns:android="http://schemas.android.com/apk/res/android" |
26 | 49 | android:id="@+id/apiSelectionGroup" |
27 | 50 | android:layout_width="fill_parent" |
28 | 51 | android:layout_height="wrap_content" |
29 | 52 | android:layout_marginStart="@dimen/activity_horizontal_margin" |
30 | 53 | android:layout_marginLeft="@dimen/activity_horizontal_margin" |
31 | | - android:layout_marginTop="@dimen/activity_vertical_margin" |
32 | 54 | android:orientation="horizontal" |
33 | 55 | app:layout_constraintLeft_toLeftOf="parent" |
34 | | - app:layout_constraintTop_toTopOf="parent"> |
| 56 | + app:layout_constraintTop_toBottomOf="@id/title_bar" > |
35 | 57 |
|
36 | 58 | <TextView |
37 | 59 | android:id="@+id/apiTextView" |
|
102 | 124 | android:id="@+id/button_toggle_effect" |
103 | 125 | android:layout_width="wrap_content" |
104 | 126 | android:layout_height="wrap_content" |
| 127 | + android:layout_marginTop="72dp" |
105 | 128 | android:gravity="center" |
106 | | - android:layout_marginTop="@dimen/activity_vertical_margin" |
107 | | - android:textAllCaps="false" |
108 | 129 | android:text="@string/start_effect" |
| 130 | + android:textAllCaps="false" |
| 131 | + app:layout_constraintEnd_toEndOf="parent" |
| 132 | + app:layout_constraintHorizontal_bias="0.53" |
109 | 133 | app:layout_constraintStart_toStartOf="parent" |
110 | 134 | app:layout_constraintTop_toBottomOf="@+id/playback_devices_spinner" /> |
111 | 135 |
|
|
0 commit comments