Cleanup layout files in Transformer demo

* Update AOSP copywright headers in all xml files in the Transformer demo app
* Use "end/start" instead of "right/left" to ensure correct behavior in right-to-left locales
* Simplify contrast_options and trim_options layout

PiperOrigin-RevId: 571933637
This commit is contained in:
simakova 2023-10-09 07:35:56 -07:00 committed by Copybara-Service
parent 05b17b5430
commit 67e10e9362
13 changed files with 270 additions and 288 deletions

View File

@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2022 The Android Open Source Project
~ Copyright 2022 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
@ -27,8 +26,8 @@
android:stretchColumns="1" android:stretchColumns="1"
android:layout_marginTop="32dp" android:layout_marginTop="32dp"
android:measureWithLargestChild="true" android:measureWithLargestChild="true"
android:paddingLeft="24dp" android:paddingStart="24dp"
android:paddingRight="12dp" android:paddingEnd="12dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
@ -53,7 +52,7 @@
android:valueFrom="0" android:valueFrom="0"
android:value="1" android:value="1"
android:valueTo="1" android:valueTo="1"
android:layout_gravity="right|center_vertical"/> android:layout_gravity="end|center_vertical"/>
</TableRow> </TableRow>
</TableLayout> </TableLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2021 The Android Open Source Project
~ Copyright 2021 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
@ -130,8 +129,8 @@
android:text="@string/audio_mime"/> android:text="@string/audio_mime"/>
<Spinner <Spinner
android:id="@+id/audio_mime_spinner" android:id="@+id/audio_mime_spinner"
android:layout_gravity="right|center_vertical" android:layout_gravity="end|center_vertical"
android:gravity="right" /> android:gravity="end" />
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_weight="1" android:layout_weight="1"
@ -141,8 +140,8 @@
android:text="@string/video_mime"/> android:text="@string/video_mime"/>
<Spinner <Spinner
android:id="@+id/video_mime_spinner" android:id="@+id/video_mime_spinner"
android:layout_gravity="right|center_vertical" android:layout_gravity="end|center_vertical"
android:gravity="right" /> android:gravity="end" />
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_weight="1" android:layout_weight="1"
@ -152,8 +151,8 @@
android:text="@string/resolution_height"/> android:text="@string/resolution_height"/>
<Spinner <Spinner
android:id="@+id/resolution_height_spinner" android:id="@+id/resolution_height_spinner"
android:layout_gravity="right|center_vertical" android:layout_gravity="end|center_vertical"
android:gravity="right" /> android:gravity="end" />
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_weight="1" android:layout_weight="1"
@ -163,8 +162,8 @@
android:text="@string/scale"/> android:text="@string/scale"/>
<Spinner <Spinner
android:id="@+id/scale_spinner" android:id="@+id/scale_spinner"
android:layout_gravity="right|center_vertical" android:layout_gravity="end|center_vertical"
android:gravity="right" /> android:gravity="end" />
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_weight="1" android:layout_weight="1"
@ -174,8 +173,8 @@
android:text="@string/rotate"/> android:text="@string/rotate"/>
<Spinner <Spinner
android:id="@+id/rotate_spinner" android:id="@+id/rotate_spinner"
android:layout_gravity="right|center_vertical" android:layout_gravity="end|center_vertical"
android:gravity="right" /> android:gravity="end" />
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_weight="1"> android:layout_weight="1">
@ -224,8 +223,8 @@
android:text="@string/hdr_mode"/> android:text="@string/hdr_mode"/>
<Spinner <Spinner
android:id="@+id/hdr_mode_spinner" android:id="@+id/hdr_mode_spinner"
android:layout_gravity="right|center_vertical" android:layout_gravity="end|center_vertical"
android:gravity="right" /> android:gravity="end" />
</TableRow> </TableRow>
</TableLayout> </TableLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>

View File

