To show multiple lines of title in Android ActionBar, one of the most common solution is to assign some of the text in SubTitle. Here we have another approach:
Basically we get the TextView object of the title in ActionBar, set it's max lines attribute to 2:
int titleId = Resources.getSystem().getIdentifier("action_bar_title","id","android");
TextView title = (TextView) findViewById(titleId);
title.setSingleLine(false);
title.setMaxLines(2);
title.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16);
Then we can set a long title to the ActionBar where the text will be displayed as two lines:
getActionBar().setTitle("... your long title here ...");
Monday, November 10, 2014
Tuesday, November 4, 2014
ArcGIS: Query for a simplified feature set
To query a simplified feature set using QueryTask, you can set the "MaxAllowableOffset" property through
com.esri.core.tasks.ags.query.Query.setMaxAllowableOffset( )
or if you're using ArcGIS Android SDK version 10.2.4 already, then it should be:
com.esri.core.tasks.ags.query.QueryParameters.setMaxAllowableOffset( )
com.esri.core.tasks.ags.query.Query.setMaxAllowableOffset( )
or if you're using ArcGIS Android SDK version 10.2.4 already, then it should be:
com.esri.core.tasks.ags.query.QueryParameters.setMaxAllowableOffset( )
Subscribe to:
Posts (Atom)
Sync multiple git repo at once
Use the following command in Linux will do the job: ls -d RepoNames* | xargs -I{} git -C {} pull
-
When Office2003 couldn't find file SKU011.CAB: regedit -> [HKEY_LOCAL_MACHINE] -> [SOFTWARE] -> [Microsoft] -> [Office] -&...
-
The resolution can be changed by editing the BlueStack's registry: HKLM\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Height and ...
-
To count the number lines of files / stdout in Linux, we uses "wc -l" to achieve. In Windows, we use the following instead: find...