diff --git a/app/src/main/java/com/ov3rk1ll/kinocast/ui/helper/NavigationDrawerFragment.java b/app/src/main/java/com/ov3rk1ll/kinocast/ui/helper/NavigationDrawerFragment.java index 18fd55b..01bf5af 100644 --- a/app/src/main/java/com/ov3rk1ll/kinocast/ui/helper/NavigationDrawerFragment.java +++ b/app/src/main/java/com/ov3rk1ll/kinocast/ui/helper/NavigationDrawerFragment.java @@ -21,6 +21,7 @@ import android.widget.ListView; import android.widget.TextView; +import com.ov3rk1ll.kinocast.BuildConfig; import com.ov3rk1ll.kinocast.R; /** @@ -124,7 +125,6 @@ public void onItemClick(AdapterView parent, View view, int position, long id) //getString(R.string.title_section7), })); mDrawerListView.setItemChecked(mCurrentSelectedPosition, true); - } @Override @@ -136,6 +136,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, mDrawerListView = (ListView) view.findViewById(android.R.id.list); + ((TextView) view.findViewById(R.id.textVersion)).setText("v" + BuildConfig.VERSION_NAME); + return view; } diff --git a/app/src/main/res/layout/fragment_navigation_drawer.xml b/app/src/main/res/layout/fragment_navigation_drawer.xml index f4a3e99..57119b9 100644 --- a/app/src/main/res/layout/fragment_navigation_drawer.xml +++ b/app/src/main/res/layout/fragment_navigation_drawer.xml @@ -1,4 +1,4 @@ - + android:dividerHeight="0dp" + android:layout_above="@+id/textVersion" /> - + + +