d tag

2228 questions


1 answers
83 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
27 views
0
I want to print it out with a zero on the left side of the number

from 0001 to 9999 I want to print 1 as 0001, is it possible?

2 years ago

1 answers
82 views
0
Replace pixels with dp

I'm building an app with a Pentec device, and the screen resolution is 480x800 But I want to set the resolution of the G1 deviceI think if you change the pixels to dp, the two devices can provide the ...

2 years ago

1 answers
132 views
0
How do I get the build version of an application?

I want to know the build version of the re-app So I want to print it out on the UIDo I have to touch the Android manifest file?


1 answers
122 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
96 views
0
How to read data from Intent on Android

I sent data to Intent from one activity to another. Intent i=new Intent(context,SendMessage.class);i.putExtra(id, user.getUserAccountId()+);i.putExtra(name, user.getUserFullName());context.startActivi...

2 years ago

1 answers
142 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
143 views
0
Differences between match and search in python regular expressions

In Python, you try to find if the string contains a something: as a regular expression. import rere.match(r'a[\s\w]+:',a something:)#a preceded by a spaceThis will result in None.import rere.search (r...

2 years ago

1 answers
110 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
145 views
0
I want to put a dialog on the screen on Android.

I'm going to create a dialog with the delete button printed on it, Are you sure you want to delete this? If you press the delete button, the data will be deleted, and if you don't, nothing will happen...

2 years ago
« - 93 - »

© 2024 OneMinuteCode. All rights reserved.