Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to eliminate white frame while flipping half-way through the next view?
    text
    copied!<p>iam using Aphid-FlipView-Library to display static html pages using webview.</p> <p>but while flipping ,(moving) from one page to another iam getting some white frame ,after that second page is normally loading..</p> <p>can any one help me , how to remove that flash appearance..</p> <pre><code>public class FlipTextViewFragment extends Fragment { private FlipViewController flipView; String[] urls = {"file:///android_asset/Introduction_print.html","file:///android_asset/introduction2.html"}; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { flipView = new FlipViewController(inflater.getContext(), FlipViewController.HORIZONTAL); flipView.setAdapter(new adp(getActivity().getApplicationContext())); return flipView; } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); } public void setText(String item) { flipView.setAdapter(new adp(getActivity().getApplicationContext())); }} </code></pre> <p>then my adapter class is here: package com.example.flipwebview;</p> <pre><code> public class adp extends BaseAdapter { String[] urls = {"file:///android_asset/Introduction_print.html","file///android_asset/introduction2.html"}; Context con; public adp(Context applicationContext) { // TODO Auto-generated constructor stub con=applicationContext; } @Override public int getCount() { // TODO Auto-generated method stub return urls.length; } @Override public Object getItem(int position) { // TODO Auto-generated method stub return position; } @Override public long getItemId(int position) { // TODO Auto-generated method stub return position; } @Override public View getView(final int position, View convertView, ViewGroup parent) { // TODO Auto-generated method stub WebView wv=new WebView(con); wv.loadUrl(urls[position]); return wv; }} </code></pre> <p>By using my code , i can flip across multiple webviews,but the problem i am getting is when i am halfway flipping the page i cant see my next view,it seems to be a blank page,it gets loaded after i flip my page completely..here is the screen regarding that</p> <p><img src="https://i.stack.imgur.com/Si2WO.png" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload