Câu hỏi được gắn thẻ «android»

Android là hệ điều hành di động của Google, được sử dụng để lập trình hoặc phát triển các thiết bị kỹ thuật số (Điện thoại thông minh, Máy tính bảng, Ô tô, TV, Wear, Glass, IoT). Đối với các chủ đề liên quan đến Android, hãy sử dụng các thẻ dành riêng cho Android như android-aim, android-Activity, android-adapter, v.v. Đối với các câu hỏi ngoài phát triển hoặc lập trình, nhưng liên quan đến khung Android, hãy sử dụng liên kết này: https: // android.stackexchange.com.

22
Làm cách nào để tắt tất cả các chế độ xem bên trong bố cục?
Ví dụ tôi có: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <Button android:id="@+id/backbutton" android:text="Back" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <LinearLayout android:id="@+id/my_layout" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/my_text_view" android:text="First Name" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <EditText android:id="@+id/my_edit_view" android:width="100px" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <View .../> <View .../> ... <View .../> </LinearLayout> </LinearLayout> Có cách nào để tắt (setEnable (false)) tất …

10
Hình tròn trong suốt có viền
Tôi đang cố gắng tạo một vòng kết nối chỉ có đường viền bằng cách sử dụng XML trong android: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" > <stroke android:width="1dp" android:color="#000000"/> </shape> Mã tôi đã sử dụng được đăng ở trên. Tuy nhiên, tôi nhận được một đĩa rắn chứ không …



6
Xử lý số nhiều trong Android là "không"
Nếu có nguồn ressource số nhiều sau đây trong string.xml của tôi: <plurals name="item_shop"> <item quantity="zero">No item</item> <item quantity="one">One item</item> <item quantity="other">%d items</item> </plurals> Tôi đang hiển thị kết quả cho người dùng bằng cách sử dụng: textView.setText(getQuantityString(R.plurals.item_shop, quantity, quantity)); Nó hoạt động tốt với 1 trở lên, nhưng nếu …
83 android 



2
Drawable-hdpi, Drawable-mdpi, Drawable-ldpi Android
Tôi đang làm việc trên Android 1.5, nhưng bây giờ tôi đã chuyển sang phiên bản mới nhất. Vì vậy, chỉ có một thư mục "có thể vẽ" trong Android 1.5, nhưng bây giờ có ba thư mục khác nhau để lưu trữ hình ảnh trong dự án Android. Và …
83 android  image 


4
làm thế nào để làm cho bề mặt trong suốt
Xin chào tất cả tôi muốn làm cho chế độ xem DrawingSurface của tôi trong suốt. tôi đã thử nhiều thứ nhưng nó không hoạt động. Đây là mã xml của tôi để làm cho chế độ xem bề mặt của tôi trong suốt <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > …



11
biến đổiClassesAndResourcesWithProguardForRelease FAILED
Tôi đang cố tạo ứng dụng Android của mình bằng Gradle trong bảng điều khiển. Nhưng gặp lỗi bên dưới về tác vụ ': app :formationClassesAndResourcesWithProguardForRelease': build.gradle: buildscript { repositories { jcenter() maven { url "https://jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.google.gms:google-services:3.0.0' } } allprojects { repositories { …

4
ProGuard: Định nghĩa trùng lặp của lớp thư viện?
Tôi chạy ProGuard cho dự án Android của mình và nhận được các cảnh báo sau: Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver] Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory] Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException] Note: duplicate definition of library class [org.apache.http.params.HttpParams] Note: duplicate definition of library class …


Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookieChính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.