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.



18
Không tìm thấy Anchor tin cậy cho Kết nối SSL Android
Tôi đang cố gắng kết nối với hộp IIS6 đang chạy chứng chỉ SSL 256 bit thần thánh và tôi đang gặp lỗi: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. Đã cố gắng xác định những gì có thể gây ra điều đó, nhưng vẽ những khoảng trống ngay …


8
Tải tập tin Android .apk VersionName hoặc VersionCode KHÔNG cài đặt apk
Làm cách nào tôi có thể lấy mã phiên bản hoặc tên phiên bản apk của tôi từ tệp AndroidManifest.xml sau khi tải xuống và không cần cài đặt. <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="xxx.xx.xxx" android:versionCode="1" android:versionName="1.1" > Ví dụ: tôi muốn kiểm tra xem phiên bản mới có được tải lên trên …


16
Làm cách nào để loại bỏ phần đệm xung quanh các nút trong Android?
Trong ứng dụng Android của tôi, tôi có bố cục này: <?xml version="1.0" encoding="utf-8" ?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <fragment android:id="@+id/map" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" class="com.google.android.gms.maps.SupportMapFragment"/> <Button android:id="@+id/button_back" android:layout_width="fill_parent" android:layout_height="wrap_content" android:onClick="CloseActivity" android:padding="0dp" android:text="@+string/back" /> </LinearLayout> Trong bản xem trước và trên điện thoại, có vẻ như: Như bạn có thể …
184 java  android  button 

9
Bộ chọn và màu văn bản Android
Tôi muốn có một đơn giản TextViewđể xử đường simple_list_item_1trong một ListViewkhông. Đây là XML: <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content" android:layout_width="fill_parent" android:gravity="center" android:focusable="true" android:minHeight="?android:attr/listPreferredItemHeight" android:textAppearance="?android:attr/textAppearanceLarge" android:background="@android:drawable/list_selector_background" /> Mọi thứ hoạt động ngoại trừ màu văn bản (dự kiến) không thay đổi ở trạng thái tập trung. Làm thế nào để tôi thay …



9
Làm cách nào để truyền dữ liệu từ hoạt động thứ 2 sang hoạt động thứ 1 khi được nhấn lại? - Android
Tôi có 2 hoạt động, Activity1 và Activity2 . Trong Activity1Tôi có một Nút và TextView . Khi nhấp vào nút Activity2 được bắt đầu. Trong Activity2Tôi có một Chỉnh sửa . Tôi muốn hiển thị dữ liệu được truy xuất từ EditText trong Activity2 trong TextView trong Activity1 khi …



26
Thanh trạng thái hoàn toàn trong suốt của Android?
Tôi đã tìm kiếm tài liệu nhưng chỉ tìm thấy điều này: Liên kết . Mà được sử dụng để làm cho thanh mờ ? Những gì tôi đang cố gắng làm là làm cho thanh trạng thái hoàn toàn trong suốt (như được hiển thị trong hình bên dưới) …
183 android  statusbar 

5
onCreateOptionsMothy bên trong Fragment
Tôi đã đặt setHasOptionsMenu(true)bên trong onCreateView, nhưng tôi vẫn không thể gọi onCreateOptionsMenubên trong các mảnh. @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { setHasOptionsMenu(true); return inflater.inflate(R.layout.facesheet, container, false); } Dưới đây là onCreateOptionsMenumã của tôi . @Override public boolean onCreateOptionsMenu(com.actionbarsherlock.view.Menu menu) { getSupportMenuInflater().inflate(R.menu.layout, menu); return (super.onCreateOptionsMenu(menu)); } …

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.