Ahoj, ja som sa snažia, aby niečo ako toto
A to je to, čo som si
Toto je xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="180dp"
android:layout_height="match_parent"
android:layout_marginHorizontal="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/category_item_background"
android:clickable="true"
android:focusable="true"
android:layout_marginTop="50dp"
android:orientation="vertical"
android:paddingBottom="20dp">
<ImageView
android:id="@+id/planetImage"
android:layout_marginTop="-50dp"
android:layout_gravity="center_horizontal"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/earth_transparent"
/>
<TextView
android:id="@+id/planetName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:layout_marginTop="10dp"
android:textColor="@color/white"
android:text="Mars"
android:fontFamily="@font/assistant_extrabold"
android:textSize="30dp"/>
<TextView
android:id="@+id/planetViews"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:fontFamily="@font/assistant_extrabold"
android:text="155 views"/>
</LinearLayout>
</LinearLayout>
Obrázok je orezaný a nemôžem prísť na to, ako predpovedať, že. Nemám starostlivosť o farbu rozdiel práve teraz, ja len chcem, aby niečo nastaviť, tak to nie je orezať.