• Welcome to จั่นเจาดอทคอม ถามตอบ คอมพิวเตอร์ อินเตอร์เน็ต Forex MT4 MT5 เทรดทอง .
 

News:

IB Exness 16 สิงหาคม 2568 ประกาศจับสลากผลรางวัล
รางวัลที่ 1 มือถือ Oppo A3X 4GB/64GB เครื่อง 1 รางวัล หรือ 100 USD 1 รางวัล
รางวัลที่ 2 10 USD 10 รางวัล
รางวัลที่ 3 หมวก Exness 10 รางวัล
ลูกค้าใหม่ สมัครได้ที่ https://www.exness.com/a/73208
ลูกค้าเก่าที่สมัครผ่านลิงค์ตัวแทนผม สมัครได้
เงื่อนไข เทรดครบ 1 Lot Standard เริ่มต้น 1-15 สิงหาคม 2568
ติดต่อสอบถามหรือ Indox มา
สรพล
Line : junjaocom
หน้าประกาศรางวัล https://junjao.com/exness16072568.html
สเปกเครื่อง https://www.siamphone.com/spec/oppo/a3x.htm

Main Menu

webview kotlin code android studio 3 ไฟล์

Started by junjao, May 29, 2019, 11:03:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

junjao

webview kotlin code android studio 3 ไฟล์

activity_main.xml
----------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".MainActivity">

    <WebView
            android:id="@+id/webview"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
    />

</android.support.constraint.ConstraintLayout>
-------------------------------------------------------------

MainActivity.kt
------------------------
package com.junjao.webview3

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.webkit.WebView

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val myWebView: WebView = findViewById(R.id.webview)
        myWebView.loadUrl("https://www.xxxxxxx")
    }
}
----------------------------------------------------

AndroidManifest.xml
-----------
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.junjao.webview3">

    <uses-permission android:name="android.permission.INTERNET" />

    <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:roundIcon="@mipmap/ic_launcher_round"
            android:supportsRtl="true"
            android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
    </application>

</manifest>
-------------------------------------

อ้างอิง https://developer.android.com/guide/webapps/webview kotlin

รับทำ app webview kotlin ขึ้น google play ราคา 5,000 บาท
สรพล
jun_jao2000@hotmail.com
line @junjao
MT4 MT5 EA Indicator EURUSD USDJPY XAUUSD Gold Bitcoin Oil
สอบถาม 081-446-5311 , line : junjaocom , Email : jun_jao2000@hotmail.com
สมัคร Exness ได้ที่ https://www.exness.com/a/73208
หน้าลงทะเบียน Exness ได้ที่ https://www.exness.com/boarding/sign-up/a/73208?lng=th
ขั้นตอนสมัคร exness https://www.junjao.com/board/index.php?topic=279

junjao

MT4 MT5 EA Indicator EURUSD USDJPY XAUUSD Gold Bitcoin Oil
สอบถาม 081-446-5311 , line : junjaocom , Email : jun_jao2000@hotmail.com
สมัคร Exness ได้ที่ https://www.exness.com/a/73208
หน้าลงทะเบียน Exness ได้ที่ https://www.exness.com/boarding/sign-up/a/73208?lng=th
ขั้นตอนสมัคร exness https://www.junjao.com/board/index.php?topic=279