«android» 태그된 질문

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

11
RecyclerView 확장 / 축소 항목
더 많은 정보를 표시하기 위해 recyclerView의 항목을 확장 / 축소하고 싶습니다. SlideExpandableListView 와 동일한 효과를 얻고 싶습니다 . 기본적으로 내 viewHolder에는 보이지 않는 뷰가 있으며 가시성을 VISIBLE / GONE으로 설정하는 대신 부드러운 확장 / 축소 애니메이션을하고 싶습니다. 한 번에 항목을 확장해야하며 항목이 선택되었음을 보여주기 위해 고도를 높이는 것이 좋습니다. 새로운 …

4
Android : 프로그래밍 방식으로 레이아웃 크기를 설정하는 방법
안드로이드 앱의 일부로 버튼 세트를 만들고 있습니다. 버튼은 중첩 된 LinearLayouts 세트의 일부입니다. 가중치를 사용하여 포함하는 부모 LinearLayout의 크기에 따라 자동으로 크기 조정 세트가 설정되었습니다. 아이디어는 화면의 픽셀 수와 밀도에 따라 포함 레이아웃의 크기를 여러 픽셀로 설정하는 것입니다. 그 변화에 따라 버튼 크기를 조정하십시오. 문제는 레이아웃의 크기를 조정하는 방법입니다. 나는 …

7
android.content.res.Resources $ NotFoundException : 문자열 리소스 ID # 0x0
MySQL 데이터베이스에서 데이터를 읽는 Android 앱을 개발 중이며이 오류에 직면했습니다. 이 XML 레이아웃이 있습니다. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/wardNumber" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="3dp" android:text="Ward Number" android:textSize="22dp"/> <TextView android:id="@+id/dateTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/wardNumber" android:layout_alignParentRight="true" android:layout_marginRight="3dp" android:text="Date-Time" /> <TextView android:id="@+id/name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBaseline="@+id/dateTime" android:layout_alignBottom="@+id/dateTime" android:layout_alignLeft="@+id/wardNumber" android:layout_marginLeft="3dp" android:text="Name" /> …
145 java  android  xml  listview 