@ -1,49 +1,45 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2022 The Android Open Source Project
~ Copyright 2022 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
--> <androidx.appcompat.widget.LinearLayoutCompat
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 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" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="wrap_content"
android:orientation="horizontal"
tools:context=".ConfigurationActivity"> tools:context=".ConfigurationActivity">
<TableLayout <TextView
android:layout_width="fill_parent" android:text="@string/contrast_value"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:stretchColumns="1" android:layout_width="wrap_content"
android:layout_marginTop="32dp" android:layout_gravity="center"
android:measureWithLargestChild="true" android:layout_marginStart="8dp"
android:paddingLeft="24dp" android:layout_marginTop="24dp"
android:paddingRight="12dp" android:layout_marginBottom="8dp" />
app:layout_constraintEnd_toEndOf="parent" <com.google.android.material.slider.Slider
app:layout_constraintStart_toStartOf="parent" android:id="@+id/contrast_slider"
app:layout_constraintTop_toTopOf="parent" android:valueFrom="-1.0"
app:layout_constraintBottom_toBottomOf="parent"> android:value="0.0"
<TableRow android:valueTo="1.0"
android:layout_weight="1" android:layout_height="wrap_content"
android:gravity="center_vertical" > android:layout_width="0dp"
<TextView android:layout_marginStart="8dp"
android:text="@string/contrast_value" /> android:layout_weight="1"
<com.google.android.material.slider.Slider android:layout_marginTop="24dp"
android:id="@+id/contrast_slider" android:layout_marginBottom="8dp"
android:valueFrom="-1.0" android:layout_gravity="center"/>
android:value="0.0"
android:valueTo="1.0" </androidx.appcompat.widget.LinearLayoutCompat>
android:layout_gravity="right"/>
</TableRow>
</TableLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2022 The Android Open Source Project
~ Copyright 2022 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
@ -27,8 +26,8 @@ tools:context=".ConfigurationActivity">
android:stretchColumns="1" android:stretchColumns="1"
android:layout_marginTop="32dp" android:layout_marginTop="32dp"
android:measureWithLargestChild="true" android:measureWithLargestChild="true"
android:paddingLeft="24dp" android:paddingStart="24dp"
android:paddingRight="12dp" android:paddingEnd="12dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
@ -43,7 +42,7 @@ tools:context=".ConfigurationActivity">
android:valueFrom="-360" android:valueFrom="-360"
android:value="0" android:value="0"
android:valueTo="360" android:valueTo="360"
android:layout_gravity="right"/> android:layout_gravity="end"/>
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_weight="1" android:layout_weight="1"
@ -55,7 +54,7 @@ tools:context=".ConfigurationActivity">
android:valueFrom="-100" android:valueFrom="-100"
android:value="0" android:value="0"
android:valueTo="100" android:valueTo="100"
android:layout_gravity="right"/> android:layout_gravity="end"/>
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_weight="1" android:layout_weight="1"
@ -67,7 +66,7 @@ tools:context=".ConfigurationActivity">
android:valueFrom="-100" android:valueFrom="-100"
android:value="0" android:value="0"
android:valueTo="100" android:valueTo="100"
android:layout_gravity="right"/> android:layout_gravity="end"/>
</TableRow> </TableRow>
</TableLayout> </TableLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2022 The Android Open Source Project
~ Copyright 2022 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
@ -27,8 +26,8 @@
android:stretchColumns="1" android:stretchColumns="1"
android:layout_marginTop="32dp" android:layout_marginTop="32dp"
android:measureWithLargestChild="true" android:measureWithLargestChild="true"
android:paddingLeft="24dp" android:paddingStart="24dp"
android:paddingRight="12dp" android:paddingEnd="12dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
@ -43,7 +42,7 @@
android:valueFrom="0.0" android:valueFrom="0.0"
android:value="0.5" android:value="0.5"
android:valueTo="1.0" android:valueTo="1.0"
android:layout_gravity="right"/> android:layout_gravity="end"/>
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_weight="1" android:layout_weight="1"
@ -55,7 +54,7 @@
android:valueFrom="0.0" android:valueFrom="0.0"
android:value="0.5" android:value="0.5"
android:valueTo="1.0" android:valueTo="1.0"
android:layout_gravity="right"/> android:layout_gravity="end"/>
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_weight="1" android:layout_weight="1"
@ -66,7 +65,7 @@
android:id="@+id/periodic_vignette_radius_range_slider" android:id="@+id/periodic_vignette_radius_range_slider"
android:valueFrom="0.0" android:valueFrom="0.0"
android:valueTo="1.414" android:valueTo="1.414"
android:layout_gravity="right"/> android:layout_gravity="end"/>
</TableRow> </TableRow>
</TableLayout> </TableLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?><!-- <?xml version="1.0" encoding="utf-8"?>
~ Copyright 2023 The Android Open Source Project <!-- Copyright 2023 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0 http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS, distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and See the License for the specific language governing permissions and
~ limitations under the License. limitations under the License.
--> -->
<androidx.appcompat.widget.LinearLayoutCompat <androidx.appcompat.widget.LinearLayoutCompat
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2022 The Android Open Source Project
~ Copyright 2022 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
@ -27,8 +26,8 @@
android:stretchColumns="1" android:stretchColumns="1"
android:layout_marginTop="32dp" android:layout_marginTop="32dp"
android:measureWithLargestChild="true" android:measureWithLargestChild="true"
android:paddingLeft="24dp" android:paddingStart="24dp"
android:paddingRight="12dp" android:paddingEnd="12dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
@ -43,7 +42,7 @@
android:valueFrom="0" android:valueFrom="0"
android:value="1" android:value="1"
android:valueTo="2" android:valueTo="2"
android:layout_gravity="right" android:layout_gravity="end"
app:labelBehavior="gone"/> app:labelBehavior="gone"/>
</TableRow> </TableRow>
<TableRow <TableRow
@ -56,7 +55,7 @@
android:valueFrom="0" android:valueFrom="0"
android:value="1" android:value="1"
android:valueTo="2" android:valueTo="2"
android:layout_gravity="right" android:layout_gravity="end"
app:labelBehavior="gone"/> app:labelBehavior="gone"/>
</TableRow> </TableRow>
<TableRow <TableRow
@ -69,7 +68,7 @@
android:valueFrom="0" android:valueFrom="0"
android:value="1" android:value="1"
android:valueTo="2" android:valueTo="2"
android:layout_gravity="right" android:layout_gravity="end"
app:labelBehavior="gone"/> app:labelBehavior="gone"/>
</TableRow> </TableRow>
</TableLayout> </TableLayout>

