Last display fixes

This commit is contained in:
stom79 2017-12-16 10:55:22 +01:00
parent 0744081600
commit 9cdd59e71e
31 changed files with 8 additions and 6 deletions

View File

@ -7,8 +7,8 @@ android {
applicationId "fr.gouv.etalab.mastodon"
minSdkVersion 15
targetSdkVersion 27
versionCode 90
versionName "1.6.7-rc-1"
versionCode 91
versionName "1.6.7"
}
flavorDimensions "default"

View File

@ -179,6 +179,7 @@
android:theme="@style/Base.V7.Theme.AppCompat.Dialog"
android:excludeFromRecents="true"/>
<activity android:name=".activities.ManageAccountsInListActivity"
android:windowSoftInputMode="adjustPan"
android:theme="@style/Base.V7.Theme.AppCompat.Dialog"
android:excludeFromRecents="true"/>
</application>

View File

@ -107,8 +107,8 @@ public class ListAdapter extends BaseAdapter implements OnListActionInterface {
Drawable next = ContextCompat.getDrawable(context, R.drawable.ic_keyboard_arrow_right);
holder.search_title.setText(list.getTitle());
assert next != null;
next.setBounds(0,0,100,100);
assert next != null;
final float scale = context.getResources().getDisplayMetrics().density;
next.setBounds(0,0,(int) (30 * scale + 0.5f),(int) (30 * scale + 0.5f));
holder.search_title.setCompoundDrawables(null, null, next, null);
holder.search_container.setOnClickListener(new View.OnClickListener() {

View File

@ -103,8 +103,9 @@ public class SearchTootsListAdapter extends BaseAdapter {
}
Drawable next = ContextCompat.getDrawable(context, R.drawable.ic_keyboard_arrow_right);
holder.search_title.setText(search);
final float scale = context.getResources().getDisplayMetrics().density;
assert next != null;
next.setBounds(0,0,100,100);
next.setBounds(0,0,(int) (30 * scale + 0.5f),(int) (30 * scale + 0.5f));
holder.search_title.setCompoundDrawables(null, null, next, null);
holder.search_container.setOnClickListener(new View.OnClickListener() {

View File

@ -55,7 +55,7 @@
android:visibility="gone"
android:id="@+id/lv_accounts_search"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="300dp"
android:scrollbars="none"
android:divider="@null"
/>