view tag

215 questions


1 answers
82 views
0
How to do findViewById in Fragment

I'm going to make ImageView in Fragment and use it, but the image view is made in xml. But you can't use the findViewById method when you access the image view in Fragment. I heard it's only available...


1 answers
120 views
0
I want to scroll through the text view~~

I'm printing text views almost full, so I think it'd be nice if I could scroll through them.What should I do?final TextView tv = new TextView(this); tv.setBackgroundResource(R.drawable.splash); tv.set...

2 years ago

1 answers
138 views
0
When you scroll through the list view, the background is black

I made a scrolling list view. Each list has an image on the left and text on the right.The root layout is <LinearLayoutxmlns:android=http://schemas.android.com/apk/res/androidandroid:orientation=ve...

2 years ago

1 answers
106 views
0
Is it possible to apply multiple styles in a text view?

For example, tv.setText(line1 + \n + line2 + \n + word1 + \t + word2 + \t + word3);If there is a sentence like this, I would like to apply different styles for each line1, line2, word1, word2The sauce...

2 years ago

1 answers
77 views
0
What is the difference between Padding and Margin in the view?

What is the difference between Padding and Margin in the view?


1 answers
141 views
0
How do I change the font of TextView on Android?

I'd like to change android:fontFamily on Android. I've never seen a predefined font on Android, so how do I choose one of the predefined fonts? I don't need to define my font, but I want to change it ...


1 answers
76 views
0
Is there a way to round corners in the image view?

On Android, image views are usually squares. I want to make a square with rounded corners in the image view, is it possible?


1 answers
119 views
0
How do I change the color of the separation line in the list view of Android?

How do I change the color of the separation line in the list view of Android? Please teach me.


1 answers
91 views
0
How to apply the onClick Listener in RecyclerView

I put an onClick event in RecyclerView to apply onClickListener to each item, but it doesn't work properly. How shall I do it?


1 answers
98 views
0
Can I put several view types in RecyclerView?

https://developer.android.com/intl/ko/training/material/lists-cards.htmlIf you look here

« - 8 - »

© 2024 OneMinuteCode. All rights reserved.