From 84630fb6d4bb89b62339a372a1210b6567c61acd Mon Sep 17 00:00:00 2001 From: MrFlyingToasterman Date: Tue, 26 Apr 2016 19:31:09 +0200 Subject: [PATCH] AJCBKVP 1.1 --- app/build.gradle | 2 +- .../main/java/dmusiolik/ajcbk_vp/MainActivity.java | 5 +++++ app/src/main/res/layout/activity_main.xml | 14 ++++++++++++-- app/src/main/res/values/strings.xml | 1 + 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index bd33d71..21978cb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,7 +9,7 @@ android { minSdkVersion 15 targetSdkVersion 23 versionCode 1 - versionName "1.0" + versionName "1.1" } buildTypes { release { diff --git a/app/src/main/java/dmusiolik/ajcbk_vp/MainActivity.java b/app/src/main/java/dmusiolik/ajcbk_vp/MainActivity.java index 7cdbce3..0901671 100644 --- a/app/src/main/java/dmusiolik/ajcbk_vp/MainActivity.java +++ b/app/src/main/java/dmusiolik/ajcbk_vp/MainActivity.java @@ -23,6 +23,10 @@ protected void onCreate(Bundle savedInstanceState) { browse(); } + public void reload(View view) { + browse(); + } + public void browse() { browser = (WebView) findViewById(R.id.webViewIV); //browser.setHttpAuthUsernamePassword("http://ajc-bk.dyndns.org:8008", "", LoginActivity.benutzer, "testpasswort"); @@ -32,6 +36,7 @@ public void browse() { browser.getSettings().setSupportZoom(false); browser.setVerticalScrollBarEnabled(false); browser.loadUrl("http://ajc-bk.dyndns.org:8008/Vertretung-Online/"); + //Parse htmlcode browser.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index c5cf25b..41ccf92 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -14,10 +14,20 @@ android:layout_height="wrap_content" android:id="@+id/webViewIV" android:layout_alignParentTop="true" - android:layout_alignParentBottom="true" + android:layout_above="@+id/button" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + +