I know this is a very simple question, but as a beginner I can't get around. Thus, I want several actions to use the same xml layout (consisting, for example, of 1 image button and several text views with different identifiers). Now for each action, I want them to view the same layout, but redefine the views with data unique to each type of data. What is the best way to do this? In addition, the image button should open different URLs in the video player (YouTube links).
And can someone tell me what is the most practical way to learn Android programming?
UPDATE This is my current code:
public class TemakiActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.contentviewer); }
}
For example, I have a text image with the identifier "descriptionviewer" and a button with the identifier "video link", now, how do you encode them?
android android-activity layout
borislemke
source share