Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:id="@+id/widget_toolbar"
android:layout_height="?android:attr/actionBarSize"
android:background="@color/colorPrimary">
<ImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:src="@drawable/stock_up"
android:contentDescription="@string/stock_widget" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:src="@drawable/stock_down"
android:contentDescription="@string/stock_widget" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_marginStart="32dp"
android:gravity="center_vertical"
android:text="@string/your_stocks"
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title"
android:layout_marginLeft="32dp" />
</LinearLayout>
<ListView
android:id="@+id/widget_listView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/backGround"></ListView>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.