-1
A
答えて
0
透明な背景でフルスクリーンダイアログを作成できます。
次に、このループのx/y点を計算し、矢印を配置します。
ダイアログ例:透明な背景のため
public void showDialog(Context context, View hourView) {
dialog = new Dialog(context, R.style.DreamDialogStyle);
dialog.setContentView(R.layout.dream_custom_add_photo_dialog);
// hourView in your case will be probably view with hour timer
// you need get for this view x and y position on your screen
// then in your dialog layout you need setX() and setY() for your loppView
// but your loopView will be full transparent background
// for position of x and y on screen You can use
// int[] array = new int[2];
// hourView.getLocationOnScreen(array);
// X = array[0] , Y = array[1]
// and in setX() setY() calculate loopSize for position loop on hourView
// And for arrow would be nice if You have image with this arrow.
// then You will need also calculate for your dilogTop and loopLeftDown
// and setAngle() in image for fill arrow line
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
}
dialog.show();
}
ダイアログスタイル:
<style name="DreamDialogStyle" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
</style>
関連する問題
- 1. キャンバス上にある画像のイベントを作成する
- 2. マウスが画像の上にある間に画像を変更
- 3. 画像上部の同じ位置にある応答ボタンを作成する
- 4. 画像上にテキストオーバーレイを作成する
- 5. 画像の右上にあるCheckBoxウィジェット
- 6. 画像の上にテキストがある透明なボックス
- 7. タイトルの上部に画像があるボタンをデザインする
- 8. iPhoneカスタム画像を作成するとメモリリークが発生する
- 9. CSSアンカータグ内の別の画像の上にある画像
- 10. 画像上にツールチップを作成するための提案
- 11. 画像内に画像がある
- 12. IntPtrバッファから画像を作成した後に画像を反転する必要があります
- 13. PHPで画像を作成するためのAPIがあります
- 14. 応答のある画像を作成する
- 15. 応答性のあるプロフィール画像を作成する
- 16. 画像の下にある背景の上に縦線があります。
- 17. カーソルが、私はマウスが画像の上にある間に、リストのテキストを変更したい画像
- 18. 画像の上にあるボタンをクリックして画像を削除する方法はありますか?
- 19. Android:キャンバスに小さな画像を描画するアプリケーションを作成する必要があります
- 20. 画像ベースでJavaでカスタムJButtonを作成するには?
- 21. カスタム画像でカウンターを作成するには?
- 22. ExcelからPDFファイルを作成する:画像に問題がある
- 23. IEの画像上のテキストに問題がある
- 24. テキストとその上に画像がある矩形のタップイベント
- 25. 私はこのイメージのテーブルを作成する必要がある画像
- 26. アニメーションを作成するために別の画像ビューの上に画像ビューを重ねる
- 27. 次回/前回のホバー上に画像があるカルーセル?
- 28. 長めの高さの画像があるレスポンシブな画像
- 29. 画像ごとにサムファイルを作成する必要がありますか?
- 30. Android:テキストを追加して、上部に画像があるリストを作成します。