8
문자열 유형으로 buildConfigField를 생성하는 방법
내 Android Studio프로젝트에는 두 가지 build configuration가 있습니다 buildConfigField. buildTypes { def SERVER_URL = "SERVER_URL" def APP_VERSION = "APP_VERSION" debug { buildConfigField "String", SERVER_URL, "http://dev.myserver.com" buildConfigField "String", APP_VERSION, "0.0.1" } release { buildConfigField "String", SERVER_URL, "https://myserver.com" buildConfigField "String", APP_VERSION, "0.0.1" minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } 다음과 같이 오류가 …

2
ScrollView 내부의보기가 모든 장소를 차지하지는 않습니다.
ScrollView 안에 RelativeLayout이 있습니다. 내 RelativeLayout은 android:layout_height="match_parent"있지만 뷰가 전체 크기를 차지하지는 않지만 wrap_content와 같습니다. 실제 fill_parent / match_parent 동작을 수행하는 방법이 있습니까? 내 레이아웃 : <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:id="@+id/top" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:scaleType="fitXY" android:src="@drawable/top" /> <ImageView android:id="@+id/header" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/top" android:scaleType="fitXY" android:src="@drawable/headerbig" /> <ImageView android:id="@+id/logo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBottom="@+id/header" …

13
Android-startActivityForResult가 즉시 onActivityResult를 트리거 함
call을 사용하여 앱의 기본 활동에서 활동을 시작 startActivityForResult(intent, ACTIVITY_TYPE)하고 있으며 모두 하나만 작동합니다. 이것은 호출되면 원하는대로 활동을 시작하지만 로그에서 onActivityResult()즉시 트리거되고 있음을 알 수 있습니다 . 활동이 표시되지만 RESULT_CANCELED즉시 (으)로 돌아갑니다 onActivityResult(). 나는 그 상호 작용 활동으로, 버튼 통화를 누르십시오 finish(), 그리고 onActivityResult()(분명히 결과가 이미 반환 되었기 때문에)이 시간에 호출되지 …

20
인 텐트로 SMS 응용 프로그램 시작
의도에 대한 질문이 있습니다 ... SMS 앱을 시작하려고합니다 ... Intent intent = new Intent(Intent.ACTION_MAIN); intent.setType("vnd.android-dir/mms-sms"); int flags = Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP; intent.setFlags(flags); intent.setData(Uri.parse("content://sms/inbox")); context.startActivity(intent); 그래서, 당신은 내 의도에 너무 많은 것들을 넣었 음을 알 수 있지만, 내가 할 수있는 방법을 모르기 때문입니다 ... 감사합니다.

25
오류 : 'com.google.example'main.xml 패키지에서 'adSize'속성에 대한 리소스 식별자가 없습니다.
xml로 내 앱에 광고를 추가하라는 지침을 따랐을 때 다음 오류가 발생했습니다. Description Resource Path Location Type error: No resource identifier found for attribute 'adSize' in package 'com.google.example' main.xml /HelloWorld/res/layout line 12 Android AAPT Problem Description Resource Path Location Type error: No resource identifier found for attribute 'adUnitId' in package 'com.google.example' …
144 android  admob 



8
오류 :: APK 패키징 중 파일 복제
안드로이드 스튜디오. 응용 프로그램을 실행하는 동안 이런 종류의 오류가 발생합니다. Error:Execution failed for task ':app:packageDebug'. Duplicate files copied in APK META-INF/notice.txt build.gradle apply plugin: 'android' android { compileSdkVersion 19 buildToolsVersion "19.0.1" packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/ASL2.0' } defaultConfig { minSdkVersion 7 …

10
Android Facebook 4.0 SDK 이메일, 생년월일 및 사용자 성별을 얻는 방법
다음 코드를 사용하고 있습니다. 사용자의 생년월일, 이메일 및 성별을 원합니다. 도와주세요. 해당 데이터를 검색하는 방법? 이것은 내 onViewCreated()조각 안에 있습니다. @Override public void onViewCreated(View view, Bundle savedInstanceState) { // Setup TextView. mTextDetails = (TextView) view.findViewById(R.id.text_details); // Set up Login Button. LoginButton mButtonLogin = (LoginButton) view.findViewById(R.id.login_button); // setFragment only if you …

4
Android Studio 및 gradle을 사용하여 Android 라이브러리를 작성하는 방법은 무엇입니까?
Eclipse에서 프로젝트를 마이그레이션하려고하는데 시도한 것이 아무것도 없습니다. 이클립스에는 3 개의 프로젝트 (2 개의 안드로이드 앱 프로젝트 및 1 개의 안드로이드 라이브러리 프로젝트)가 있습니다. 2 개의 앱 프로젝트는 라이브러리 프로젝트에 따라 다릅니다. gradle 내보내기를 수행하면 작동하지 않는 3 개의 프로젝트가 생성됩니다. 프로젝트를 재구성 할 수는 있지만 어떻게 해야하는지에 대한 문서를 찾지 …

14
SwipeRefreshLayout setRefreshing ()이 처음에 표시기를 표시하지 않음
나는 아주 간단한 레이아웃을 가지고 있지만 내가 전화 할 때 setRefreshing(true)에 onActivityCreated()내 조각, 그것은 처음에 표시되지 않습니다. 새로 고치기 위해 풀을 할 때만 표시됩니다. 왜 처음에 나타나지 않는지 아는 아이디어가 있습니까? 조각 XML : <android.support.v4.widget.SwipeRefreshLayout android:id="@+id/swipe_container" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> </RelativeLayout> </ScrollView> </android.support.v4.widget.SwipeRefreshLayout> …

17
Android Recycler보기 항목 추가 및 제거
TextView 텍스트 상자와 십자 버튼 ImageView가있는 RecyclerView가 있습니다. 십자 버튼 ImageView를 표시 / 사라지게하는 recyclerview 외부에 버튼이 있습니다. 해당 항목의 교차 단추 ImageView를 누르면 recylerview에서 항목을 제거하려고합니다. 내 어댑터 : public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> implements View.OnClickListener, View.OnLongClickListener { private ArrayList<String> mDataset; private static Context sContext; public MyAdapter(Context context, ArrayList<String> …

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