目標達成マップに関するプライバシーポリシー(個人情報の取り扱い及び保護)については以下の通り。
続きを読む目標達成マップの使い方について
目標達成マップの使い方について以下記載します。
続きを読む画面向き固定時に表示される「Expecting android:screenOrientation=”unspecified”」警告の対策について
Android Studio のバージョンを3.6にUpdateして、プロジェクトをOpenすると、
Manifest.xnlで警告が出ていました。
今後の為に、対策方法を残しておきたいと思います。
警告文言:
「Expecting android:screenOrientation=”unspecified” or “fullSensor” for this activity so the user can use the application in any orientation and provide a great experience on Chrome OS devices.」
アニメーションをMotionLayoutを使って実現してみる
ConstraintLayout に MotionLayoutが追加されたので早速触ってみることにしました。
サンプルソースと動画を載せていますのでご参考下さい。
なお、本記事を投稿時点ではまだBeta版のため、今後変更が入る可能性があります。
サンプルソース
やることは以下です。
・build.gradle に constraintlayout:2.0.0を追加
・ConstraintLayout を MotionLayoutに変更
・MotionSceneのレイアウトを作成
App is not indexable by Google Search; 警告の対策
Android Stuudioでプロジェクトを新規作成すると、Android Manifestで警告が毎回出ています。
今回はその解決策を備忘録として残しておきます。
同じように解決策を探されている方はご参考下さい。
Android 11 のリリース日変更とイベント「The Beta Launch Show」発表
Android デベロッパーサイトでAndroid 11のリリース予定日変更が通知され、また
Android開発者ブログでは技術者向けイベント「#Android11: the Beta Launch Show.」が告知されました。
さっそく内容を見ていきたいと思います。
ViewPagerを使ってCanvasにお絵かきしてみる[その1]
画面サイズの取得とPX/DP変換方法について
Androidアプリ開発を行う上で様々なデバイスに対応するめ、画面サイズからレイアウトを定義する必要が出てきたので、画面サイズの取得方法を書き留めておきます。
また、ピクセル(px)とDPの変換も必要なので、合わせて記述しておきたいと思います。
This view is not constrained ~ エラーの対策
This view is not constrained horizontally: at runtime it will jump to the left
unless you add a horizontal constraint less… のエラーが発生した時のソースコードと対策を備忘録で残しておきます。
エラー:
This view is not constrained horizontally:
at runtime it will jump to the left unless you add a horizontal constraint less…
エラー発生時のコードは以下。
Android Studioが自動生成してくれるLayoutにviewを追加しただけ。
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <View android:id="@+id/hogehoge" android:layout_width="100dp" android:layout_height="100dp" /> </androidx.constraintlayout.widget.ConstraintLayout>
修正後は以下
結論から言うと、追加したviewに対してきちんとLayoutを定義すれば解決。
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent"> <View android:id="@+id/hogehoge" android:layout_width="100dp" android:layout_height="100dp" /> </LinearLayout> </androidx.constraintlayout.widget.ConstraintLayout>
Layoutの知識はきちんと整理しておかないといけないですね。
Zoomを導入してみる【Windows】
昨今、テレワークが進みSkypeやteamsなど注目が集まっていますが、今回はZoomの導入を行っていきます。
これから導入される方は参考にして頂ければと思います。
Android StudioのエミュレータをAndroid 11(R)にする
Android 11(Android R)のデベロッパープレビューが展開されましたので、エミュレータで起動させてみたいと思います。
続きを読む