Fixed some errors in the Information Module. Created a simple layout for the information modules. No functionality. Only loads a blank screen

This commit is contained in:
Jose Antonio Guerrero Aviles 2013-11-18 17:12:26 +01:00
parent cd870f0500
commit 244dae48e6
4 changed files with 23 additions and 22 deletions

View File

@ -214,7 +214,7 @@
<activity
android:name=".modules.introduction.Introduction"
android:name=".modules.information.Introduction"
android:label="@string/introductionModuleLabel"
android:theme="@@android:style/Theme.NoTitleBar">
</activity>

View File

@ -1,24 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background"
android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background"
android:orientation="vertical">
<include layout="@layout/action_bar"/>
<WebView
android:id="@+id/webview_dialog"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</WebView>
<include layout="@layout/action_bar"/>
<WebView
android:id="@+id/webview_dialog"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</WebView>
</LinearLayout>

View File

@ -12,6 +12,8 @@ import org.xmlpull.v1.XmlPullParserException;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;
import es.ugr.swad.swadroid.R;
import es.ugr.swad.swadroid.modules.Module;
@ -21,10 +23,17 @@ public class Introduction extends Module {
@Override
protected void onCreate(Bundle savedInstanceState) {
WebView webview;
super.onCreate(savedInstanceState);
setContentView(R.layout.webview_information_screen_layout);
webview = (WebView) this.findViewById(R.id.contentWebView);
WebView webview = (WebView) this.findViewById(R.id.contentWebView);
ImageView moduleIcon = (ImageView) this.findViewById(R.id.moduleIcon);
moduleIcon.setBackgroundResource(R.drawable.notif);
TextView moduleText = (TextView) this.findViewById(R.id.moduleName);
moduleText.setText(R.string.introductionModuleLabel);
}