«android» 태그된 질문

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

15
Openssl은 내부 또는 외부 명령으로 인식되지 않습니다
나중에 Facebook과 통합 될 앱의 응용 프로그램 서명을 생성하고 싶습니다. Facebook 자습서 중 하나에서 다음 명령을 찾았습니다. keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 튜토리얼에서는이 cmd를 실행하면 서명 생성 프로세스가 시작됩니다. 그러나이 명령은 오류를 제공합니다. openssl is not recognized as an internal or external …


7
스파 스 어레이 vs 해시 맵
HashMap정수 키를 가진 SparseArrays 가 s 보다 훨씬 더 좋은 몇 가지 이유를 생각할 수 있습니다 . 에 대한 Android 설명서에 SparseArray"일반적으로 기존보다 느립니다 HashMap"라고 표시되어 있습니다. HashMaps 대신을 사용하여 코드를 작성하면 SparseArray코드가 다른 Map 구현에서 작동하며 Maps 용으로 설계된 모든 Java API를 사용할 수 있습니다. 당신이 사용하는 코드를 작성하는 …

13
안드로이드에서 카운트 다운 타이머를 만드는 방법은 무엇입니까?
XML에 두 개의 EditText가 있습니다. 하나의 EditText에서 사용자는 숫자를 분으로, 다른 EditText에서 숫자를 초로 넣을 수 있습니다. 완료 버튼을 클릭하면 EditText 초가 카운트 다운을 시작하고 매초마다 텍스트를 업데이트해야합니다. 또한 0 분 0 초가 될 때까지 어떻게 업데이트를 유지할 수 있습니까?
177 android  timer  countdown 


8
안드로이드 자바; 자산 폴더의 로컬 JSON 파일을 ListView로 구문 분석하는 방법
현재 수식 목록을 표시하고 일부 수식을 해결 해야하는 물리 앱을 개발 중입니다 (유일한 문제는 ListView) 이것이 나의 주요 레이아웃입니다 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="wrap_content" android:measureWithLargestChild="false" android:orientation="vertical" tools:context=".CatList" > <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/titlebar" > <TextView android:id="@+id/Title1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:text="@string/app_name" android:textAppearance="?android:attr/textAppearanceLarge" android:textColor="#ff1c00" android:textIsSelectable="false" /> </RelativeLayout> <ListView android:id="@+id/listFormulas" android:layout_width="match_parent" android:layout_height="wrap_content" > …


15
중첩 된 재활용 자보기 높이가 내용을 감싸지 않습니다.
책 모음 (예 : 재생 목록)을 관리하는 응용 프로그램이 있습니다. 세로 RecyclerView가있는 컬렉션 목록과 각 행 내부에 가로 RecyclerView의 책 목록을 표시하고 싶습니다. 내부 가로 RecyclerView의 layout_height를 300dp로 설정하면 올바르게 표시되지만 wrap_content로 설정하면 아무것도 표시되지 않습니다. 세로 및 가로 표시 간을 전환하기 위해 프로그래밍 방식으로 레이아웃 관리자를 변경하려면 wrap_content를 사용해야합니다. …

18
플러그인이 너무 오래되었습니다. 최신 버전으로 업데이트하거나 ANDROID_DAILY_OVERRIDE 환경 변수를
오늘 방금 프로젝트 (분석)의 모듈로 Android SDK에서 샘플 앱을 가져 왔으며 갑자기 동기화하려고 할 때이 gradle 오류가 발생했습니다. Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE envrinment variable to... 이것은 내 응용 프로그램 gradle파일입니다. apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.0" defaultConfig …

24
getActionBar ()는 null을 반환
이상한 문제가 있습니다. targetsdk 13으로 앱을 만들고 있습니다. 내 주요 활동의 onCreate 메소드에서 getActionBar()내 작업 표시 줄을 설정하기 위해 호출 합니다. 이것은 Android 3.2 에뮬레이터에서 실행될 때 잘 작동하지만 Android 3.0 및 3.1을 사용할 때 getActionBar()메소드는 null을 반환합니다. 나는 이것이 매우 이상하다고 생각하며, 그 이유가 무엇인지 알 수 없습니다. 에뮬레이터에 …

13
프래그먼트와 컨테이너 활동간에 데이터 전달
프래그먼트와 컨테이너 활동간에 데이터를 전달하려면 어떻게해야합니까? 의도를 통해 활동간에 데이터를 전달하는 것과 비슷한 것이 있습니까? 나는 이것을 읽었지만별로 도움이되지 않았다 : http://developer.android.com/guide/topics/fundamentals/fragments.html#CommunicatingWithActivity

12
onStart ()와 onResume ()의 차이점
onStart()전환 상태 의 의미를 얻을 수 없습니다 . 이 onResume()메소드는 항상 이후에 호출 onStart()됩니다. 왜이 될 수 없습니다 onResume()후 호출 onRestart()및 onCreate()방법은 단지 제외 onStart()? 그 목적은 무엇입니까? 없이는 왜 살 수 없습니까 onStart()? 나는 여전히 그것을 중복으로 간주합니다 (아마도 그 의미를 완전히 이해하지 못하기 때문에).
176 android 

4
CoordinatorLayout의 도구 모음 아래에보기 추가
다음과 같은 레이아웃이 있습니다. <android.support.design.widget.CoordinatorLayout android:id="@+id/main_content" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.AppBarLayout android:id="@+id/appBar" android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/ThemeOverlay.AppCompat.ActionBar"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" app:layout_scrollFlags="scroll|enterAlways" app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/> </android.support.design.widget.AppBarLayout> <FrameLayout android:id="@+id/content" android:layout_width="match_parent" android:layout_height="match_parent" /> </android.support.design.widget.CoordinatorLayout> 나는 추가 Fragment에들 FrameLayout을 대체. 내 중 하나는 Fragment다음과 같은 레이아웃을 가진 목록입니다. <android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior"/> 내 …



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