How to delete a imageview with a if statment? [closed] - android

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
If I ran an if statement, could I put something in there to delete a image view?
ex.
if (stuff || morestuff)
{
imageview1.delete
}

You have to remove the view from your parent view. or you can set the View visibility to Gone yourImageView.setVisibilty(View.GONE)

Related

How to slide a activity in android [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
how to Slide an activity like the image below, after sliding the trail of the activities must be visible like the below image.
enter image description here
you can use this library DiscreteScrollView just you need to customize the adapter layout as your requirement.

how to create xml backgroup for liner layout? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i wanna create xml backgroud for item of my list but backgroun must be like it
how to do it, please help
you don't need to create new xml for backgound, just add to the items xml this background
android:background="#android:drawable/dialog_holo_light_frame"

how to use RecyclerView to make a Circle list [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Just like the picture shows, let in horizontal, every item in my RecyclerView will have a ImageView and TextView
i want to make this in horizontalenter image description here
You could use this CircleList library, that it does almost the same as you want.
The effect is made with this MatrixView, you can copy it and do the effect as you want.

Add row on the gridview android [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How to add another 1 full-width row on the top of the Grid view that is not divided into two?the content was same but the image would be display on right. here's the link to the tutorial i followed : link to the tutorial i will mark this answer immediately for those who can solve this thanks!
You just make a change in Xml, in gridview jst change with android:numColumns="1"

Give the text a color [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
If I have something such as:
TextView description_label;
description_label.setText("Information");
How can I choose/set the colour of the text. Eg. have 'Information' in green
Call description.setTextColor(). Or use android:textColor in the xml.
TextView description_label;
description_label.setTextColor(Color.GREEN);
description_label.setText("Information");

Categories

Resources