So I am trying to show twitter posts utilizing tweetUi, however, the image button is not showing up in the relative layout,but it performs the intended action if the general region is clicked(edit: the textview is visible int the relative layout though). Moreover, I have noticed that this is only an issue when used with the listview, because for my other views the image button shows up within the relative layout when used with photoviews and webviews.
<LinearLayout
android:id="@+id/TartanDailyLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.android.ghsapp.TwitterAnnouncements"
android:background="#D32E32"
android:orientation="vertical"
android:weightSum="9"
android:statusBarColor="#D32E32">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0sp"
android:layout_weight=".5">
<TextView
android:id="@+id/TartanDailyHeader"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#C52C33"
android:text="Announcements"
android:gravity="center"/>
<ImageButton
android:id="@+id/BackButton1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:backgroundTint="@android:color/transparent"
android:tint="@android:color/white"
app:srcCompat="?android:attr/actionModeCloseDrawable"
android:onClick="onStartAction"/>
</RelativeLayout>
<ListView android:id="@id/android:list"
android:layout_width="match_parent"
android:layout_height="0sp"
android:layout_weight="9"
android:divider="#e1e8ed"
android:dividerHeight="1dp"
android:drawSelectorOnTop="false">
</ListView>
</LinearLayout>