You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.4 KiB
XML
39 lines
1.4 KiB
XML
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:customviews="http://schemas.android.com/apk/res/com.hmkcode.views"
|
|
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"
|
|
android:orientation="vertical"
|
|
tools:context="com.hmkcode.views.MainActivity"
|
|
>
|
|
|
|
<com.hmkcode.views.SimpleView
|
|
android:id="@+id/simpleViewCircle"
|
|
android:layout_width="140dp"
|
|
android:layout_height="150dp"
|
|
customviews:shape="circle"
|
|
customviews:dim="70dp"
|
|
android:layout_gravity="center_horizontal"
|
|
/>
|
|
|
|
<com.hmkcode.views.SimpleView
|
|
android:id="@+id/simpleViewSquare"
|
|
android:layout_width="140dp"
|
|
android:layout_height="140dp"
|
|
customviews:shape="square"
|
|
customviews:dim="140dp"
|
|
android:layout_gravity="center_horizontal"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
/>
|
|
</LinearLayout>
|