問題タブ [android-imageview]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - imageViewにテキストを設定する方法は?
画面の上部にアプリケーションバーを配置すると、次の図のようになります。
次に、画像の上にテキストを設定して、画像が次のようになるようにします。
画像の上にテキストを設定するにはどうすればよいですか?前もって感謝します
android - Imageviewに境界線を表示する方法は?
友達Imageviewに境界線を表示する方法は?
モバイルギャラリーのように結果を出したいすべての画像が境界線付きで表示されます。
plzは私に事前に感謝します....
android - クリック可能な ImageView と ImageButton の違い
ImageView
クリック可能に設定されている と ? のImageButton
間 に大きな違いがあるかどうか疑問に思っています。
どちらか一方を使用する理由はありますか?唯一の可能なオプションとして ImageButton
残すan のドローアブルに制限はありますか?ImageView
クリック可能なImageView
オーバーを選択すると、ボタンの機能が失われる可能性はありますImageButton
か?
android - Android での ImageView のトリミング
線形レイアウトのテキストの下に 450 ピクセルの正方形の画像があり、それをデバイスの幅に合わせたいと思っていました。
これはある程度機能しましたが、ImageView 要素が画面の残りの部分を埋め尽くし、その下に配置された要素は表示されません。
ImageView が使用するスペースの下部をトリミングする方法を知っている人はいますか?
願わくば、この画像がそれをよりよく説明できることを願っています-画像の下の空の領域(オレンジ色の背景)を切り取りたいです。
java - 画像のサイズと位置を設定するには?
画面サイズに関係なく、背景画像 (image1) に対して同じ位置とサイズになるように、画面上の画像 (image2) のサイズと位置を設定しようとしています。これを行うには、クラスのonCreate
メソッドでimage2 のレイアウト パラメーターを変更します。Activity
しかし、アプリがこのアクティビティに移動すると、アプリケーションが予期せず停止したというエラーが表示されます。次に、アプリを強制終了する必要があります。なぜこれが起こるのでしょうか?足りないものはありますか?またはこれを行うためのより良い方法はありますか?
logcat のエラーは次のとおりです。
E/AndroidRuntime(296): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.soft.tobi/com.soft.tobi.Game_main}: java.lang.NullPointerExc e ption
しかし、すべての ID が xml ファイルに存在するため、何も null になる理由がわかりません。
ありがとう
android - AndroidのRelativeLayoutで画像をフロートさせる方法は?
テキストを表示し、テキストの横に、右側にフロートする必要のある動的な数の画像を表示したいと思います。
それは私が持っているものです:
私の問題は、icon1
表示されていない場合(Javaコードで制御している場合)、icon2が右側に表示されなくなることです。text1
参照icon1
が欠落しているため、オーバーレイされました。
android - Application Themes, change and ImageView src based on app theme name
i'm trying to find a solution for my problem, but i can't find anywhere, even googling for it.
I'm writing an android application that uses themes, an user can switch them dinamically, and the app restart to apply the choosed one. This is working well.
But, i can't find the way to change an imageview element based on the choosed theme. I can't understand the way android apps uses themes, i can't change the file dinamically but only change the theme name in the application object, and in the theme style tag i can't specify a single imageview's src.
I can satisfy my app requirements also using only the windowbackground property. But, i can't make it strech proportionally using the scaletype property, also using gravity in a bitmapdrawable i can't understand how to make it reduce inside the windows mantaining the image proportions.
Thanks to everyone that reply to my question, and sorry for my english! :)
android - text と Image および listView の混合に関するヘルプ
私のアプリケーションは、Web ページの Xml ファイルからデータを取得しています。その日付は listView に配置されます。XML ファイルには、すべてのアイテムの画像へのリンクがあります。その画像をxmlファイルからテキストとともにlistViewに取得する最も簡単な方法を見つけるのに助けが必要です。
私のコードでは、レイアウトファイルの android:src ="" に静止画像を配置しました。
スクリーンショット:
xml ファイル:
http://roskilde-festival.dk/typo3conf/ext/tcpageheaderobjects/xml/bandobjects_251_uk.xml
メインクラス:
XMLHandler クラス:
レイアウト:
リストプレースホルダー:
メインレイアウト:
android - Androidビューの透明な画像リソースを設定する方法は? または画像を削除しますか?
画像リソースからグラフィックスを削除したいので:
または何か、どうすればこれを行うことができますか?