id tag

1618 questions


1 answers
81 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
130 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
121 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
140 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
108 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
143 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

1 answers
101 views
0
Is there a permission for Internet access in the Android app?

An error message came out while running the app. java.net.SocketException: Permission denied (maybe missing INTERNET permission)


1 answers
78 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
79 views
0
Can't you not turn it off when you click the button in the dialog?

I made a dialog with EditText. There are Yes and No buttons. For example, if you click the Yes button, the input is checked and the dialog is turned off. But even if the input is wrong, the dialog is ...

« - 53 - »

© 2024 OneMinuteCode. All rights reserved.