Custom analog clock app

Search This thread

RamboRoland

New member
Jun 23, 2014
2
0
Hi!

I'm quite new to android app development and I need some help. What I want to achieve here is to learn how to take a value and use it as a rotation value for a image. This will happend once a second.

I have a class ready with a value to implement as the rotation value. It comes from the class Time. And the rotation value = Time.getSec();

classes:
MainActivity.java
Time.java

The image I want to rotate is below with all parameters applied atm.

<ImageView
android:id="@+id/bigSecPointer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="26dp"
android:src="@drawable/big_sec_pointer" />

Kind regards Robin!
 
Last edited: