-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAbtDoctor.java
More file actions
31 lines (25 loc) · 1.01 KB
/
AbtDoctor.java
File metadata and controls
31 lines (25 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.example.fbans.projecthm;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
public class AbtDoctor extends Fragment {
View vi;
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
vi = inflater.inflate(R.layout.layout_abtdoctorl,container,false);
return vi;
}
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
WebView wv = vi.findViewById(R.id.webview2);
wv.getSettings().setJavaScriptEnabled(true);
wv.loadUrl("https://www.google.co.in/?gfe_rd=cr&dcr=0&ei=4BdzWv7uH4Tj8wex2q_QDQ");
}
}