refs #137
my initial commit of the new layouts for landscape. they need some tweaking
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<uses-sdk android:minSdkVersion="3" />
|
<uses-sdk android:minSdkVersion="3" />
|
||||||
|
|
||||||
<application android:label="@string/app_name" android:icon="@drawable/playdisabled">
|
<application android:label="@string/app_name" android:icon="@drawable/playdisabled">
|
||||||
<activity android:name="SweetDreams" android:screenOrientation="portrait">
|
<activity android:name="SweetDreams">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"></action>
|
<action android:name="android.intent.action.MAIN"></action>
|
||||||
<category android:name="android.intent.category.LAUNCHER"></category>
|
<category android:name="android.intent.category.LAUNCHER"></category>
|
||||||
|
|||||||
64
SweetDreamsLib/res/layout-land/main.xml
Normal file
64
SweetDreamsLib/res/layout-land/main.xml
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<RelativeLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:myapp="com.TwentyCodes.android.SweetSoundsLite"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:background="#ffffff"
|
||||||
|
>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/track_title"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:textColor="#000000"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="20dip"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:layout_marginTop="5dip"
|
||||||
|
android:layout_below="@id/track_title"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/play_pause_button"
|
||||||
|
android:background="@drawable/play_button"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/time_left"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_toRightOf="@id/track_title"
|
||||||
|
android:layout_marginLeft="5dip"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:textColor="#000000"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="20dip"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<SeekBar
|
||||||
|
android:max="100"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:layout_marginRight="20dip"
|
||||||
|
android:layout_marginLeft="20dip"
|
||||||
|
android:id="@+id/volume"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_above="@id/volume"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:text="Volume"
|
||||||
|
android:textColor="#000000"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="20dip"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
73
SweetDreamsLib/res/layout-land/main_lite.xml
Normal file
73
SweetDreamsLib/res/layout-land/main_lite.xml
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<RelativeLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:myapp="com.TwentyCodes.android.SweetSoundsLite"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:background="#ffffff"
|
||||||
|
>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/track_title"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:textColor="#000000"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="20dip"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:layout_marginTop="5dip"
|
||||||
|
android:layout_below="@id/track_title"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/play_pause_button"
|
||||||
|
android:background="@drawable/play_button"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/time_left"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_toRightOf="@id/track_title"
|
||||||
|
android:layout_marginLeft="5dip"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:textColor="#000000"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="20dip"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<com.admob.android.ads.AdView
|
||||||
|
android:id="@+id/ad"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
myapp:backgroundColor="#000000"
|
||||||
|
myapp:primaryTextColor="#FFFFFF"
|
||||||
|
myapp:secondaryTextColor="#CCCCCC"/>
|
||||||
|
|
||||||
|
<SeekBar
|
||||||
|
android:max="100"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_above="@id/ad"
|
||||||
|
android:layout_marginRight="20dip"
|
||||||
|
android:layout_marginLeft="20dip"
|
||||||
|
android:id="@+id/volume"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_above="@id/volume"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:text="Volume"
|
||||||
|
android:textColor="#000000"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="20dip"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
<uses-sdk android:minSdkVersion="3" />
|
<uses-sdk android:minSdkVersion="3" />
|
||||||
|
|
||||||
<application android:label="@string/app_name_lite" android:icon="@drawable/playdisabled">
|
<application android:label="@string/app_name_lite" android:icon="@drawable/playdisabled">
|
||||||
<activity android:name=".SweetDreams" android:label="@string/app_name_lite" android:screenOrientation="portrait">
|
<activity android:name=".SweetDreams" android:label="@string/app_name_lite">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
|||||||
Reference in New Issue
Block a user