タグ付けされた質問 「android」

AndroidはGoogleのモバイルオペレーティングシステムであり、デジタルデバイス(スマートフォン、タブレット、自動車、TV、Wear、Glass、IoT)のプログラミングまたは開発に使用されます。Androidに関連するトピックについては、android-intent、android-activity、android-adapterなどのAndroid固有のタグを使用します。開発やプログラミング以外の質問で、Androidフレームワークに関連する質問については、次のリンクを使用してください:https:// android.stackexchange.com。

21
スイッチの「オン」の色を変更する
ICSアプリで、holo.lightテーマの標準のSwitchコントロールを使用しています。 トグルボタンのハイライト状態またはオン状態の色を標準の水色から緑に変更したい。 これは簡単なはずですが、どうすればいいのかわからないようです。



5
線形レイアウト内でコンテンツを中央揃えする方法は?
ImageView内部をLinearLayout水平方向と垂直方向の中央に配置しようとしていますが、実行できません。そのためにを使用しない主な理由RelativeLayoutは、layout_weight(Activity4つの列が均等に分割され、さまざまな画面幅に応答し、各列がImageView中央に配置され、ストレッチされていない)必要があるためです。 これまでの私のxmlは次のとおりです。 <LinearLayout 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" android:background="#000" android:baselineAligned="false" android:gravity="center" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".Main" > <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" > <ImageView android:id="@+id/imageButton_speak" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/image_bg" android:src="@drawable/ic_speak" /> </LinearLayout> <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" > <ImageView android:id="@+id/imageButton_readtext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/image_bg" android:src="@drawable/ic_readtext" /> </LinearLayout> <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" > …

9
Android –着信SMSメッセージを聞く
着信SMSメッセージを監視するためのアプリケーションを作成し、着信SMS経由でプログラムを起動しようとしています。また、SMSからコンテンツを読み取る必要があります。 ワークフロー: Androidデバイスに送信されたSMS 自己実行可能なアプリケーション SMS情報を読む

17
Androidのクラッシュログを取得する方法
市場にはない(デバッグ証明書で署名された)アプリがありますが、アプリケーションがクラッシュするたびにクラッシュログデータを取得したいと考えています。アプリがクラッシュした理由のログはどこにありますか?
155 android  logging  crash 

6
AndroidクラスBaseAdapterのメソッドgetItemおよびgetItemIdの目的は何ですか?
私は、メソッドの目的についての興味getItemやgetItemIdAndroidのSDKのクラスアダプタインチ 説明から、getItem基になるデータを返す必要があるようです。したがって、名前の配列が["cat","dog","red"]ありa、それを使用してアダプターを作成するa.getItem(1)場合、「dog」を返す必要がありますよね?何をa.getItemId(1)返すべきですか? これらの方法を実際に使用したことがある場合、例を提供できますか?
155 android  adapter 

8
新しいAPKをアルファ版にアップロード-失敗
新しいAPKをAlphaにアップロード アップロードに失敗しました 無効な署名のあるAPKをアップロードしました(署名の詳細をご覧ください)。apksignerからのエラー:エラー:JAR_SIG_NO_SIGNATURES:JAR署名がありません 何をすべきかわからない、私はAndroid StudioプロジェクトのAlphaリリースを作成しようとしているだけです。

8
LinearLayoutをスクロール可能にするにはどうすればよいですか?
アクティビティを開始した後、下にスクロールして、以下に定義されているxmlの他のボタンとオプションを表示できません。 誰かがこれをスクロール可能にする方法を知っていますか? <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content" android:layout_width="fill_parent" android:background="#000044" android:isScrollContainer="true" android:orientation="vertical"> <TextView android:id="@+id/title" android:text="@string/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#ffffff"/> <EditText android:id="@+id/editTitle" android:text="" android:layout_width="fill_parent" android:layout_height="wrap_content"/> <TextView android:id="@+id/description" android:text="@string/description" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#ffffff"/> <EditText android:id="@+id/editDescription" android:text="" android:layout_width="fill_parent" android:layout_height="wrap_content"/> <TextView android:id="@+id/location" android:text="@string/location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#ffffff"/> <EditText android:id="@+id/editLocation" android:text="" android:layout_width="fill_parent" android:layout_height="wrap_content"/> <TextView android:id="@+id/startTime" android:text="@string/startTime" android:layout_width="wrap_content" android:layout_height="wrap_content" …
155 android 


12
「app-release.apk」このデフォルトで生成されたapk名を変更する方法
Android Studioで署名済みのAPKを生成すると、デフォルトでapp-release.apk ...という名前が付けられます。 設定を行って、apkに割り当てる必要がある名前を尋ねて尋ねるようにできますか(eclipseで行う方法) 私がすることは-それが生成された後にapkの名前を変更します。これはエラーにはなりませんが、プロンプトを表示するために設定を変更できるようにするための本物の方法はあります。 注意:: apk android studioの生成中に、場所を選択するように求めるプロンプトが表示されます(のみ)


6
appCompat 22.1以降の新しいAlertDialogを使用してスタイルを設定する方法
デフォルトのandroid AlertDialogからappCompat-22.1に含まれる新しいandroidに移行しようとしています。これまでのところ、android.support.v7.app.AlertDialogパッケージをインポートするだけで使用できることを理解しています。 しかし、どのようにスタイルを設定できますか?たとえば、正/負のボタンの色、タイトルの色、メッセージの色、背景色を変更しますか?

25
Android:imageviewで画像を角度回転
次のコードを使用して、ImageViewで画像を角度回転させています。より簡単で複雑でない方法はありますか? ImageView iv = (ImageView)findViewById(imageviewid); TextView tv = (TextView)findViewById(txtViewsid); Matrix mat = new Matrix(); Bitmap bMap = BitmapFactory.decodeResource(getResources(),imageid); mat.postRotate(Integer.parseInt(degree));===>angle to be rotated Bitmap bMapRotate = Bitmap.createBitmap(bMap, 0, 0,bMap.getWidth(),bMap.getHeight(), mat, true); iv.setImageBitmap(bMapRotate);

5
レンダリングの問題レンダリング中に例外が発生しました:com.android.ide.common.rendering.api.LayoutlibCallback
Android Studioでプロジェクトを作成するときに問題が発生しました。(バージョン1.5.1) 私は自分の行動を段階的に説明します: Android Studioを開きます。 アクティビティなしで新しいプロジェクトを作成します。 空のアクティビティを作成します。 プレビューモードで問題が発生する可能性があります。 私はこのメッセージを受け取ります: Rendering Problems Exception raised during rendering: com.android.ide.common.rendering.api.LayoutlibCallback.getXmlFileParser(Ljava/lang/String;)Lorg/xmlpull/v1/XmlPullParser; スタックトレース: java.lang.NoSuchMethodError: com.android.ide.common.rendering.api.LayoutlibCallback.getXmlFileParser(Ljava/lang/String;)Lorg/xmlpull/v1/XmlPullParser; at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:146) at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:231) at android.content.res.BridgeTypedArray.getColorStateList(BridgeTypedArray.java:308) at android.widget.TextView.<init>(TextView.java:776) at android.widget.TextView.<init>(TextView.java:705) at android.widget.TextView.<init>(TextView.java:701) at com.android.layoutlib.bridge.MockView.<init>(MockView.java:50) at com.android.layoutlib.bridge.MockView.<init>(MockView.java:45) at com.android.layoutlib.bridge.MockView.<init>(MockView.java:41) at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:163) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70) at android.view.LayoutInflater.rInflate(LayoutInflater.java:834) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at …

弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.