Nick9500/ministocks

View on GitHub
src/main/res/layout/bonobo_news_row.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center_vertical"
    android:orientation="horizontal">

    <ImageView
        android:id="@+id/newsImage1ID"
        android:layout_width="55dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:adjustViewBounds="true"
        android:src="@android:drawable/ic_menu_compass" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:orientation="vertical">

        <TextView
            android:id="@+id/newsNameTextID"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="Title"
            android:textStyle="bold"
            android:typeface="normal" />

        <TextView
            android:id="@+id/newsContentID"
            android:layout_width="match_parent"
            android:layout_height="26dp"
            android:layout_weight="1"
            android:text="Content"
            android:textSize="10sp"
            android:typeface="normal" />
    </LinearLayout>

</LinearLayout>