Calculator onscreen added
This commit is contained in:
32
calculatorpp/res/layout/onscreen_header.xml
Normal file
32
calculatorpp/res/layout/onscreen_header.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<RelativeLayout xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:layout_width="match_parent"
|
||||
a:layout_height="30dp">
|
||||
|
||||
<LinearLayout a:id="@+id/onscreen_header_buttons"
|
||||
a:layout_width="wrap_content"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_alignParentRight="true">
|
||||
|
||||
<Button a:id="@+id/onscreen_fold_button"
|
||||
style="@style/onscreen_header_button_style"
|
||||
a:text="_"/>
|
||||
|
||||
<Button a:id="@+id/onscreen_minimize_button"
|
||||
style="@style/onscreen_header_button_style"
|
||||
a:text="_"/>
|
||||
|
||||
<Button a:id="@+id/onscreen_close_button"
|
||||
style="@style/onscreen_header_button_style"
|
||||
a:text="x"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView a:id="@+id/onscreen_title"
|
||||
a:text="@string/c_app_name"
|
||||
a:layout_width="match_parent"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_toLeftOf="@id/onscreen_header_buttons"/>
|
||||
|
||||
</RelativeLayout>
|
@@ -4,9 +4,9 @@
|
||||
a:orientation="vertical"
|
||||
style="@style/cpp_widget_main_layout_style">
|
||||
|
||||
<include layout="@layout/overlay_header"/>
|
||||
<include layout="@layout/onscreen_header"/>
|
||||
|
||||
<LinearLayout a:id="@+id/overlay_content"
|
||||
<LinearLayout a:id="@+id/onscreen_content"
|
||||
a:orientation="vertical"
|
||||
a:layout_width="match_parent"
|
||||
a:layout_height="match_parent">
|
||||
@@ -39,6 +39,6 @@
|
||||
a:layout_height="0dp"/>
|
||||
</LinearLayout>
|
||||
|
||||
<include layout="@layout/overlay_footer"/>
|
||||
<include layout="@layout/onscreen_footer"/>
|
||||
|
||||
</LinearLayout>
|
@@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<RelativeLayout xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:layout_width="match_parent"
|
||||
a:layout_height="30dp">
|
||||
|
||||
<LinearLayout a:id="@+id/overlay_header_buttons"
|
||||
a:layout_width="wrap_content"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_alignParentRight="true">
|
||||
|
||||
<Button a:id="@+id/overlay_hide_button"
|
||||
a:layout_width="wrap_content"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_weight="0"
|
||||
a:padding="6dp"
|
||||
style="@style/widget_metro_control_button_style"
|
||||
a:text="_"/>
|
||||
|
||||
<Button a:id="@+id/overlay_close_button"
|
||||
a:layout_width="wrap_content"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_weight="0"
|
||||
a:padding="6dp"
|
||||
style="@style/widget_metro_control_button_style"
|
||||
a:text="x"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView a:id="@+id/overlay_title"
|
||||
a:text="@string/c_app_name"
|
||||
a:layout_width="match_parent"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_toLeftOf="@id/overlay_header_buttons"/>
|
||||
|
||||
</RelativeLayout>
|
Reference in New Issue
Block a user