大约有 40,000 项符合查询结果(耗时:0.0277秒) [XML]

https://stackoverflow.com/ques... 

LinearLayout not expanding inside a ScrollView

I have a LinearLayout inside a ScrollView that has android:layout_height="fill_parent" , but it doesn't expand to the full height of the ScrollView . My layout looks something like: ...
https://stackoverflow.com/ques... 

Clear the entire history stack and start a new activity on Android

...I lvl <= 10, I haven't yet found a clean solution to this. The "DontHackAndroidLikeThis" solution is indeed pure hackery. You should not do that. :) Edit: As per @Ben Pearson's comment, for API <=10 now one can use IntentCompat class for the same. One can use IntentCompat.FLAG_ACTIVITY_CLEAR_T...
https://stackoverflow.com/ques... 

Where'd padding go, when setting background Drawable?

... padding, which is on the contained RelativeLayout. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/commentCell" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/...
https://stackoverflow.com/ques... 

How to make an app's background image repeat

...nd.xml: <?xml version="1.0" encoding="utf-8"?> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/actual_pattern_image" android:tileMode="repeat" /> values/styles.xml: <?xml version="1.0" encoding="utf-8"?> <resource...
https://stackoverflow.com/ques... 

Intercepting links from the browser to open my Android app

... Use an android.intent.action.VIEW of category android.intent.category.BROWSABLE. From Romain Guy's Photostream app's AndroidManifest.xml, <activity android:name=".PhotostreamActivity" android:label="@string...
https://stackoverflow.com/ques... 

Lock screen orientation (Android) [duplicate]

I'm writing an android application that uses tabs with different contents (activities). In one of these activities, I would like to lock the screen orientation to "Landscape"-mode, but in the other activities, I want the normal orientation (according to sensor). ...
https://stackoverflow.com/ques... 

How can I check the system version of Android?

... Check android.os.Build.VERSION. CODENAME: The current development codename, or the string "REL" if this is a release build. INCREMENTAL: The internal value used by the underlying source control to represent this build. ...
https://stackoverflow.com/ques... 

How do you change text to bold in Android?

How do you change text/font settings in an Android TextView ? 19 Answers 19 ...
https://stackoverflow.com/ques... 

Trying to add adb to PATH variable OSX

I am trying to develop for android and I want to add the adb to my PATH so that I can launch it really easily. I have added directories before by for some reason adb does not want to be found. This is very frustrating. Has anyone else had this problem before? ...
https://stackoverflow.com/ques... 

How to get current location in Android [duplicate]

...s of getting my current position coordinates using the NETWORK provider of android location system. 3 Answers ...