Skip to content

Instantly share code, notes, and snippets.

@Ayush783
Created July 16, 2024 09:08
Show Gist options
  • Save Ayush783/a37da3023e39bb8a69c909a93c2b61c1 to your computer and use it in GitHub Desktop.
Save Ayush783/a37da3023e39bb8a69c909a93c2b61c1 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="8dp"
android:layout_centerVertical="true"
android:background="@android:color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/ic_launcher"
android:contentDescription="Image view"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
<ImageButton
android:id="@+id/refresh_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#ffffff"
android:contentDescription="Refresh button"
android:src="@drawable/refresh"
/>
</LinearLayout>
<ListView
android:id="@+id/listview_app_widget"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="#f1f1f1"
android:dividerHeight="1dp" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment