Give the text a color [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 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");

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 customize ZXingScannerView border [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 6 years ago.
Improve this question
I am using barcodescanner library in my project, I need to customize the border color of ZXingScannerView.
as you can see in the below image the default color is green, how to change the border color?
is there any way to do that?
You have to find this file in your library and edit viewfinder_border.
https://github.com/dm77/barcodescanner/blob/master/core/src/main/res/values/colors.xml

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.

How to delete a imageview with a if statment? [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 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)

Categories

Resources