mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 16:07:30 +00:00
8fd0ea39aa
1) QuickCamera logic moved into CameraView 2) The strategies for texture vs. surface view were too complex with no observed gain. Better to remove and have to re-add if necessary than assume it to be necessary. 3) Drop CWAC-Camera dependency - the device profiles weren't being used very much and even that is deprecated so we'd be left on our own with new hardware. Not worth it. 4) Selfies first. 5) Layout/orientation mathy logic from CWAC moved into CameraUtils, with the hopes that most of it might be further simplified or rendered unnecessary in the future. Closes #4326 // FREEBIE
38 lines
1.8 KiB
XML
38 lines
1.8 KiB
XML
<?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:id="@+id/controls"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="bottom"
|
|
tools:background="@android:color/darker_gray">
|
|
|
|
<ImageButton android:id="@+id/shutter_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:background="@drawable/quick_camera_shutter_ring"
|
|
android:src="@drawable/quick_shutter_button"
|
|
android:padding="20dp"/>
|
|
|
|
<ImageButton android:id="@+id/fullscreen_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentRight="true"
|
|
android:background="#00000000"
|
|
android:src="@drawable/quick_camera_fullscreen"
|
|
android:padding="20dp"/>
|
|
|
|
<ImageButton android:id="@+id/swap_camera_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentRight="true"
|
|
android:background="#00000000"
|
|
android:src="@drawable/quick_camera_rear"
|
|
android:padding="20dp"
|
|
android:visibility="invisible"
|
|
tools:visibility="visible"/>
|
|
</RelativeLayout> |