mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-18 06:45:03 -05:00
better alignment of navigation drawer icons
This commit is contained in:
parent
c1e6b5284d
commit
1f1de0ce06
@ -1,28 +1,33 @@
|
|||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:fontawesometext="http://schemas.android.com/apk/res-auto"
|
xmlns:fontawesometext="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:orientation="horizontal" >
|
|
||||||
|
|
||||||
<com.beardedhen.androidbootstrap.FontAwesomeText
|
<com.beardedhen.androidbootstrap.FontAwesomeText
|
||||||
android:id="@+id/drawer_item_icon"
|
android:id="@+id/drawer_item_icon"
|
||||||
android:layout_width="32dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="32dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="10dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:textSize="24sp"
|
android:textSize="24sp"
|
||||||
fontawesometext:fa_icon="fa-github" />
|
android:layout_marginLeft="8dp"
|
||||||
|
fontawesometext:fa_icon="fa-github"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_alignParentStart="true" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/drawer_item_text"
|
android:id="@+id/drawer_item_text"
|
||||||
|
android:text="Test"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
|
android:layout_marginLeft="8dp"
|
||||||
android:paddingBottom="16dp"
|
android:paddingBottom="16dp"
|
||||||
android:paddingLeft="4dp"
|
|
||||||
android:paddingRight="16dp"
|
android:paddingRight="16dp"
|
||||||
android:paddingTop="16dp"
|
android:paddingTop="16dp"
|
||||||
android:textAppearance="@android:style/TextAppearance.Medium"
|
android:textAppearance="@android:style/TextAppearance.Medium"
|
||||||
android:textColor="#111" />
|
android:textColor="#111"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_toRightOf="@+id/drawer_item_icon" />
|
||||||
|
|
||||||
</LinearLayout>
|
</RelativeLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user