Android - Webview Cuts Off on Smaller Screen

Heymexa

New Member
I have a Google Calendar that I'm trying to display in my Android app, but when I do, it gets cut off on my HTC Incredible 2. It displays fine on my Nexus 7. I've tried working with the answers found here but still no luck. Any help would be awesome. Thank you!\[code\] public class Events extends SherlockActivity { boolean isLoaded = false;ActionBar actionBar;WebView eventView;ProgressDialog progressDialog;@Overrideprotected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.events); actionBar = getSupportActionBar(); actionBar.setDisplayShowTitleEnabled(false); actionBar.setDisplayShowHomeEnabled(false); eventView = (WebView) findViewById(R.id.eventsView); eventView.getSettings().setJavaScriptEnabled(true); final Activity activity = this; /* Cut out loading screen, etc */ eventView.loadUrl("https://www.google.com/calendar/embed?showTitle=0&mode=MONTH&height=600&wkst=1&bgcolor=%23ffffff&src=http://stackoverflow.com/questions/13794769/fresnochaffeezoo%40gmail.com&color=%23182C57&ctz=America%2FLos_Angeles");}<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="fill_parent"android:layout_height="fill_parent"> <WebView android:id="@+id/eventsView" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </RelativeLayout>\[/code\]
 
Back
Top