«android» 태그된 질문

Android는 Google의 모바일 운영체제로 디지털 기기 (스마트 폰, 태블릿, 자동차, TV, 마모, 유리, IoT)를 프로그래밍하거나 개발하는 데 사용됩니다. Android 관련 주제의 경우 android-intent, android-activity, android-adapter 등과 같은 Android 관련 태그를 사용하십시오. 개발 또는 프로그래밍 이외의 질문이지만 Android 프레임 워크와 관련된 질문은 다음 링크를 사용하십시오. https : // android.stackexchange.com.


2
이미 ACCESS_FINE_LOCATION이있는 경우 ACCESS_COARSE_LOCATION을 생략 할 수 있습니까?
ACCESS_FINE_LOCATION매니페스트에서 이미 권한을 요청하는 GPS 앱이 있습니다 . 이제 .NET Framework가 필요한 라이브러리 (MoPub)를 추가하고 싶습니다 ACCESS_COARSE_LOCATION. ACCESS_FINE_LOCATION충분 하다고 가정하는 것이 맞 ACCESS_COARSE_LOCATION습니까? 그리고 내 매니페스트에서 제외 할 수 있습니까?

23
Android Studio-XML 편집기 자동 완성이 지원 라이브러리에서 작동하지 않음
방금 새로운 android.support.design 라이브러리를 사용하기 시작했습니다. XML 편집기 내에서 위젯을 사용할 때 XML 자동 완성 제안을받지 않습니다! 예를 들면 <android.support.design.widget.CoordinatorLayout android:id="@+id/header_root" android:layout_width="match_parent" android:layout_height="200dp"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/primary_dark" /> <android.support.design.widget.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:src="@drawable/ic_action_add" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:layout_marginTop="56dp" app:fabSize="normal" app:layout_anchor="@id/header_root" app:layout_anchorGravity="bottom|right|end" /> </android.support.design.widget.CoordinatorLayout> 어떤 태그도 자동 완성 팝업을 표시하지 않습니다. "android : …

4
getExternalFilesDir과 getExternalStorageDirectory ()의 차이점
ExternalFiles는 API 8 이상에서 사용되고 getExternalStorageDirectory는 7 이하에서 사용된다는 것을 이해합니다. 그러나 나는 사용 사이에 약간 혼란 스럽습니다. 예를 들어, 존재하는 폴더가 있는지 확인하고 싶었고 이전에는 다음과 같은 것을 사용했습니다. File ChildFolder = new File(Environment.getExternalStorageDirectory() + "/ParentFolder/Child"); 그러나 내가 보는 모든 예제는 getExternalFilesDir (null), File.ext를 사용하도록 말합니다. API 8 이상이므로이 …
89 java  android  file 



13
ListAdapter가 RecyclerView에서 항목을 업데이트하지 않음
새 지원 라이브러리를 사용하고 있습니다 ListAdapter. 다음은 어댑터의 코드입니다. class ArtistsAdapter : ListAdapter<Artist, ArtistsAdapter.ViewHolder>(ArtistsDiff()) { override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { return ViewHolder(parent.inflate(R.layout.item_artist)) } override fun onBindViewHolder(holder: ViewHolder, position: Int) { holder.bind(getItem(position)) } class ViewHolder(view: View) : RecyclerView.ViewHolder(view) { fun bind(artist: Artist) { itemView.artistDetails.text = artist.artistAlbums .plus(" Albums") …




4
활동 전환에서 페이드 애니메이션을 수행하는 방법은 무엇입니까?
로고 활동과 주요 활동 사이의 전환 효과를 코딩하고 있지만 활동이 사라지기 전에 맨 위로 이동하는 문제가 있습니다. <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false" > <alpha android:duration="2000" android:fromAlpha="0.0" android:toAlpha="1.0" > </alpha> </set> 소멸 효과 만 얻기 위해이 코드를 어떻게 개선 할 수 있습니까?

15
android.content.res.Resources $ NotFoundException 가져 오기 : Android에 리소스가있는 경우에도 예외
오류가 발생하는 곳을 알려주십시오. 가로 모드에서만 활동하는 앱을 만들고 있습니다. 그래서 AndroidManifest.xml 파일에 다음을 추가했습니다. <activity android:name=".LandScapeImageActivity" android:screenOrientation="landscape"></activity> 다음과 같은 폴더를 만들었습니다. / res / layout-land 여기에 see_today_landscape_layout이라는 레이아웃을 추가합니다. 그리고 onCreate()다음을 추가했습니다. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.see_today_landscape_layout); .... } 하지만 내 앱을 실행할 때 다음과 같은 오류가 …

3
AndroidManifest xml 파일에서 android : supportsRtl =“true”사용은 무엇입니까?
Android 스튜디오에서 새 프로젝트를 만들 때마다 android:supportsRtl="true"내 앱 AndroidManifest File에 들어갔습니다. <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> ... </application> 앱에서 사용하는 것 또는 내 앱에 AndroidManifest를 추가하거나 추가하지 않을 때의 장단점은 무엇입니까?

6
누군가 attr을 설명 할 수 있습니까?
Honeycomb Gallery 샘플 코드 ( 여기 )를보고 있으며 내 앱에 작업 항목을 추가하는 동안 다음 코드를 실행했습니다. <item android:id="@+id/camera" android:title="Camera" android:icon="?attr/menuIconCamera" android:showAsAction="ifRoom" /> 은 ?attr루프 날 던지고있다. 누군가 이것이 무엇을하는지 설명해 주시겠습니까? 이것은 드로어 블과 어떤 관련이 있습니까? Google에서 좋은 정보를 찾을 수없는 것 같습니다. 또한 아이콘 대신 사용할 수있는 …

11
Android-자식을 래핑하는 LinearLayout Horizontal
Android의 LinearLayout에 대해 설정할 속성이있어 자식 컨트롤을 적절하게 래핑 할 수 있습니까? 의미-자녀 수가 변경 가능하며 다음과 같이 수평으로 배치하고 싶습니다. 예 : Control1, Control2, Control3, ... 다음을 설정하여 수행합니다. ll.setOrientation (LinearLayout.HORIZONTAL); foreach (어린이 c) ll.addView (c); 하지만 아이가 많으면 다음 줄로 넘어가는 대신 마지막 아이가 잘립니다. 이것이 어떻게 고칠 …
89 android 

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.