[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 allie.sawayn
58 minutes ago
Last post by alford38
23 minutes ago
Last post by eeffertz
49 minutes ago
Last post by fdaugherty
1 hour ago
Last post by bergstrom.arnoldo
3 hours ago
Last post by predovic.alf
3 hours ago
Last post by noelia20
31 minutes ago
Last post by jett.kuvalis
2 hours ago
Last post by duane63
3 hours ago
Busy box Help
Started by lkling
Last post by janet26
4 hours ago
Last post by ara25
1 hour ago
Last post by arturo.frami
4 hours ago
Last post by eliza.feeney
2 hours ago
Last post by clara.wisozk
59 minutes ago