«android» 태그된 질문

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

9
Gradle 빌드 유형별로 앱 이름을 변경하는 방법
빌드 유형마다 내 응용 프로그램의 앱 이름을 gradle로 변경할 수있는 방법을 찾으려고합니다. 예를 들어 디버그 버전 <APP_NAME>-debug과 qa 버전을 갖고 싶습니다 <APP-NAME>-QA. 나는 익숙하다 : debug { applicationIdSuffix '.debug' versionNameSuffix '-DEBUG' } 그러나 실행기에있을 때 앱 변경 사항을 적용하는 gradle 명령을 찾을 수없는 것 같습니다.

9
RecyclerView에서 match_parent 너비가 작동하지 않습니다
내 RecyclerView와 항목의 match_parent 너비가 있지만 결과는 다음과 같습니다. <view class="android.support.v7.widget.RecyclerView" android:layout_width="match_parent" 그리고 품목 : <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:fab="http://schemas.android.com/apk/res-auto" android:id="@+id/ll_itm" android:orientation="horizontal" android:layout_width="match_parent" 완전한: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:fab="http://schemas.android.com/apk/res-auto" android:id="@+id/ll_itm" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:weightSum="100" android:gravity="right" > <Button android:layout_width="0dp" android:layout_weight="15" android:layout_height="fill_parent" android:text="ملاحظات" android:id="@+id/button" /> <LinearLayout android:layout_width="0dp" android:layout_height="fill_parent" android:layout_weight="20" android:gravity="center" > …

18
Android의 ImageView에서 gif 이미지 추가
imageView에 애니메이션 GIF 이미지를 추가했습니다. GIF 이미지로 볼 수 없습니다. 애니메이션이 없습니다. 정지 이미지처럼 나타납니다. GIF 이미지로 어떻게 표시 할 수 있는지 알고 싶습니다.
135 android  imageview  gif 


2
ConnectionTimeout과 SocketTimeout
사용중인 라이브러리에 문제가 있습니다. 라이브러리 일 수도 있고 잘못 사용했을 수도 있습니다! 기본적 으로이 작업을 수행 할 때 (밀리 초 단위의 시간 초과) _ignitedHttp.setConnectionTimeout(1); // v short _ignitedHttp.setSocketTimeout(60000); // 60 seconds 시간 초과 예외가 생성되지 않고 정상적으로 작동하지만 다음을 수행하면 _ignitedHttp.setConnectionTimeout(60000); // 60 seconds _ignitedHttp.setSocketTimeout(1); // v short 소켓 예외가 …

9
Android 런타임 : 치명적 예외 : androidmapsapi-ZoomTableManager
Google Maps SDK (v2)를 사용하는 내 앱이 다음과 같은 예외로 중단되었습니다. Process: com.currentlocation.android, PID: 7328 java.lang.ArrayIndexOutOfBoundsException: length=1; index=12 at com.google.maps.api.android.lib6.gmm6.vector.ct.<init>(:com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):9) at com.google.maps.api.android.lib6.gmm6.vector.cv.a(:com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):23) at com.google.maps.api.android.lib6.gmm6.util.m.run(:com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):14) at java.lang.Thread.run(Thread.java:919) v3 베타 SDK에서 스택 추적은 다음과 같습니다. 2020-04-23 15:59:06.064 E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example, PID: 22717 java.lang.ArrayIndexOutOfBoundsException: length=1; index=12 at …

11
Android '창을 추가 할 수 없음-토큰 널이 애플리케이션 용이 아닙니다'예외
대화 상자를 열려고 할 때 다음과 같은 Android 예외가 발생합니다. 누군가 무슨 일이 일어나고 있는지 이해 하고이 문제를 어떻게 해결할 수 있습니까? android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application at android.view.ViewRoot.setView(ViewRoot.java:509) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) at android.app.Dialog.show(Dialog.java:241)

18
더 작은 RatingBar를 만드는 방법?
레이아웃에 RatingBar 를 추가했습니다 : <RatingBar android:id="@+id/ratingbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:numStars="5" android:stepSize="1.0" /> 그러나 등급 표시 줄의 기본 스타일이 너무 큽니다. 안드로이드 스타일을 추가하여 변경하려고했습니다.style="?android:attr/ratingBarStyleSmall" 그러나 결과가 너무 작으므로이 속성으로 요금을 설정할 수 없습니다. 어떻게해야합니까?

13
화면에서 환경 설정 제거 / 숨기기
PreferenceActivity를 확장하는 활동이 있습니다. xml 파일에서 환경 설정을로드하고 있습니다. 그러나 경우에 따라 내 앱 상태에 따라 화면에서 환경 설정 중 하나를 완전히 숨겨야합니다. setEnabled 메소드가 있지만 정확히 내가 원하는 것은 아닙니다. 화면에서 해당 환경 설정을 완전히 제거하고 싶습니다. 가능합니까?

18
Android Studio의 파일 탐색기
누구나 파일 탐색기가 Android Studio에서 어디에 있는지 알 수 있습니까? Windows 메뉴에서 검색을 시도했지만 Eclipse에 있었던 "보기 표시"와 같은 옵션이 없습니다.

11
Android OnClickListener-버튼 식별
나는 활동이 있습니다 : public class Mtest extends Activity { Button b1; Button b2; public void onCreate(Bundle savedInstanceState) { ... b1 = (Button) findViewById(R.id.b1); b2 = (Button) findViewById(R.id.b2); b1.setOnClickListener(myhandler); b2.setOnClickListener(myhandler); ... } View.OnClickListener myhandler = new View.OnClickListener() { public void onClick(View v) { // MY QUESTION STARTS HERE!!! // IF …

8
머티리얼 디자인 가이드 라인처럼 보이는 SearchView 생성
현재 앱을 머티리얼 디자인으로 변환하는 방법을 배우는 중입니다. 지금 조금 멈췄습니다. 툴바가 추가되었고 내 탐색 서랍이 모든 콘텐츠를 오버레이하도록 만들었습니다. 이제 재료 가이드 라인 과 비슷한 확장 가능한 검색을 작성하려고합니다 . 이것이 바로 지금 얻은 것이며 위와 같이 만드는 방법을 알 수 없습니다. 이것은 내 메뉴 XML입니다. <?xml version="1.0" encoding="utf-8"?> …


6
알림이 이전 의도 엑스트라를 전달 함
이 코드를 통해 BroadcastReceiver 내부에 알림을 작성 중입니다. String ns = Context.NOTIFICATION_SERVICE; NotificationManager mNotificationManager = (NotificationManager) context.getSystemService(ns); int icon = R.drawable.ic_stat_notification; CharSequence tickerText = "New Notification"; long when = System.currentTimeMillis(); Notification notification = new Notification(icon, tickerText, when); notification.defaults |= Notification.DEFAULT_VIBRATE; long[] vibrate = {0,100,200,200,200,200}; notification.vibrate = vibrate; notification.flags |= Notification.FLAG_AUTO_CANCEL; …

30
Android 에뮬레이터 -5554 오프라인
에뮬레이터 -5554에 문제가 있으며 오프라인 상태임을 계속 알려줍니다. 내가 adb devices명령 줄에서 할 때 emulator-5554 offline 새로 시작한 후에도 해당 명령을 시도해도 여전히 오프라인 상태입니다. 문제는 abd install <path>명령 프롬프트에서 .apk 파일을 에뮬레이터에 설치하려고 할 때 오프라인 상태임을 알려줍니다. 다른 장치를 만들어서 실행하면 .apk 파일을 설치하려고하면 너무 많은 장치가 연결되어 …

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