Commit 1e7c21cb authored by Michael Merg's avatar Michael Merg
Browse files

Android: add basic UI structure

parent 03d75cfb
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="false"
android:drawable="@drawable/header_browser" />
<item
android:state_pressed="true"
android:drawable="@drawable/header_browser_pressed" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="false"
android:drawable="@drawable/header_playlist" />
<item
android:state_pressed="true"
android:drawable="@drawable/header_playlist_pressed" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="false"
android:drawable="@drawable/header_loupe" />
<item
android:state_pressed="true"
android:drawable="@drawable/header_loupe_pressed" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="About"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:background="@drawable/header"
android:layout_width="fill_parent"
android:layout_height="48dip"
android:orientation="horizontal">
<ImageView
android:src="@drawable/header_logo"
android:layout_width="wrap_content"
android:layout_height="48dip"
android:scaleType="fitStart"
android:paddingLeft="12dip"/>
<View
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"/>
<ProgressBar
android:id="@+id/ml_progress_bar"
android:layout_width="22dip"
android:layout_height="22dip"
android:layout_margin="13dip"
android:visibility="invisible"/>
<ImageButton
android:id="@+id/ml_header_button_view"
android:background="@drawable/header_button_playlist"
android:layout_width="48dip"
android:layout_height="48dip"
android:onClick="changeView"/>
<ImageButton
android:layout_width="48dip"
android:layout_height="48dip"
android:background="@drawable/header_button_search"
android:onClick="search"/>
</LinearLayout>
<ListView
android:id="@+id/ml_list"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"/>
</LinearLayout>
\ No newline at end of file
<?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">
<TextView
android:id="@+id/ml_item_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<android.opengl.GLSurfaceView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/player_surface_view"/>
</FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/ml_menu_about" android:icon="@android:drawable/ic_menu_info_details" android:title="@string/about"></item>
<item android:title="@string/preferences" android:icon="@android:drawable/ic_menu_preferences" android:id="@+id/ml_menu_preferences"></item>
</menu>
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
</PreferenceScreen>
<?xml version="1.0" encoding="utf-8"?>
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:hint="blub" android:label="VLC">
</searchable>
\ No newline at end of file
package vlc.android;
import android.app.Activity;
import android.os.Bundle;
public class AboutActivity extends Activity {
public final static String TAG = "VLC/AboutActivity";
@Override
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.about);
super.onCreate(savedInstanceState);
}
}
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