Commit f099e24e authored by Thomas Krex's avatar Thomas Krex

dies das

parent 940db4a5
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>TTTCLient</name>
<name>AndroidTTTClient</name>
<comment></comment>
<projects>
</projects>
......
......@@ -40,7 +40,7 @@
<intent-filter>
<data android:scheme="http" />
<data android:host="ttt.in.tum.de" />
<data android:pathPattern="\\/lectures\\/rss\\.php.*"/>
<data android:pathPattern="\\/lectures\\/ttt-android.*"/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
......
......@@ -25,7 +25,7 @@
android:layout_width="240dp"
android:layout_height="match_parent"
android:visibility="gone"
android:background="@android:color/transparent"
android:background="@color/trans_black"
android:fillViewport="false"
/>
......
......@@ -26,5 +26,8 @@
<string name="no_lectures">No Lectures Available</string>
<string name="no_feeds">No Feeds found!!! \n\n Add a feed by clicking on \n + \nin the Actionbar</string>
<string name="watch">Watch Lectures</string>
<color name="light_gray">#66bfbdbd</color>
<color name="trans_blue">#660063d2</color>
<color name="trans_black">#d1212427</color>
</resources>
\ No newline at end of file
......@@ -10,6 +10,11 @@
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<style name="android:Theme.MusicPlayer">
<item name="android:textColor">#FFFFFF</item>
</style>
</resources>
\ No newline at end of file
......@@ -11,6 +11,7 @@ import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.view.ContextThemeWrapper;
import android.view.Display;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
......@@ -82,10 +83,14 @@ public class PlayerActivity extends SherlockActivity implements
final File tttFile = new File(filePath + "/" + fileName + ".ttt");
File audioFile = new File(filePath + "/" + fileName + ".mp3");
// audioPlayer for controlling mp3-file
audioPlayer = MediaPlayer.create(this, Uri.fromFile(audioFile));
// creates a MediaController without fastforward and rewind buttons
audioController = new MediaController(this, false);
audioController = new MediaController(new ContextThemeWrapper(this,
R.style.android_Theme_MusicPlayer), false);
audioController.setMediaPlayer(this);
// show dialog parse ttt-File
......@@ -329,34 +334,34 @@ public class PlayerActivity extends SherlockActivity implements
}
}
void switchLayout(int mode) {
// switch to fullscreen
if (mode == LAYOUT_MODE_FULL) {
setContentView(R.layout.activity_player_full);
surfaceView = (SurfaceView) findViewById(R.id.playerView_fullscreen);
recording.graphicsContext().setHolder(surfaceView.getHolder());
recording.graphicsContext().updateView(true);
// switcher.setDisplayedChild(LAYOUT_MODE_FULL);
}
// switch to extended View
if (mode == LAYOUT_MODE_EXTENDED) {
setContentView(R.layout.activity_player_extended);
surfaceView = (SurfaceView) findViewById(R.id.playerView_extended);
recording.graphicsContext().setHolder(surfaceView.getHolder());
recording.graphicsContext().updateView(true);
// switcher.setDisplayedChild(LAYOUT_MODE_EXTENDED);
scrollView.scrollTo(0, recording.getIndex().scrollPos);
}
}
// void switchLayout(int mode) {
//
// // switch to fullscreen
// if (mode == LAYOUT_MODE_FULL) {
// setContentView(R.layout.activity_player_full);
// surfaceView = (SurfaceView) findViewById(R.id.playerView_fullscreen);
// recording.graphicsContext().setHolder(surfaceView.getHolder());
//
// recording.graphicsContext().updateView(true);
//
// // switcher.setDisplayedChild(LAYOUT_MODE_FULL);
//
// }
// // switch to extended View
// if (mode == LAYOUT_MODE_EXTENDED) {
// setContentView(R.layout.activity_player_extended);
// surfaceView = (SurfaceView) findViewById(R.id.playerView_extended);
// recording.graphicsContext().setHolder(surfaceView.getHolder());
//
// recording.graphicsContext().updateView(true);
//
// // switcher.setDisplayedChild(LAYOUT_MODE_EXTENDED);
//
// scrollView.scrollTo(0, recording.getIndex().scrollPos);
//
// }
//
// }
/**
* Scales the Parent Layout of the SurfaceView. The method computes the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment