Android Studio App

Asked

Viewed 72 times

-2

I am developing an application that is a dictionary of chords for guitar. And as there are numerous chords, consequently I have numerous activities. The problem is that the application will be very, very large, because of using the buttons and images several times, for example: If I have 200 chords, I have 200 activities and I am using the same images and buttons for 200 times. To solve the problem, I thought of using a "generic" Activity, that is, the same for all chords. Thus, when I choose the C chord, Activity will behave in one way (the buttons that simulate the fingers will be in a certain position), and when I choose the D chord, this same Activity will behave differently (the buttons have changed again). This is possible personal???

1 answer

0

It is possible if the shell is the same, and the buttons turn images. Then just call through the database the name of the image.

I recommend searching about Recyclerview, Itemview, Picasso Library (To upload images) and how to store using a database on Android.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.