Matrix support
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright (c) 2009-2011. Created by serso aka se.solovyev.
|
||||
~ For more information, please, contact se.solovyev@gmail.com
|
||||
~ or visit http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<org.solovyev.android.view.drag.DirectionDragButton xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
xmlns:c="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
|
||||
a:id="@+id/varsButton"
|
||||
c:directionTextScale="0.5"
|
||||
c:textUp="+π"
|
||||
a:text="π,…"
|
||||
a:textStyle="italic"
|
||||
a:onClick="varsButtonClickHandler"
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright (c) 2009-2011. Created by serso aka se.solovyev.
|
||||
~ For more information, please, contact se.solovyev@gmail.com
|
||||
~ or visit http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<org.solovyev.android.view.drag.DirectionDragButton xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
xmlns:c="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
|
||||
a:id="@+id/varsButton"
|
||||
c:directionTextScale="0.5"
|
||||
c:textUp="+π"
|
||||
c:textDown="+m"
|
||||
a:text="π,…"
|
||||
a:textStyle="italic"
|
||||
a:onClick="varsButtonClickHandler"
|
||||
style="?controlButtonStyle"/>
|
35
calculatorpp/res/layout/matrix_edit_fragment.xml
Normal file
35
calculatorpp/res/layout/matrix_edit_fragment.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:id="@+id/main_fragment_layout"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_width="match_parent"
|
||||
style="?fragmentLayoutStyle">
|
||||
|
||||
<LinearLayout a:layout_height="wrap_content"
|
||||
a:layout_width="match_parent"
|
||||
a:gravity="center">
|
||||
|
||||
<TextView a:layout_height="wrap_content"
|
||||
a:layout_width="wrap_content"
|
||||
a:text="Rows"/>
|
||||
|
||||
<org.solovyev.android.view.Picker a:id="@+id/matrix_rows_count_picker"
|
||||
a:layout_height="wrap_content"
|
||||
a:layout_width="wrap_content"/>
|
||||
|
||||
<TextView a:layout_height="wrap_content"
|
||||
a:layout_width="wrap_content"
|
||||
a:text="Columns"/>
|
||||
|
||||
<org.solovyev.android.view.Picker a:id="@+id/matrix_cols_count_picker"
|
||||
a:layout_height="wrap_content"
|
||||
a:layout_width="wrap_content"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TableLayout a:id="@+id/matrix_layout"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_width="match_parent"/>
|
||||
|
||||
</LinearLayout>
|
12
calculatorpp/res/layout/matrix_edit_fragment_item.xml
Normal file
12
calculatorpp/res/layout/matrix_edit_fragment_item.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_width="match_parent">
|
||||
|
||||
<EditText a:id="@+id/matrix_element_edittext"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_width="match_parent"
|
||||
a:text="test"/>
|
||||
|
||||
</LinearLayout>
|
Reference in New Issue
Block a user