1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-11-23 12:06:13 -06:00

Fix incompatibility on other screen size than 5in

This commit is contained in:
RicomenPL 2017-07-19 17:42:16 +02:00
parent cdb9f97904
commit 2a0134d8f4
10 changed files with 8 additions and 16 deletions

View File

@ -36,6 +36,7 @@ public class ImageAdapter extends RecyclerView.Adapter<ImageAdapter.ViewHolder>
viewHolder.tv_android.setText(lista.get(i));
Picasso.with(context)
.load(R.drawable.sample_0)
.resize(240,120)
.noFade()
.into(viewHolder.img_android);

View File

@ -2,7 +2,6 @@ package io.github.wulkanowy.activity.dashboard.marks;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
@ -18,7 +17,6 @@ import io.github.wulkanowy.R;
public class MarksFragment extends Fragment {
Activity mActivity;
final String lista[] = {
"Donut",
@ -32,12 +30,6 @@ public class MarksFragment extends Fragment {
"Lollipop",
"Marshmallow"
};
@Override
public void onAttach(Context context) {
super.onAttach(context);
mActivity = (Activity) context;
}
public MarksFragment() {
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

View File

@ -2,25 +2,24 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_marginRight="1dp"
android:layout_marginLeft="1dp"
android:layout_marginBottom="2dp"
>
<ImageView
android:id="@+id/img_android"
android:adjustViewBounds="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="1dp"
android:layout_marginRight="1dp"
/>
<TextView
android:id="@+id/tv_android"
android:gravity="center"
android:textColor="#000000"
android:background="#FFFFFF"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="2dp"
android:layout_marginLeft="1.5dp"
android:layout_marginRight="1.5dp"/>
android:layout_height="wrap_content" />
</LinearLayout>