ソース掲示板




すべてから検索

キーワード   条件 表示 現行ログ 過去ログ トピックス 名前 本文

  メンテナンス 前画面に戻る

対象スレッド 件名: カメラ を起点とした画像データの処理 / Android
名前: lightbox
処理選択
パスワード

件名 カメラ を起点とした画像データの処理 / Android
名前 lightbox
コメント
@HTML
<img src="https://lh3.googleusercontent.com/-4BdYilC3lpw/WCB5CG7MzSI/AAAAAAAAhbA/yHYkLRudHmoxqKAMy4mmzSufXjUfd279QCHM/s600/_img.jpg" style='border:1px solid #c0c0c0;border-radius:0px'>
@HEND

[[目的別のまとめ]]
@SHOW
http://logicalerror.seesaa.net/article/443651647.html(カメラを起点とした画像データの処理 / Android)

画面は、ViewFlipper で複数の画面として動作するようにしています。

1) 初期画面 	: カメラ
2) 次画面 	: ImageView

カメラ処理部分は以下を参照して下さい
http://logicalerror.seesaa.net/article/443100634.html(Android : 画像関連のテスト用カメラアプリ)
@END

@DIV
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    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"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="lightbox.sep.fire1.MainActivity"
    android:padding="16dp">

    <ViewFlipper
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/viewFlipper">

        <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <LinearLayout
                android:orientation="horizontal"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <Button
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="ギャラリー"
                    android:id="@+id/galleryButton"
                    android:layout_weight="1"/>

                <Button
                    android:text="表示"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:id="@+id/imageButton"
                    android:layout_weight="1"/>


            </LinearLayout>

            <SurfaceView
                android:layout_width="match_parent"
                android:id="@+id/cameraView"
                android:layout_height="wrap_content"
                android:layout_weight="1"/>

        </LinearLayout>

        <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <LinearLayout
                android:orientation="horizontal"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <Button
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="戻る"
                    android:id="@+id/backButton"
                    android:layout_weight="1"/>

                <Button
                    android:text="Firebase より"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:id="@+id/downloadButton"
                    android:layout_weight="1"/>

            </LinearLayout>

            <ImageView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/imageView"/>

        </LinearLayout>

    </ViewFlipper>

</LinearLayout>
@END