mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Remove v11 styles. Add Android TV banner. Disable title bar on themes.
This commit is contained in:
parent
57c3d8af8b
commit
3e6f5ff11c
@ -33,35 +33,38 @@ or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>na
|
|||||||
}
|
}
|
||||||
public static final class drawable {
|
public static final class drawable {
|
||||||
public static final int app_icon=0x7f020000;
|
public static final int app_icon=0x7f020000;
|
||||||
public static final int ic_launcher=0x7f020001;
|
public static final int atv_banner=0x7f020001;
|
||||||
public static final int list_view_unselected=0x7f020002;
|
public static final int ic_launcher=0x7f020002;
|
||||||
public static final int ouya_icon=0x7f020003;
|
public static final int list_view_unselected=0x7f020003;
|
||||||
|
public static final int ouya_icon=0x7f020004;
|
||||||
}
|
}
|
||||||
public static final class id {
|
public static final class id {
|
||||||
public static final int addPc=0x7f080001;
|
public static final int addPc=0x7f080001;
|
||||||
public static final int advancedSettingsButton=0x7f080013;
|
public static final int advancedSettingsButton=0x7f080015;
|
||||||
public static final int appListText=0x7f080009;
|
public static final int advancedSettingsText=0x7f080002;
|
||||||
public static final int autoDec=0x7f080004;
|
public static final int appListText=0x7f08000a;
|
||||||
public static final int bitrateLabel=0x7f080006;
|
public static final int autoDec=0x7f080005;
|
||||||
public static final int bitrateSeekBar=0x7f080007;
|
public static final int bitrateLabel=0x7f080007;
|
||||||
public static final int config1080p30Selected=0x7f080011;
|
public static final int bitrateSeekBar=0x7f080008;
|
||||||
public static final int config1080p60Selected=0x7f080012;
|
public static final int config1080p30Selected=0x7f080013;
|
||||||
public static final int config720p30Selected=0x7f08000f;
|
public static final int config1080p60Selected=0x7f080014;
|
||||||
public static final int config720p60Selected=0x7f080010;
|
public static final int config720p30Selected=0x7f080011;
|
||||||
public static final int decoderConfigGroup=0x7f080002;
|
public static final int config720p60Selected=0x7f080012;
|
||||||
public static final int disableToasts=0x7f080014;
|
public static final int decoderConfigGroup=0x7f080003;
|
||||||
public static final int discoveryText=0x7f08000b;
|
public static final int disableToasts=0x7f080016;
|
||||||
public static final int enableSops=0x7f080016;
|
public static final int discoveryText=0x7f08000c;
|
||||||
public static final int hardwareDec=0x7f080005;
|
public static final int enableSops=0x7f080018;
|
||||||
|
public static final int hardwareDec=0x7f080006;
|
||||||
public static final int hostTextView=0x7f080000;
|
public static final int hostTextView=0x7f080000;
|
||||||
public static final int manuallyAddPc=0x7f08000c;
|
public static final int manuallyAddPc=0x7f08000d;
|
||||||
public static final int pcListView=0x7f080008;
|
public static final int pcListView=0x7f080009;
|
||||||
public static final int rowTextView=0x7f080017;
|
public static final int rowTextView=0x7f080019;
|
||||||
public static final int settingsButton=0x7f08000d;
|
public static final int settingsButton=0x7f08000e;
|
||||||
public static final int softwareDec=0x7f080003;
|
public static final int softwareDec=0x7f080004;
|
||||||
public static final int streamConfigGroup=0x7f08000e;
|
public static final int streamConfigGroup=0x7f080010;
|
||||||
public static final int stretchToFill=0x7f080015;
|
public static final int streamSettingsText=0x7f08000f;
|
||||||
public static final int surfaceView=0x7f08000a;
|
public static final int stretchToFill=0x7f080017;
|
||||||
|
public static final int surfaceView=0x7f08000b;
|
||||||
}
|
}
|
||||||
public static final class layout {
|
public static final class layout {
|
||||||
public static final int activity_add_computer_manually=0x7f030000;
|
public static final int activity_add_computer_manually=0x7f030000;
|
||||||
@ -89,12 +92,6 @@ or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>na
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Base application theme for API 11+. This theme completely replaces
|
|
||||||
AppBaseTheme from res/values/styles.xml on API 11+ devices.
|
|
||||||
|
|
||||||
|
|
||||||
API 11 theme customizations can go here.
|
|
||||||
|
|
||||||
Base application theme for API 14+. This theme completely replaces
|
Base application theme for API 14+. This theme completely replaces
|
||||||
AppBaseTheme from BOTH res/values/styles.xml and
|
AppBaseTheme from BOTH res/values/styles.xml and
|
||||||
res/values-v11/styles.xml on API 14+ devices.
|
res/values-v11/styles.xml on API 14+ devices.
|
||||||
@ -103,12 +100,10 @@ or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>na
|
|||||||
*/
|
*/
|
||||||
public static final int AppBaseTheme=0x7f070000;
|
public static final int AppBaseTheme=0x7f070000;
|
||||||
/** Application theme.
|
/** Application theme.
|
||||||
All customizations that are NOT specific to a particular API-level can go here.
|
|
||||||
*/
|
*/
|
||||||
public static final int AppTheme=0x7f070001;
|
public static final int AppTheme=0x7f070001;
|
||||||
public static final int ButtonBar=0x7f070003;
|
public static final int ButtonBar=0x7f070003;
|
||||||
public static final int ButtonBarButton=0x7f070004;
|
public static final int ButtonBarButton=0x7f070004;
|
||||||
public static final int FullscreenActionBarStyle=0x7f070005;
|
|
||||||
public static final int FullscreenTheme=0x7f070002;
|
public static final int FullscreenTheme=0x7f070002;
|
||||||
}
|
}
|
||||||
public static final class styleable {
|
public static final class styleable {
|
||||||
|
BIN
res/drawable/atv_banner.png
Normal file
BIN
res/drawable/atv_banner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
@ -11,11 +11,23 @@
|
|||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content" >
|
android:layout_height="wrap_content" >
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/advancedSettingsText"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:paddingTop="0dp"
|
||||||
|
android:paddingBottom="10dp"
|
||||||
|
android:text="Advanced Settings" />
|
||||||
|
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
android:id="@+id/decoderConfigGroup"
|
android:id="@+id/decoderConfigGroup"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_below="@+id/advancedSettingsText"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
|
@ -12,10 +12,22 @@
|
|||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content" >
|
android:layout_height="wrap_content" >
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/streamSettingsText"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:paddingTop="0dp"
|
||||||
|
android:paddingBottom="10dp"
|
||||||
|
android:text="Streaming Settings" />
|
||||||
|
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
android:id="@+id/streamConfigGroup"
|
android:id="@+id/streamConfigGroup"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_below="@+id/streamSettingsText"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Base application theme for API 11+. This theme completely replaces
|
|
||||||
AppBaseTheme from res/values/styles.xml on API 11+ devices.
|
|
||||||
-->
|
|
||||||
<style name="AppBaseTheme" parent="android:Theme.Holo">
|
|
||||||
<!-- API 11 theme customizations can go here. -->
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="FullscreenTheme" parent="android:Theme.Holo">
|
|
||||||
<item name="android:actionBarStyle">@style/FullscreenActionBarStyle</item>
|
|
||||||
<item name="android:windowActionBarOverlay">true</item>
|
|
||||||
<item name="android:windowBackground">@null</item>
|
|
||||||
<item name="buttonBarStyle">?android:attr/buttonBarStyle</item>
|
|
||||||
<item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="FullscreenActionBarStyle" parent="android:Widget.Holo.ActionBar">
|
|
||||||
<item name="android:background">@color/black_overlay</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</resources>
|
|
@ -15,7 +15,9 @@
|
|||||||
|
|
||||||
<!-- Application theme. -->
|
<!-- Application theme. -->
|
||||||
<style name="AppTheme" parent="AppBaseTheme">
|
<style name="AppTheme" parent="AppBaseTheme">
|
||||||
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
|
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
|
||||||
|
<item name="android:windowActionBar">false</item>
|
||||||
|
<item name="android:windowNoTitle">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="FullscreenTheme" parent="android:Theme.NoTitleBar">
|
<style name="FullscreenTheme" parent="android:Theme.NoTitleBar">
|
||||||
|
@ -27,6 +27,7 @@ import android.widget.AdapterView;
|
|||||||
import android.widget.AdapterView.OnItemClickListener;
|
import android.widget.AdapterView.OnItemClickListener;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
import android.widget.AdapterView.AdapterContextMenuInfo;
|
import android.widget.AdapterView.AdapterContextMenuInfo;
|
||||||
|
|
||||||
@ -58,7 +59,10 @@ public class AppView extends Activity {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setTitle("App List for "+getIntent().getStringExtra(NAME_EXTRA));
|
String labelText = "App List for "+getIntent().getStringExtra(NAME_EXTRA);
|
||||||
|
TextView label = (TextView) findViewById(R.id.appListText);
|
||||||
|
setTitle(labelText);
|
||||||
|
label.setText(labelText);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ipAddress = InetAddress.getByAddress(address);
|
ipAddress = InetAddress.getByAddress(address);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user