Skip to content

Commit 9f4fc6f

Browse files
committed
PAINTROID-396 Multiline tool with movable intermediate points
change toolposition in grid
1 parent f271ea5 commit 9f4fc6f

File tree

2 files changed

+25
-20
lines changed

2 files changed

+25
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="24dp"
1+
<vector
32
android:height="24dp"
4-
android:viewportWidth="960"
53
android:viewportHeight="960"
6-
android:tint="?attr/colorControlNormal">
7-
<path
8-
android:fillColor="@android:color/white"
9-
android:pathData="M109.91,720Q81,720 60.5,699.41Q40,678.82 40,649.91Q40,621 60.49,600.5Q80.99,580 109.77,580Q115,580 120,580.5Q125,581 133,583L333,383Q331,375 330.5,370Q330,365 330,359.77Q330,330.99 350.59,310.49Q371.18,290 400.09,290Q429,290 449.5,310.63Q470,331.27 470,360.24Q470,362 467,383L577,493Q585,491 590,490.5Q595,490 600,490Q605,490 610,490.5Q615,491 623,493L783,333Q781,325 780.5,320Q780,315 780,309.77Q780,280.99 800.59,260.49Q821.18,240 850.09,240Q879,240 899.5,260.59Q920,281.18 920,310.09Q920,339 899.51,359.5Q879.01,380 850.23,380Q845,380 840,379.5Q835,379 827,377L667,537Q669,545 669.5,550Q670,555 670,560.23Q670,589.01 649.41,609.51Q628.82,630 599.91,630Q571,630 550.5,609.51Q530,589.01 530,560.23Q530,555 530.5,550Q531,545 533,537L423,427Q415,429 410,429.5Q405,430 399.75,430Q398,430 377,427L177,627Q179,635 179.5,640Q180,645 180,650.23Q180,679.01 159.41,699.51Q138.82,720 109.91,720Z"/>
4+
android:viewportWidth="960"
5+
android:width="24dp"
6+
xmlns:android="http://schemas.android.com/apk/res/android">
7+
<path
8+
android:fillColor="#FF000000"
9+
android:pathData="M109.91,720Q81,720 60.5,699.41 40,678.82 40,649.91 40,621 60.49,600.5t49.27,-20.5q5.23,0 10.23,0.5 5,0.5 13,2.5l200,-200q-2,-8 -2.5,-13t-0.5,-10.23q0,-28.78 20.59,-49.27Q371.18,290 400.09,290 429,290 449.5,310.63t20.5,49.61Q470,362 467,383l110,110q8,-2 13,-2.5t10,-0.5q5,0 10,0.5t13,2.5l160,-160q-2,-8 -2.5,-13t-0.5,-10.23q0,-28.78 20.59,-49.27Q821.18,240 850.09,240 879,240 899.5,260.59q20.5,20.59 20.5,49.5Q920,339 899.51,359.5T850.23,380Q845,380 840,379.5q-5,-0.5 -13,-2.5L667,537q2,8 2.5,13t0.5,10.23q0,28.78 -20.59,49.27Q628.82,630 599.91,630 571,630 550.5,609.51T530,560.23q0,-5.23 0.5,-10.23 0.5,-5 2.5,-13L423,427q-8,2 -13,2.5t-10.25,0.5q-1.75,0 -22.75,-3L177,627q2,8 2.5,13t0.5,10.23q0,28.78 -20.59,49.27Q138.82,720 109.91,720Z"/>
1010
</vector>

Paintroid/src/main/res/layout/pocketpaint_layout_bottom_bar.xml

+18-13
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,6 @@
7979
style="@style/PocketPaintToolSelectionButtonTextView"
8080
android:text="@string/button_line"/>
8181
</LinearLayout>
82-
83-
<LinearLayout
84-
android:id="@+id/pocketpaint_tools_dynamic_line"
85-
tools:ignore="UseCompoundDrawables"
86-
style="@style/PocketPaintToolSelectionButton">
87-
<ImageView
88-
style="@style/PocketPaintToolSelectionButtonImageView"
89-
android:src="@drawable/ic_pocketpaint_tool_dynamic_line"
90-
android:contentDescription="@string/button_dynamic_line"/>
91-
<TextView
92-
style="@style/PocketPaintToolSelectionButtonTextView"
93-
android:text="@string/button_dynamic_line"/>
94-
</LinearLayout>
9582
</TableRow>
9683

9784
<TableRow
@@ -261,4 +248,22 @@
261248
android:text="@string/button_clip"/>
262249
</LinearLayout>
263250
</TableRow>
251+
252+
<TableRow
253+
android:layout_marginTop="16dp"
254+
android:layout_marginBottom="16dp">
255+
256+
<LinearLayout
257+
android:id="@+id/pocketpaint_tools_dynamic_line"
258+
tools:ignore="UseCompoundDrawables"
259+
style="@style/PocketPaintToolSelectionButton">
260+
<ImageView
261+
style="@style/PocketPaintToolSelectionButtonImageView"
262+
android:src="@drawable/ic_pocketpaint_tool_dynamic_line"
263+
android:contentDescription="@string/button_dynamic_line"/>
264+
<TextView
265+
style="@style/PocketPaintToolSelectionButtonTextView"
266+
android:text="@string/button_dynamic_line"/>
267+
</LinearLayout>
268+
</TableRow>
264269
</TableLayout>

0 commit comments

Comments
 (0)