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:
parent
cd870f0500
commit
244dae48e6
Binary file not shown.
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
||||
<include layout="@layout/action_bar"/>
|
||||
|
||||
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>
|
||||
<WebView
|
||||
android:id="@+id/webview_dialog"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
</WebView>
|
||||
|
||||
</LinearLayout>
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user