[Q] Custom analog clock app

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.

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!

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by znicolas
27 minutes ago
Last post by vdubuque
1 hour ago
Last post by macy86
4 hours ago
Last post by nelle.hickle
4 hours ago
Last post by matilde.kuvalis
1 hour ago
Last post by stuart63
1 hour ago
Technical issue
Started by iadams
Last post by lang.mallie
32 minutes ago