Category:

Fix toolbar spacing android

In this tip i show you how you can remove spacing from custom toolbar android To remove left and right side space from toolbar try this <android.support.v7.widget.Toolbar xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” android:id=”@+id/menuToolbar” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_margin=”0dp” android:background=”@color/white” android:contentInsetLeft=”10dp” android:contentInsetRight=”10dp” android:contentInsetStart=”10dp” android:minHeight=”?attr/actionBarSize” android:padding=”0dp” app:contentInsetLeft=”10dp” app:contentInsetRight=”10dp” app:contentInsetStart=”10dp”> /* — Your Stuff —*/ </android.support.v7.widget.Toolbar> Use contentInsetStart to set spacing in your custom […]

Continue Reading
Posted On :
Category:

Enable/Disable debug mode in cakephp

In this tip i will show you how to enable/disable error reporting / warning , or debugging in cakephp. Step 1. Go to cakephp\app\Config folder and open core.php . Step 2. Now find Configure::write(‘debug’, 0); Now you can change the value of debug to 1 or 2. * Production Mode: * 0: No error messages, errors, or warnings shown. Flash messages redirect. […]

Continue Reading
Posted On :
Category:

Create Transparent screen in android

Last updated on December 30th, 2016 at 12:41 pmIf want to create  transparent screen on your app this tip is for you. This is very easy to understand. You can create transparent screen with help of Translucent activity. Step 1. Open your project in which you want to implement this. Step 2. Create new the in your […]

Continue Reading
Posted On :
Category:

Pass data from activity to fragment in android

In some cases we need to pass data from Activity to its fragment, we also do that by creating constructor but that create some issue when you make final release you need to create final constructor or empty constructor etc. So the best way to that by using bundle in bundle you pass your data by setting data in it and get that inside your fragment onCreateView().

Continue Reading
Posted On :