Skip to content

Commit

Permalink
AJCBKVP 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFlyingToasterman authored and MrFlyingToasterman committed Apr 26, 2016
1 parent 5cd3c41 commit 84630fb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
versionName "1.1"
}
buildTypes {
release {
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/java/dmusiolik/ajcbk_vp/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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) {
Expand Down
14 changes: 12 additions & 2 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

<Button
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reload"
android:id="@+id/button"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
/>
android:onClick="reload" />
</RelativeLayout>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<resources>
<string name="app_name">AJCBK-VP</string>
<string name="reload">Neu laden</string>
<string name="prompt_email">AJCBK Benutzername</string>
<string name="prompt_password">Passwort</string>
<string name="action_sign_in">Anmelden</string>
Expand Down

0 comments on commit 84630fb

Please sign in to comment.