... | ... | @@ -58,3 +58,36 @@ public class LibraryModule extends AbstractAsistModule { |
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
de.bps.asist.module.library.LibraryFragment:
|
|
|
```java
|
|
|
package de.bps.asist.module.library;
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
import android.text.method.ScrollingMovementMethod;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
|
import android.widget.TextView;
|
|
|
import de.bps.asist.R;
|
|
|
import de.bps.asist.gui.AbstractASiSTFragment;
|
|
|
|
|
|
public class LibraryFragment extends AbstractASiSTFragment {
|
|
|
|
|
|
/**
|
|
|
* Creates and returns modul view. If necessary, register input handler to view elements.
|
|
|
* @return modul view
|
|
|
*/
|
|
|
@Override
|
|
|
public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {
|
|
|
|
|
|
// Load Layout from layout ressource
|
|
|
final View view = inflater.inflate(R.layout.library, container, false);
|
|
|
|
|
|
TextView tvmyStuff = (TextView) view.findViewById(R.id.libraryTextView);
|
|
|
tvmyStuff.setText("Hallo library.");
|
|
|
tvmyStuff.setMovementMethod(new ScrollingMovementMethod());
|
|
|
return view;
|
|
|
}
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |