2018年1月19日金曜日

ツールバーにlayoutが被るときの対処

ツールバーにlayoutが被るときの対処

android:layout_height="match_parent"
 app:layout_behavior="@string/appbar_scrolling_view_behavior"

2018年1月14日日曜日

キーボード表示時にViewが伸縮しない方法

キーボード表示時にViewが伸縮しない方法

<activity    android:name=".MainActivity
android:label="@string/app_name" 
 android:screenOrientation="portrait"   
android:windowSoftInputMode="adjustPan|adjustResize"
 

2018年1月4日木曜日

strings.xmlの文字列をActivityで使う方法

Activity側でgetString(R.string.xxx)を使う

String hoge = getString(R.string.xxx);

縦画面へ固定する

マニフェストファイルのactivityに縦向き指定を追加する

        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait"

Applicationクラスのカスタマイズ

Applicationクラスを継承したカスタマイズ用クラスを作成

public class MyApplication extends Application  {

    @Override
    public void onCreate() {
        super.onCreate();

    }
}

マニフェストファイルにクラスを追加

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:name=".MyApplication"
        android:label="@string/app_name"

Tiff photo viewer

Tiff Photo Viewer




  


v1.02 2018/1/2  Multi-page tiff support

G-Tracker

G-Tracker is an application that performs tracking of the current location using GPS built in Android. You can also get navigation an...