Page 228 - 2020학년도 MDP과제발표회 자료집 (통신과) (3)
P. 228

WebSettings  webSettings  =  webView.getSettings();
            webSettings.setJavaScriptEnabled(true);



            webView.loadUrl(url);




            <activity_camera.xml>

            <?xml  version="1.0"  encoding="utf-8"?>
            <RelativeLayout  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:id="@+id/activity_camera"  android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:paddingBottom="@dimen/activity_vertical_margin"
            android:paddingLeft="@dimen/activity_horizontal_margin"
            android:paddingRight="@dimen/activity_horizontal_margin"
            android:paddingTop="@dimen/activity_vertical_margin"

            tools:context="com.example.user.dadajo.Camera">


            <WebView
            android:layout_width="match_parent"  android:id="@+id/webView"

            android:layout_alignParentEnd="true"  android:layout_height="260dp">
            </WebView>


            <ToggleButton  android:textOn="LED  ON"  android:textOff="LED  OFF"
            android:layout_width="100dp"

            android:layout_marginLeft="32dp"  android:id="@+id/toggleButton"
            android:layout_height="50dp"  android:layout_marginTop="6dp"  android:onClick="OnClick"
            tools:ignore="HardcodedText,RtlHardcoded"  android:layout_below="@+id/webView"
            android:layout_alignParentEnd="true"  android:layout_marginEnd="288dp"  />



            </RelativeLayout>


            <activity_delivery.xml>
            <?xml  version="1.0"  encoding="utf-8"?>

            <RelativeLayout  xmlns:

                                                         -  237  -
   223   224   225   226   227   228   229   230   231   232   233