Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/384.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用progressbar在webview中加载html_Java_Html_Android Studio_Webview_Progress Bar - Fatal编程技术网

Java 使用progressbar在webview中加载html

Java 使用progressbar在webview中加载html,java,html,android-studio,webview,progress-bar,Java,Html,Android Studio,Webview,Progress Bar,我已经创建了recylerview,当在不同的列表中单击时,我想加载html,并添加progressbar。我已经用webview和progressbar进行了布局,并且还遵循了as和其他许多方法 这是显示recyclerView的活动,我想在单击recyclerView列表的不同行时加载不同的html: @覆盖 创建时受保护的void(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R

我已经创建了recylerview,当在不同的列表中单击时,我想加载
html
,并添加
progressbar
。我已经用
webview
progressbar
进行了布局,并且还遵循了as和其他许多方法

这是显示recyclerView的活动,我想在单击recyclerView列表的不同行时加载不同的html:

@覆盖
创建时受保护的void(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_abhyas);
RecyclerView RecyclerView=findViewById(R.id.rv_列表);
LinearLayoutManager layoutManager=新的LinearLayoutManager(此);
layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
recyclerView.setLayoutManager(layoutManager);
//我想在单击这些不同的列表时加载不同的html;我在下面的onNoteClick中跟踪了这些位置:
ArrayList rvList=新的ArrayList();
rvList.add(新Rv(R.mipmap.blue,)१", "जन्मभूमि"));
rvList.add(新Rv(R.mipmap.green)२", "सन्तुष्टि"));
rvList.add(新Rv(R.mipmap.orange)३", "सन्दुक रुइत"));
rvList.add(新Rv(R.mipmap.purple)४", "थाङ्का"));
RvAdapter adapter=新的RvAdapter(rvList,this);
recyclerView.setAdapter(适配器);
}
@凌驾
公共void onNoteCLick(内部位置){
WebView-WebView=findviewbyd(R.id.WebView);
如果(位置==0){
//我想在这里加载“html”
}
如果(位置==1){
//我想在这里加载html2
}
}
}
这是布局“webview.xml”,我创建它是为了用progressbar加载html:



你的问题又是什么?Hello@Keving我的意思是,我使用recycler视图制作了不同的列表;现在我想在不同的列表中单击时加载html;在方法onNoteClick中,我跟踪列表的位置。现在我想在列表中单击时加载html,我还想添加progressbar。用xml和java显示完整的代码,是吗e adpater?@YogeshNikamPatil先生,我已经添加了代码和xml。请检查一下