android: use ImageView instead of drawableLeft
This commit is contained in:
parent
7674964cc8
commit
dc13474729
1 changed files with 21 additions and 12 deletions
|
@ -8,19 +8,28 @@
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:background="#252525"
|
android:background="#252525"
|
||||||
android:weightSum="1" >
|
android:weightSum="1" >
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/textView_tittle"
|
android:orientation="horizontal"
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:layout_margin="5dp"
|
|
||||||
android:background="#555555"
|
android:background="#555555"
|
||||||
android:text="@string/launcher_name"
|
android:layout_width="match_parent"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="25sp"
|
android:layout_margin="5dp" >
|
||||||
android:drawableLeft="@mipmap/ic_launcher"
|
<ImageView
|
||||||
android:drawablePadding="10dp"
|
android:layout_width="wrap_content"
|
||||||
android:singleLine="true"
|
android:layout_height="match_parent"
|
||||||
android:gravity="center_vertical" />
|
android:layout_margin="2dp"
|
||||||
|
android:src="@mipmap/ic_launcher" />
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView_tittle"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:background="#555555"
|
||||||
|
android:text="@string/launcher_name"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="25sp"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:gravity="center_vertical" />
|
||||||
|
</LinearLayout>
|
||||||
<TabHost
|
<TabHost
|
||||||
android:id="@+id/tabhost"
|
android:id="@+id/tabhost"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
Loading…
Add table
Reference in a new issue