Answer the question
In order to leave comments, you need to log in
How to change the visibility of a button in one activity through another activity?
I have two activities - Activity1 and Activity2. Activity1 is just an empty sheet with an invisible button button (its invisibility is set via xml markup). The activity code is shown below.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_lessons);
button = (Button) findViewById(R.id.button);
button.setOnClickListener(this);
}
if (a[0] >4*x[0]){
...
...
...
}
Answer the question
In order to leave comments, you need to log in
1) do not use activities for this, use fragments;
2) if you really want to, use startActivityForResult + onActivityResult. Activity instances should not see each other under any circumstances. So "changing visibility in another activity", no matter how simple it may seem, is impossible.
+1 to Stalker_RED 's answer , especially since it seems to be so in the example. Only two pictures: a line separator (which is circled in red) and a block separator (between numbers), then the list down will be dynamic.
I suggest you cut it all into cells, you get a 9 x 5 field and fill the curve in pieces with the background. Text under numbered position: absoute. Curve between lines - one block.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question