- res/layout/activity_main.xml
<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:orientation="vertical">
|
- /res/anim/grow.xml
<?xml version="1.0" encoding="utf-8"?>
|
package kr.co.XXX.mygraphanimation; import android.content.res.Resources; import android.graphics.Color; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.Gravity; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast;
|
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/progress"> <clip> <shape> <corners android:radius="1.0px" /> <gradient android:startColor="#0000ff" android:endColor="#0000ff" android:angle="0.0" android:centerY="0.75" android:centerColor="#0000ff" /> </shape> </clip> </item> </layer-list> |
- res/drawable/progressbar_color_green.xml
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/progress"> <clip> <shape> <corners android:radius="1.0px" /> <gradient android:startColor="#00ff00" android:endColor="#00ff00" android:angle="0.0" android:centerY="0.75" android:centerColor="#00ff00" /> </shape> </clip> </item> </layer-list> |
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/progress"> <clip> <shape> <corners android:radius="1.0px" /> <gradient android:startColor="#ff0000" android:endColor="#ff0000" android:angle="0.0" android:centerY="0.75" android:centerColor="#ff0000" /> </shape> </clip> </item> </layer-list> |
'Smart Device > Android' 카테고리의 다른 글
Material icons (0) | 2017.01.29 |
---|---|
Interpolator (0) | 2017.01.28 |
Thread - AsyncTask 사용하기 (1) | 2015.08.10 |
Thread - Handler를 이용해 Runrable 객체를 실행하기 (0) | 2015.07.30 |
Thread - Handler를 이용해 Message Queue를 전달하는 방식 (0) | 2015.07.30 |