I am thinking of showing percentage in some different way in android. Please see the attached image as reference. What I was thinking is that I will add one LinearLayout with weightSum as 100 then inside that i will have one View with 0dp as width and 20dp as height and I will set the View's weight as per the percentage and fill it with some beautiful nice color. This part is very well done and working as well but now I would like to do some animation in it.
Its a horizontal like so I would like to do some animation like from start to end it will go smoothly in horizontal way and stop at whatever percentage I pass. See the image, in that if I took example of Joomla then in that the Blue line start with 0 and quickly proceed to 70% with smooth animation.
Sample Code without Animation :-
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_below="@id/txtDuration"
android:weightSum="100" >
<TextView
android:id="@+id/lineProgress"
android:layout_width="0dp"
android:layout_height="20dp"
android:layout_marginTop="10dp"
android:layout_weight="70"
android:background="@color/tab_stacked_color"
android:gravity="right"
android:text="70%"
android:textColor="@android:color/white" />
</LinearLayout>