Fix incompatibility on other screen size than 5in
@ -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);
|
||||
|
||||
|
@ -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() {
|
||||
}
|
||||
|
Before Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 53 KiB |
@ -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>
|