askIT

How to get Android left and right?

You are here
Support > How to get Android left and right?

vote_up

0

vote_down

Posted by Administrator · 4 October 2018 · Report

I want a title on left, and a icon on the right.

1_180303121314.jpg
Administrator

1 Reply


vote_up

0

vote_down

Posted by Administrator · 4 October 2018 · Report

<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="1">

<TableRow
android:id="@+id/tableRow1">

<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/textViewTitle"
android:text="Title"
android:textAppearance="?android:attr/textAppearanceLarge" />

<ImageView
android:id="@+id/imageViewNext"
android:layout_width="24dp"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:src="@drawable/ic_outline_keyboard_arrow_right_black_24px" />
</TableRow>
</TableLayout>

1_180303121314.jpg
Administrator

Reply