View File

@ -1,24 +1,23 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2021 The Android Open Source Project
~ Copyright 2021 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
-->
<TextView <TextView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="32dp" android:layout_height="32dp"
android:gravity="left|center_vertical" android:gravity="start|center_vertical"
android:paddingLeft="4dp" android:paddingLeft="4dp"
android:paddingRight="4dp" android:paddingRight="4dp"
android:layout_marginLeft="4dp" android:layout_marginLeft="4dp"

View File

@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2022 The Android Open Source Project
~ Copyright 2022 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
@ -27,8 +26,8 @@
android:stretchColumns="1" android:stretchColumns="1"
android:layout_marginTop="32dp" android:layout_marginTop="32dp"
android:measureWithLargestChild="true" android:measureWithLargestChild="true"
android:paddingLeft="24dp" android:paddingStart="24dp"
android:paddingRight="12dp" android:paddingEnd="12dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
@ -51,8 +50,8 @@
android:text="@string/overlay_text_color"/> android:text="@string/overlay_text_color"/>
<Spinner <Spinner
android:id="@+id/text_overlay_text_color" android:id="@+id/text_overlay_text_color"
android:layout_gravity="right|center_vertical" android:layout_gravity="end|center_vertical"
android:gravity="right" /> android:gravity="end" />
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_weight="1" android:layout_weight="1"
@ -63,7 +62,7 @@
android:valueFrom="0" android:valueFrom="0"
android:value="1" android:value="1"
android:valueTo="1" android:valueTo="1"
android:layout_gravity="right|center_vertical"/> android:layout_gravity="end|center_vertical"/>
</TableRow> </TableRow>
</TableLayout> </TableLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2021 The Android Open Source Project
~ Copyright 2021 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"

View File

@ -1,48 +1,44 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2022 The Android Open Source Project
~ Copyright 2022 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
--> <androidx.appcompat.widget.LinearLayoutCompat
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 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" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="wrap_content"
android:orientation="horizontal"
tools:context=".ConfigurationActivity"> tools:context=".ConfigurationActivity">
<TableLayout <TextView
android:layout_width="fill_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:stretchColumns="1" android:layout_marginStart="8dp"
android:layout_marginTop="32dp" android:layout_marginTop="24dp"
android:measureWithLargestChild="true" android:layout_marginBottom="8dp"
android:paddingLeft="24dp" android:text="@string/trim_range"
android:paddingRight="12dp" android:layout_gravity="center"/>
app:layout_constraintEnd_toEndOf="parent" <com.google.android.material.slider.RangeSlider
app:layout_constraintStart_toStartOf="parent" android:id="@+id/trim_bounds_range_slider"
app:layout_constraintTop_toTopOf="parent" android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"> android:layout_width="0dp"
<TableRow android:layout_weight="1"
android:layout_weight="1" android:layout_marginStart="8dp"
android:gravity="center_vertical" > android:layout_marginTop="24dp"
<TextView android:layout_marginBottom="8dp"
android:text="@string/trim_range" /> android:layout_gravity="center"
<com.google.android.material.slider.RangeSlider android:valueFrom="0.0"
android:id="@+id/trim_bounds_range_slider" android:valueTo="10.0"/>
android:valueFrom="0.0"
android:valueTo="10.0" </androidx.appcompat.widget.LinearLayoutCompat>
android:layout_gravity="right"/>
</TableRow>
</TableLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2023 The Android Open Source Project
~ Copyright 2023 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
-->
<resources> <resources>
<string-array name="preset_descriptions"> <string-array name="preset_descriptions">
<item>720p H264 video and AAC audio</item> <item>720p H264 video and AAC audio</item>

View File

@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2021 The Android Open Source Project
~ Copyright 2021 The Android Open Source Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
~ You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required by applicable law or agreed to in writing, software
~ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and limitations under the License.
~ limitations under the License. -->
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="app_name" translatable="false">Transformer Demo</string> <string name="app_name" translatable="false">Transformer Demo</string>
<string name="configuration" translatable="false">Configuration</string> <string name="configuration" translatable="false">Configuration</string>