«   2018/09   »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Archives
Today
66
Total
1,152,974
안정적인 DNS서비스 DNSEver
관리 메뉴

Blue Breeze

Circle TextView 본문

Editor IDE/AndroidStudio

Circle TextView

푸른바람 C/H 2017.01.16 08:00

drawable/round.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval">
    <solid android:color="@color/boll" />
    <size
        android:height="60dp"
        android:width="60dp" />
</shape>

layout/somthing.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">


    <TextView
        android:text="01"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_margin="2dp"
        android:layout_weight="1"
        android:textSize="30dp"
        android:textStyle="normal|bold"
        android:gravity="center"
        android:textColor="@color/boll_text"
        android:background="@drawable/boll"
        tools:ignore="HardcodedText,SpUsage" />

</LinearLayout>

'Editor IDE > AndroidStudio' 카테고리의 다른 글

Android Drawable Shape Syntax  (0) 2017.01.18
android SQLite DB 열기  (0) 2017.01.17
Circle TextView  (0) 2017.01.16
orma "transformClasses With New Class Shrinker For Debug"  (0) 2017.01.12
Android ORM  (0) 2017.01.11
RxBrite Android-Orma  (0) 2017.01.10
0 Comments
댓글쓰기 폼