«android» 태그된 질문

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




17
Media Player가 상태 0에서 호출되었습니다. 오류 (-38,0)
저는 현재 인터넷 라디오 방송국을 스트리밍하는 간단한 앱을 디자인하려고합니다. 방송국의 URL이 있고 미디어 플레이어를 다음과 같이 설정하고 있습니다. MediaPlayer mediaPlayer = new MediaPlayer(); try { mediaPlayer.setDataSource(URL); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalStateException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); …

13
Android Google지도 v2-myLocation의 확대 / 축소 수준 설정
새로운 Google Maps API v2를 사용하여 myLocation의 확대 / 축소 수준을 변경할 수 있습니까? 을 설정 GoogleMap.setEnableMyLocation(true);하면지도에 위치를 찾을 수있는 버튼이 표시됩니다. 클릭하면지도가 사용자의 위치로 이동하여 일정 수준으로 확대됩니다. 이 확대 / 축소를 더 작게 또는 더 크게 변경할 수 있습니까?



6
RecyclerView 항목에 잔물결 효과 추가
RecyclerView 항목에 Ripple Effect를 추가하려고합니다. 온라인으로 봤지만 필요한 것을 찾을 수 없습니다. 사용자 지정 효과 여야한다고 가정합니다. RecyclerView 자체에 android : background 속성을 시도하고 "? android : selectableItemBackground"로 설정했지만 작동하지 않았습니다. : <android.support.v7.widget.RecyclerView android:layout_width="match_parent" android:layout_height="match_parent" android:focusable="true" android:clickable="true" android:background="?android:selectableItemBackground" android:id="@+id/recyclerView" android:layout_below="@+id/tool_bar"/> 이것은 효과를 추가하려는 RecyclerView입니다.

6
코드에서 RecyclerView의 스크롤바를 활성화하는 방법이 있습니까?
우리가 보았 듯이 RecyclerView는 ListView보다 효과적이므로 내 프로젝트에서 사용하는 것을 선호합니다. 하지만 최근에 사용자 정의 ViewGroup에 넣을 때 문제가 있습니다. RecyclerView는 다음과 같이 xml에서 스크롤바를 쉽게 설정할 수 있습니다. <android.support.v7.widget.RecyclerView android:id="@+id/recycler_view" android:scrollbars="vertical" android:layout_width="match_parent" android:layout_height="match_parent" /> 하지만 RecyclerView에 대한 코드에서 스크롤 막대를 설정하는 방법을 실제로 찾을 수 없습니다. mRecyclerView.setVerticalScrollBarEnabled(true); 그리고 나는 …

11
Android에서 애플리케이션 "링크"공유
내 애플리케이션 사용자가 내 앱을 다른 사용자와 공유 / 추천 할 수 있기를 원합니다. ACTION_SEND 인 텐트를 사용합니다. 다음 줄을 따라 일반 텍스트를 추가합니다.이 멋진 응용 프로그램을 설치합니다. 하지만 예를 들어 사용자가 마켓 플레이스의 설치 화면으로 직접 이동할 수있는 방법을 찾을 수 없습니다. 내가 제공 할 수있는 것은 웹 링크 …
105 android  share 

2
서비스 시작을위한 Android onCreate 또는 onStartCommand
일반적으로 Android 서비스를 만들 때 onCreate메서드를 구현 하지만 마지막 프로젝트에서는 작동하지 않습니다. 구현을 시도했는데 onStartCommand작동하는 것 같습니다. 문제는 서비스를 구현해야 할 때 어떤 방법이 필요한가요? 어떤 방법을 구현해야합니까? onCreate, onStartCommand또는 둘 다? 그리고 각각의 역할은 무엇입니까?

7
AndroidX : Appcompat I : art 오류 android.view.View $ OnUnhandledKeyEventListener
Androidx : appcompat : appcompat : 1.0.0-rc01을 사용하여 새로 생성 된 프로젝트에서 java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList 또한 configuration.all을 추가했습니다. configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == "androidx.appcompat") { if (!requested.name.startsWith("multidex")) { details.useVersion "1.+" } } } } 이것은 앱 …
105 android  androidx 

10
JsonReader.setLenient (true)를 사용하여 1 행 1 열 경로 $에서 잘못된 형식의 JSON을 허용하십시오.
이 오류는 무엇입니까? 이 문제를 어떻게 해결할 수 있습니까? 내 앱이 실행 중이지만 데이터를로드 할 수 없습니다. 그리고 이것은 내 오류입니다 .JsonReader.setLenient (true)를 사용하여 줄 1 열 1 경로 $에서 잘못된 JSON을 수락하십시오. 이것은 내 조각입니다. public class news extends Fragment { private RecyclerView recyclerView; private ArrayList<Deatails> data; private DataAdapter …
105 android  json  gson  retrofit 

7
Android ConstraintLayout-하나의 뷰를 다른 뷰 위에 놓기
나는 ProgressBar위에 a를 추가하려고 합니다 Button(둘 다 안에 있습니다 ConstraintLayout). <Button android:id="@+id/sign_in_button" android:layout_width="280dp" android:layout_height="75dp" android:layout_marginBottom="75dp" android:layout_marginTop="50dp" android:text="@string/sign_in" android:textColor="@color/white" android:textSize="22sp" android:textStyle="bold" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/passwordEditText" app:layout_constraintVertical_bias="0.0"/> <ProgressBar android:id="@+id/progressBar" style="?android:attr/progressBarStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="@+id/sign_in_button" android:layout_marginTop="8dp" app:layout_constraintBottom_toBottomOf="@+id/sign_in_button" android:layout_marginBottom="8dp" app:layout_constraintVertical_bias="0.5" android:layout_marginLeft="8dp" app:layout_constraintLeft_toLeftOf="@+id/sign_in_button" android:layout_marginRight="8dp" app:layout_constraintRight_toRightOf="@+id/sign_in_button"/> 그러나 심지어 호출 한 후 bringToFront온 ProgressBar의 onCreate뒤에서, 그것은 항상 숙박을 …

7
MutableLiveData에서 setValue ()와 postValue ()의 차이점
의 값을 변경하는 방법에는 두 가지가 있습니다 MutableLiveData. 그러나 사이의 차이가 무엇 setValue()& postValue()인은 MutableLiveData. 동일한 문서를 찾을 수 없습니다. 다음은 MutableLiveDataAndroid 클래스 입니다. package android.arch.lifecycle; /** * {@link LiveData} which publicly exposes {@link #setValue(T)} and {@link #postValue(T)} method. * * @param <T> The type of data hold by this …

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