happy face

happy face
This commit is contained in:
hmkcode
2015-05-01 21:28:57 +03:00
parent 042099a6ef
commit d35cfae97b
11 changed files with 300 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 KiB

@@ -0,0 +1,26 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.hmkcode.faces.MainActivity"
xmlns:faceview="http://schemas.android.com/apk/res/com.hmkcode.drawing"
android:background="@drawable/woodgraybg"
android:gravity="center"
>
<com.hmkcode.drawing.FaceView
android:id="@+id/fvHappy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
faceview:radius="50dp"
android:layout_margin="5dp"
android:layout_gravity="center"
android:background="#80000000"
/>
</LinearLayout>
@@ -0,0 +1,5 @@
<resources>
<declare-styleable name="FaceView">
<attr name="radius" format="dimension"/>
</declare-styleable>
</resources>
@@ -0,0 +1,7 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
</resources>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">DrawFace</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
</resources>
@@ -0,0 +1,20 @@
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
</resources>