Skip to content Skip to sidebar Skip to footer

Android Drawable (progress Bar, Switch) Rendering Issue

I am trying to implement the below UI. I am using Eclipse with ADT plugin. The below is the implementation of the circle [White + Dark Gray] (circle_shape.xml):

Solution 1:

Found the solution to your problem

in "Circular_progress_bar"

<?xml version="1.0" encoding="utf-8"?><rotatexmlns:android="http://schemas.android.com/apk/res/android"android:fromDegrees="270"android:toDegrees="270" ><shapeandroid:innerRadius="65dp"android:shape="ring"android:thickness="10dp"android:useLevel="true" ><gradientandroid:angle="0"android:endColor="#FF00FF00"android:startColor="#FF00FF00"android:type="sweep"android:useLevel="false" /></shape></rotate>

Becauseandroid:useLevel="true" is by default false is API Level 21

Beforeenter image description here

Afterenter image description here

Post a Comment for "Android Drawable (progress Bar, Switch) Rendering Issue"