2017-03-01から1ヶ月間の記事一覧
preference.xml <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory android:title="category"> <Preference android:key="key" android:title="title" /> </PreferenceCategory> </PreferenceScreen> dialog_hoge.xml
LinearLayoutでそのまま配置するとListViewと部品が重なるが、ListViewにandroid:layout_weight="1"を指定すると重ならない。 <ListView android:id="@+id/listView" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> </listview>
build.gradleにcompile 'com.android.support:design:23.+'と追記する必要がある。 しないとjava.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/internal/widget/TintManager; が発生した。 出典: Android Studio2.0: TabLayoutを…