android - display the images vies one by one -


Hello, I am working on a child application in that application, I have 1 + 1 = 2, 1 + 2 I want to show = 3 etc. For this, I would like to see that the number pictures are displayed one by one. This means that after some time firearms are displayed after the second number. Give me some suggestions for this. Please give me some example code. Thank you in advance

Your IDA is similar to your application in the Android market, Used to be:.

> I use a TableLayout with the individual TableRow s for images, like this:

 < Code> & lt; TableRow android: layout_marginTop = "5dp" & gt; & Lt; ImageView Android: id = "@ + id / img1" /> & Lt; ImageView Android: id = "@ + id / img2" /> & Lt; ImageView Android: id = "@ + id / img3" /> & Lt; ImageView Android: id = "@ + id / img4" /> & Lt; / TableRow & gt;  

Program has private variables for images, which I change on user selection. Initially it may look like this (after the above image):

  increases the public classroom LearnMath activity {private image view img1, img2, img3, img4; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); Img1 = (ImageView) findViewById (R.id.img1); Img2 = (ImageView) findViewById (R.id.img2); Img3 = (ImageView) findViewById (R.id.img3); Img4 = (ImageView) findViewById (R.id.img4); // Img1.setImageResource (R.drawable.six) located in res / drawable folder with PNG images with lower case names; Img2.setImageResource (R.drawable.plus); Img3.setImageResource (R.drawable.zero); Img4.setImageResource (R.drawable.equals); }  

I hope this gives you a starting point of your application!


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -