Android

Remove padding in Preference Screen | Android

The Preference class uses com.android.internal.R.layout.preference as its layout. This contains an ImageView for an icon on the left hand side, then the title and summary textviews and finally a widget_frame Layout on the right hand side. By calling PreferenceScreen.setIcon() you can set the drawable to place in the icon image [...]

2019-10-27T23:10:56+05:30Categories: Android|

Taking screenshot on Emulator in Android Studio

Capturing android emulator screen shot is important for app developer, app screenshot can be used for portfolio websites, android development tutorials websites. Below are the steps Click on "..." in emulator setting dialogue. Take your screenshot   To find/set the location of the screenshot taken above, go to 'Setting' and [...]

2020-10-18T18:44:09+05:30Categories: Android|

AppBarLayout | Android

Introduction AppBarLayout is a vertical LinearLayout which implements many of the features of material designs app bar concept, namely scrolling gestures. This view depends heavily on being used as a direct child within a CoordinatorLayout. If you use AppBarLayout within a different ViewGroup, most of it's functionality will not work. [...]

2019-10-27T17:37:05+05:30Categories: Android|

Toolbar | Android

Introduction The toolbar was introduced from Android Lollipop, before Toolbar we were using ActionBar. The position of ActionBar was fix at the top of the screen. But in case of Toolbar, it is more flexible; you can place Toolbar anywhere in the Activity.  The toolbar is useful for displaying App [...]

2019-10-26T16:33:17+05:30Categories: Android|

Android Studio shortcut

Comment/uncomment the select text To comment/uncomment one line, use: Ctrl + /. To comment/uncomment a block, use: Ctrl + Shift + / From menu, Code -> Comment with Line Commment i.e. Find available shortcut cmd + shift + A

2019-12-07T22:57:33+05:30Categories: Android|

TabHost and TabWidget | Android

Android TabHost  provides a nice way to present multiple thing on a Single Screen. These  things are presented by Tabs. In order to use tabs we need to set 2 things to Tab Tab Indicator : Text to show on Tab,  done by  setIndicator("Tab Name"); TAB Content: The activity that [...]

2019-11-17T16:31:08+05:30Categories: Android, Operating System|

Status of published app in Google play store

New applications Draft: App hasn't been published on Google Play. Ready to publish: App hasn't been published on Google Play but is ready to be published. You can publish your app by starting the rollout of a release on the Manage Releases page. Pending publication: App is currently being processed [...]

2017-06-05T15:50:27+05:30Categories: Android|

Add support library to Android Studio project

To add dependency using Andriod Studio GUI: Open File -> Project Structure... menu. Select Modules in the left pane, choose your project's main module in the middle pane and open Dependencies tab in the right pane. Click the plus sign in the right panel, dialog will pop up. Enter "library [...]

2017-06-03T22:43:45+05:30Categories: Android|

Activity lifecycle in Android

Activities in the system are managed as an activity stack. When a new activity is started, it is placed on the top of the stack and becomes the running activity -- the previous activity always remains below it in the stack. An activity can have following lifcycle :- The entire [...]

2017-06-03T11:45:14+05:30Categories: Android|
Go to Top