Post Reply

Custom analog clock app

OP RamboRoland

23rd June 2014, 02:34 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Jun 2014
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 by RamboRoland; 23rd June 2014 at 03:09 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Java for Android App Development by ThreadRank