• 로그인 함 해보끄나?

  • Sarangnamu.net June 17, 2003
    Home Login Profile Study Open Project Q&A Google Code
    vertical progress
    Last Modify : 25 April, 2018(10:46)
    view 로 그냥 만들까 싶다가 찾아보니 존재한다. https://stackoverflow.com/questions/3926395/android-set-a-progressbar-to-be-a-vertical-bar-instead-of-horizontal/40538069#40538069 shape <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/background" android:drawable="@android:color/transparent"/> <item android:id="@android:id/progress"> <scale android:scaleGravity="bottom" android:scaleHeight="100%" android:scaleWidth="0%"> <shape> <solid android:color="@color/colorAccent"/> <corners android:topLeftRadius="1dp" android:topRightRadius="1dp"/> </shape> </scale> </item> </layer-list> progress <ProgressBar android:id="@+id/progress_bar" style="@android:style/Widget.ProgressBar.Horizontal" android:layout_width="24dp" android:layout_height="match_parent" android:max="1000" android:progress="200" android:progressDrawable="@drawable/progress_scale_drawable" /> !!! android:scaleGravity="bottom" //scale from 0 in y axis (default scales from center Y) android:scaleWidth="0%" //don't scale width (according to 'progress') android:scaleHeight="100%" //do scale the height of the drawable

    Comment


    입력하3 1524694440



    Locations of visitors to this page