Skip to content

Commit 0c06eff

Browse files
committed
svg test
1 parent bb2ee33 commit 0c06eff

File tree

5 files changed

+32
-6
lines changed

5 files changed

+32
-6
lines changed

.idea/checkstyle-idea.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ android {
1010
targetSdkVersion 23
1111
versionCode 1
1212
versionName "1.0"
13-
13+
vectorDrawables.useSupportLibrary = true
1414
ndk {
1515
moduleName "JNIHelper"
1616
// moduleName "luajava"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<vector xmlns:android = "http://schemas.android.com/apk/res/android"
2+
android:width = "240dp"
3+
android:height = "240dp"
4+
android:viewportHeight = "1024.0"
5+
android:viewportWidth = "1024.0" >
6+
<path
7+
android:fillColor = "#272636"
8+
android:pathData = "M875.8,172.9 L875.8,172.9 693.8,0 217.6,0C167.5,0 117.3,38.1 117.3,88.2l0,823.9C117.3,962.2 167.5,1024 217.6,1024L814.7,1024c50.1,0 91.9,-61.8 91.9,-111.9L906.7,200.6 875.8,172.9zM864,903.9C864,952.2 837.8,981.3 791.8,981.3L240.6,981.3C194.5,981.3 160,952.2 160,903.9L160,112.3C160,64 194.5,42.7 240.6,42.7L672,42.7l0,146.3 192,12.4L864,903.9z" />
9+
</vector >
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RelativeLayout
33
xmlns:android = "http://schemas.android.com/apk/res/android"
4+
xmlns:app = "http://schemas.android.com/apk/res-auto"
45
xmlns:tools = "http://schemas.android.com/tools"
56
android:layout_width = "match_parent"
67
android:layout_height = "match_parent"
@@ -11,12 +12,18 @@
1112
tools:context = "com.allen.androiddevcoder.activity.Main3Activity" >
1213

1314
<TextView
15+
android:id = "@+id/button"
1416
android:layout_width = "wrap_content"
1517
android:layout_height = "70dp"
16-
android:text = "New Button"
17-
android:id = "@+id/button"
1818
android:layout_alignParentTop = "true"
1919
android:layout_centerHorizontal = "true"
20-
android:background="@drawable/action_bg"
21-
android:layout_marginTop = "158dp" />
20+
android:layout_marginTop = "158dp"
21+
android:background = "@drawable/action_bg"
22+
android:text = "New Button" />
23+
24+
<ImageView
25+
android:layout_width = "match_parent"
26+
android:layout_height = "match_parent"
27+
28+
android:src="@drawable/iconfont_biaoqian" />
2229
</RelativeLayout >

0 commit comments

Comments
 (0)